conditional formatting for dates in future and past

angelik

New Member
Joined
Jun 1, 2015
Messages
3
Hello there

Let me provide an example of what I'm trying to do.

I have a deadline of 30 June 2015. I want the cell this date is in to highlight red when it is less than 30 days away and if it has past without the cell next to saying it has been met.

So I have

=30<TODAY (format red) for the impending and past dates
=A1="YES"

and this works fine. However, all dates 30+plus days in the future are also formatted. How can I get these to stay without formatting?

Thanks
 

Excel Facts

Highlight Duplicates
Home, Conditional Formatting, Highlight Cells, Duplicate records, OK to add pink formatting to any duplicates in selected range.
perhaps, change +29 to suite number of days.

A1 = deadline, B1 current date, C1 "next cell telling YES" if met
Code:
=AND(B$1+29>=$A$1,C$1<>"YES")
 
Upvote 0

Forum statistics

Threads
1,214,821
Messages
6,121,762
Members
449,048
Latest member
excelknuckles

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