Highlight Based on Dates, but NOT Current Date

MacroTemp

New Member
Joined
Apr 8, 2015
Messages
13
I'm really having a hard time finding an answer to this, since every single post I check only uses "TODAY" in the formula.

I have dates in two columns--Column F and Column G. I need to conditionally highlight Red any dates in Column G that are 5 days or more past the corresponding date in Column F.

Example: In Cell F2 is 05/05/2016, and in Cell G2 is 11/05/2016. In this case, G2 needs to highlight Red because it is over 5 days beyond the date in F2. But it has nothing to do with the current date. I also need to exclude blanks from the formula, but I will probably just add a separate rule for that.

I know this has got to be very easy, but what I'm looking for is being overlapped by a much more common search! And I'm a bit too novice to know what I'm doing enough that I can play around with formula. Any help would be much appreciated!
 
Last edited:

Excel Facts

How can you automate Excel?
Press Alt+F11 from Windows Excel to open the Visual Basic for Applications (VBA) editor.
Just subtract the two dates (which will return the number of days), i.e.
Code:
=G1-F1>=5

If you want to make sure neither date is blank, you can use:
Code:
=AND(G1>0,F1>0,G1-F1>=5)
 
Upvote 0
That worked like gangbusters! And you got back to me so fast...a lifesaver, my friend. Thanks very much. SOLVED! And bookmarked lol.
 
Upvote 0
You are welcome!
Glad I could help!:)
 
Upvote 0

Forum statistics

Threads
1,223,214
Messages
6,170,774
Members
452,353
Latest member
strainu

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