Conditional Formatting Expired Dates

ExcelRoy

Well-known Member
Joined
Oct 2, 2006
Messages
2,540
Office Version
  1. 365
Platform
  1. Windows
Hi all,

I am trying to highlight expired/ expiring dates using CF

I have the following formula =AND(LEN(G13),TODAY()>G13)

This doesn't seem to work with a range of cells and only highlights parts of the range

Any ideas what I am doing wrong?

Thanks
 

Excel Facts

Difference between two dates
Secret function! Use =DATEDIF(A2,B2,"Y")&" years"&=DATEDIF(A2,B2,"YM")&" months"&=DATEDIF(A2,B2,"MD")&" days"
Think I got it, it looks like the formula is checking each cell within the range

how do I highlight a C:J if the condition is true?

Many thanks
 
Upvote 0
Select C13:J13 and in CF try this formula

=AND(LEN($G13),TODAY()>$G13)

M.
 
Last edited:
Upvote 0
Many thanks Marcelo, works perfect,

is there a way to use this formula to highlight a day before TODAY?
 
Upvote 0
That's what the formula does!
 
Upvote 0
Hi Fluff,

Can I use a similar formula to highlight

Red - Anything past TODAY
Green - Today
Yellow - 1 Day Before TODAY
Orange - 2 Days before TODAY

Many thanks
 
Upvote 0
Hi Fluff,

Older than today (expired)

many thanks for your help Fluff
 
Upvote 0
The red formula is the one you already have.
For green use
=AND(LEN($G13),TODAY()=$G13)
yellow
=AND(LEN($G13),TODAY()-1=$G13)
orange use the above but change -1 to -2
But ensure that the red rule is the last in the list, otherwise it will overall the yellow & orange rules
 
Upvote 0
perfect Fluff, many thanks

Did you get a chance to look a my previous problem with the priority settings?

Thanks again
 
Upvote 0

Forum statistics

Threads
1,223,888
Messages
6,175,207
Members
452,618
Latest member
Tam84

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