I am trying to put some conditional formatting into a spreadsheet but I have become stuck, I have three things I need to check:
- Does the name in column A match with one in D
- Is the date in column E today or earlier
- Is the date in column G today or later
If all of these conditions are met then the corresponding cell in column A will change colour.
Here's whats in the table:
- There is a list of staff in column A
- If they are out of office at any time during the week their name will be in column D
- Column E is the start of their time off
- Column G is the end of their time off
So far I can only get it to highlight if the names match, I'm struggling to add the other conditions even after Googling for hours:
=NOT(ISNA(VLOOKUP($A1,$D:$D,1,FALSE)))
I also tried this, to no effect:
=AND($A2=$D:$D,$E1<TODAY(),$G1>TODAY())
Any suggestions?