Conditional formatting for dates 6 months or less

sdemian

New Member
Joined
Aug 15, 2022
Messages
2
Office Version
  1. 365
Platform
  1. Windows
Hi!
Totally new to the forum and I've looked for answers to my question but can't find one that works for me...

I want to format cells that have dates that are 6 months or less, but when I put in this formula =EDATE($D2,6)<TODAY(),

I get an error from Excel saying "There's a problem with this formula" and I can't figure out why! Any help would be greatly appreciated!
 

Attachments

  • Picture2.png
    Picture2.png
    233.9 KB · Views: 15

Excel Facts

Which lookup functions find a value equal or greater than the lookup value?
MATCH uses -1 to find larger value (lookup table must be sorted ZA). XLOOKUP uses 1 to find values greater and does not need to be sorted.
Perhaps try
Excel Formula:
=$D2<EDATE(TODAY(),6)
 
Upvote 0
Thanks Arthur, it accepted the formula but it hasn't formatted any cells, which it should as there are dates less than 6 months away...

and sorry about the thread title, will do a better job next time!
 
Upvote 0
and sorry about the thread title, will do a better job next time!
Soory, that had nothing to do with you, I'll have to remove that from my sig

Thanks Arthur, it accepted the formula but it hasn't formatted any cells
I tried it and it works for me. I don't see any dates in your example that fit ( dumb question : have you formatted the CF?)
Did you select the entire range (col D) before applying the CF ?
 
Upvote 0
Tried original formula also and it threw up #value error but once i went and formatted the column to date it worked fine.
 
Upvote 0

Forum statistics

Threads
1,214,861
Messages
6,121,971
Members
449,059
Latest member
oculus

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