Aug 08 2021 04:03 AM
Aug 08 2021 06:48 AM
SolutionSelect the cells that you want to format.
On the Home tab of the ribbon, click Conditional Formatting > New Rule...
Select 'Format only cells that contain'.
Leave the first drop-down set to 'Cell Value'.
Select 'less than or equal to' from the second drop-down.
In the box next to it, enter the formula =EDATE(TODAY(),-9)
Click Format...
Activate the Fill tab.
Select yellow.
Click OK, then click OK again.
Repeat the above steps, but with the formula =EDATE(TODAY(),-10) and orange as fill color.
Finally, repeat them again, this time with the formula =EDATE(TODAY(),-11) and red as fill color.
Aug 08 2021 07:15 AM
With permission of all, here are some additional examples for the solution proposed by Mr. Hans Vogelaar.
Thank you for your time.
Nikolino
I know I don't know anything (Socrates)
Aug 09 2021 02:57 AM
Aug 18 2021 07:32 AM
@Hans Vogelaar What formula would I use to make a date change color after 15 and 30 days? =EDATE(today(),-15)
Aug 18 2021 07:46 AM
Aug 18 2021 07:58 AM
Yes. One colour - one rule. To the cell or to the range, depends on your data.
Dec 01 2021 04:23 PM
@Sergei Baklan Thank you!
I was able to use this answer to apply 3 rules to an entire row based on one cell in that row.
But I can't figure out an easy wasy to propagate those 3 rules to all rows but keep it relative.
I'm not sure if I need to use a name or ???
If you can provide simple instructions that'd be good so I know how to do it myself next time.
I've attached my file for reference
Dec 02 2021 07:16 AM
You need to use relative reference for rows and apply the rule to entire range. Instead of
it will be
Dec 07 2021 11:44 AM
Dec 07 2021 01:48 PM
@CaptYankee330 , glad it helped
Feb 03 2023 07:57 AM - edited Feb 03 2023 07:58 AM
@Hans Vogelaar This is an older thread but useful! Thanks. I have the same question but what is the formula when the expiration is 3 or 5 years from the date entered in the cell?
Feb 03 2023 08:10 AM
3 years is 36 months, so 3, 2 and 1 months before the expiration date is 33, 34 and 35 months from the start date. So use
=EDATE(TODAY(),-33)
etc.
5 years is 60 months, so 3, 2 and 1 months before the expiration date is 57, 58 and 59 months from the start date. So use
=EDATE(TODAY(),-57)
etc.