All_At_Sea
New Member
- Joined
- Aug 25, 2024
- Messages
- 10
- Office Version
- 365
- Platform
- Windows
Hi,
I'm hoping someone could point me in the right direction on Conditional Formatting of Dates?
I've found a solution from searching the forum that suits my needs, although I'd like to add one additional condition. This is where I'm coming unstuck.
This is what I've used: -
What I'd like to add is if the date is todays or has passed highlight it red.
I've tried adding: -
But this causes all blank cells in my range to be coloured and not the one(s) with todays date or passed ones.
I feel I'm going around in circles, so any assistance would be gratefully received.
Thanks in advance.
I'm hoping someone could point me in the right direction on Conditional Formatting of Dates?
I've found a solution from searching the forum that suits my needs, although I'd like to add one additional condition. This is where I'm coming unstuck.
This is what I've used: -
Book1.xlsx
A B C D 1 course Claire Sooraj Paula 2 Autism eLearning 1/2/2024 No Expiry No Expiry 3 CarePlanningF2Ftraining 11/21/2023 4 CareforOlderAdults 1/31/2024 No Expiry No Expiry 5 Dysphagia training 1/17/2024 1/17/2024 8/6/2024 6 Team building 3/27/2024 3/27/2024 8/17/2023 Sheet2
Cells with Conditional Formatting Cell Condition Cell Format Stop If True B2:D6 Expression =AND(B2-TODAY()<=30,B2-TODAY()>0) text NO B2:D6 Expression =AND(B2-TODAY()<=90,B2-TODAY()>30) text NO B2:D6 Expression =AND(B2-TODAY()<=365,B2-TODAY()>90) text NO
Book1.xlsx
A B C D 1 period (days) = 30 2 3 course Claire Sooraj Paula 4 Autism eLearning 1/2/2024 No Expiry No Expiry 5 CarePlanningF2Ftraining 11/21/2023 6 CareforOlderAdults 1/31/2024 No Expiry No Expiry 7 Dysphagia training 1/17/2024 1/17/2024 8/6/2024 8 Team building 3/27/2024 3/27/2024 8/17/2023 Sheet3
Cells with Conditional Formatting Cell Condition Cell Format Stop If True B4:D8 Expression = IF(AND($B$1>0,$B$1<=30),AND(B4-TODAY()<=30,B4-TODAY()>0)) text NO B4:D8 Expression = IF(AND($B$1>30,$B$1<=90),AND(B4-TODAY()<=90,B4-TODAY()>30)) text NO B4:D8 Expression = IF(AND($B$1>90,$B$1<=365),AND(B4-TODAY()<=365,B4-TODAY()>90)) text NO
What I'd like to add is if the date is todays or has passed highlight it red.
I've tried adding: -
Excel Formula:
=AND(D6-TODAY()<=7)
But this causes all blank cells in my range to be coloured and not the one(s) with todays date or passed ones.
I feel I'm going around in circles, so any assistance would be gratefully received.
Thanks in advance.