Conditional Formatting Dates

brobert95

New Member
Joined
Jul 8, 2019
Messages
18
Hello, I am having trouble getting conditional formatting to work and I'm wondering if it has something to do with the reference cell having a formula instead of a value. In Cell A1 I have the formula =today() and in C1 I have a date. In D1 I have formula =days(C1,$a$1) to give me the how many days it has been from the date in C1 to today. I would like to have conditional formatting that changes the cell color of C1 to yellow if the days are over 60 and orange if they are over 90, but can't get it to work. Thanks in advance for any help.
 

Excel Facts

Copy PDF to Excel
Select data in PDF. Paste to Microsoft Word. Copy from Word and paste to Excel.
Sample data is always better because it helps to eliminate some questions. If your C1 date value is earlier than (less than) A1 then the result is negative, so a negative result will never be greater than 60 (or any other +ve number). In that case, reverse the cell references or use ABS to get the absolute value.
 
Upvote 0
In D1 I have formula =days(C1,$a$1)
Could that be the wrong way around?

Is this what you are trying to do?

23 09 10.xlsm
ABCD
110/09/20235/05/2023128
229/06/202373
327/08/202314
424/04/2022504
CF Days
Cell Formulas
RangeFormula
A1A1=TODAY()
D1:D4D1=DAYS($A$1,C1)
Cells with Conditional Formatting
CellConditionCell FormatStop If True
D1:D4Expression=D1>90textNO
D1:D4Expression=D1>60textNO
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,175
Members
453,021
Latest member
Justyna P

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top