Formatting cell color if date in the cell is old

SandsB

Well-known Member
Joined
Feb 13, 2007
Messages
734
Office Version
  1. 365
Platform
  1. Windows
I have a column of dates, column C. If the date in C2, C3, C4, etc. is more than 6 moths old I want the cell to have a white, bold font and a red background. I've tried mucking around with conditional formatting but no luck.
 

Excel Facts

What is the last column in Excel?
Excel columns run from A to Z, AA to AZ, AAA to XFD. The last column is XFD.
I have a column of dates, column C. If the date in C2, C3, C4, etc. is more than 6 moths old I want the cell to have a white, bold font and a red background. I've tried mucking around with conditional formatting but no luck.

Try this out? Under conditional formatting-->New Rule-->Use formula to determine which cells to format

Code:
=DATEDIF(C2,TODAY(),"M")>6
 
Upvote 0
Pick a cell and format it to date. Put this formula in there:

=TODAY()-180
This is 6 months ago from today.

Then highlight your cells with dates and conditional format with formula is:
=IF(C1<$E$1,TRUE,FALSE)

Use the format to bold, white, and shade it red. In my example, my 6 month mark is cell E1.
 
Upvote 0
Works great. I did change the 6 to a 5 so it flags it after 6 months instead of 7
Thank you very much
 
Upvote 0
If the cell is blank it makes it red. Is there a way to do this only if the cell has data?
 
Upvote 0
I added a rule that says
cell value | equal to | 0. I also tried
cell value | equal to | ""

with no luck
 
Upvote 0
Condition 1:
Formula is =IF(C1="",TRUE,FALSE) with cell shading white, font color is white.

Condition 2:
Formulas is =DATEDIF(C1,TODAY(),"M")>5 with your cell shading red, font color white, bold.
 
Upvote 0
I don't get it. This should work for me but I still get red in the empty cells.
 
Upvote 0
Are your cells formatted to date?

Does the same thing happen on a new worksheet?

Condition 1 =IF(C1="",TRUE,FALSE) applies to cell C1 only.

Condition 2 =DATEDIF(C1,TODAY(),"M")>5 applies to cell C1 only.

Double check this.
 
Upvote 0

Forum statistics

Threads
1,224,602
Messages
6,179,839
Members
452,948
Latest member
UsmanAli786

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