Conditional Formatting Dates

gully176

New Member
Joined
Aug 1, 2018
Messages
7
I have another odd formula i'm trying to figure out, but I think its a bit complicated.

1. I want a cell to automatically highlight itself if the following conditions are met.
a. If the date is within 3 days of the date inserted or past the date inserted into the cell
b. there is no entry in the cell to the right of the cell we want to highlight.
 

Excel Facts

Copy a format multiple times
Select a formatted range. Double-click the Format Painter (left side of Home tab). You can paste formatting multiple times. Esc to stop
Say the cell your date is in is A1.
Select A1 with your mouse.
Home>Conditional Formatting>New Rule>Use a formula

formula is:
Code:
=AND(A1>=TODAY()-3,A1<=TODAY()+3)
choose the format you want and press ok.
 
Upvote 0
That does the first bit but not the second, I need it to understand if data has been inserted in A2 that its not necessary to highlight.
 
Upvote 0
Change the formula to this:
Code:
=AND(A1>=TODAY()-3,A1<=TODAY()+3,ISBLANK(A2))
 
Upvote 0
Thanks! now my last question because I just found out this is a thing. can I use this formula in conjunction with NETWORKDAYS ?
You are welcome. Most likely, the formula can be adapted to use only business days.
 
Upvote 0

Forum statistics

Threads
1,216,031
Messages
6,128,424
Members
449,450
Latest member
gunars

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