Conditionally formatting dates with IF AND including blank cells

EMW2159

New Member
Joined
Dec 16, 2019
Messages
3
Office Version
  1. 365
Platform
  1. Windows
Hi all

I have exhausted google with this question but everything I've tried has not worked. I'd like to do the following

If the date in I1 is 30 days away and J1 is blank, flag I1 orange.
If the date in I1 is in the past and J1 is blank, flag red.

Once a date is in J1 then I need it to be white. So far I was trying this kind of thing:
VBA Code:
=IF(AND(=I5-TODAY()<30,J5=””),0,1)
But had no luck. any help would be much appreciated thanks :)
 

Excel Facts

Select all contiguous cells
Pressing Ctrl+* (asterisk) will select the "current region" - all contiguous cells in all directions.
Something like this?

21 06 17.xlsm
IJ
120-May-21
225-May-21
330-May-215/06/2021
404-Jun-21
509-Jun-2112/06/2021
614-Jun-21
719-Jun-21
824-Jun-21
929-Jun-2130/06/2021
1004-Jul-21
11
1214-Jul-21
1319-Aug-21
CF Dates
Cells with Conditional Formatting
CellConditionCell FormatStop If True
I1:I39Expression=AND(I1<TODAY(),J1="",I1<>"")textNO
I1:I39Expression=AND(I1-TODAY()<30,I1>=TODAY(),J1="")textNO
 
Upvote 0
You're welcome. Thanks for the follow-up. :)
 
Upvote 0

Forum statistics

Threads
1,215,220
Messages
6,123,697
Members
449,117
Latest member
Aaagu

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