Coloring of Cells Between Dates

eforti

Board Regular
Joined
Aug 15, 2005
Messages
220
Hello All,

I have two columns with dates in them. They go in an order where the lower you go in the sheet the further out the date is. Each row is a task. I'd like to highlight the two dates that today's date falls between.

Ex:
Column 1......Column 2......Column 3
Task1.............9/1/07...........9/5/07
Task2.............9/8/07...........9/19/07
Task3.............9/24/07.........10/13/07

If todays date is 9/17/07 I'd like to highlight the cells with 9/8/07 and 9/19/07 in them because todays date is between them. Is this something that can be accomplished with conditions? Or do I need VB?

Thanks in advance
 

Excel Facts

Excel motto
Not everything I do at work revolves around Excel. Only the fun parts.
Use Conditional Formatting, specifically the "FORMULA IS" option. If your first two dates are in cell A2 and B2, then the formula would look like this:

=AND($A2>=NOW(),$B2<=NOW())
 
Upvote 0
Thank you for the response. Although this makes sense to me I can't seem to make it function. I have formulas in the cells to create the dates, so I figured that was screwing it up. Then I tried manually entering the data and it still didn't work. Any ideas?
 
Upvote 0
Can you tell me the EXACT cell range your dates fall into? Then I can try to give you step-by-step instructions.
 
Upvote 0
I just figured out what was wrong. The less than and greater than signs are reversed.

Thank you again for your help.
 
Upvote 0

Forum statistics

Threads
1,214,667
Messages
6,120,821
Members
448,990
Latest member
rohitsomani

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