Highlight Rows if today's date is between 2 column dates

QueenS

New Member
Joined
Oct 27, 2009
Messages
18
Row Index
Column D
(Start Date)
Column E
(End Date)
A
20-JUL-2014
27-JUL-2014
B
01-OCT-2014
01-NOV-2014
C
07-OCT-2014
09-OCT-2014
D
09-OCT-2014
01-NOV-2014
E
14-AUG-2014
07-OCT-2014

<tbody>
</tbody>

Seeking expert assistance in building a conditional format for above sample data

Objective: Using a macro or conditional format to highlight Rows B, C, and E if I open the spreadsheet today and today's date is 07-OCT-2014.


Grateful for any help.
 

Excel Facts

Using Function Arguments with nested formulas
If writing INDEX in Func. Arguments, type MATCH(. Use the mouse to click inside MATCH in the formula bar. Dialog switches to MATCH.
Select D2:E{whatever} and add a conditional format using a formula.

The formula should be =AND($D2<=TODAY(),$E2>=TODAY())

If you want to highlight the entire row, select row 2:{whatever} before adding the c.f.

Row Index
Column D
(Start Date)
Column E
(End Date)
A
20-JUL-2014
27-JUL-2014
B
01-OCT-2014
01-NOV-2014
C
07-OCT-2014
09-OCT-2014
D
09-OCT-2014
01-NOV-2014
E
14-AUG-2014
07-OCT-2014

<tbody>
</tbody>

Seeking expert assistance in building a conditional format for above sample data

Objective: Using a macro or conditional format to highlight Rows B, C, and E if I open the spreadsheet today and today's date is 07-OCT-2014.


Grateful for any help.
 
Upvote 0
How about this

=IF(AND(TODAY()>=(B2),TODAY()<=(C2)),5)

You can use this with the "Use Formula" in conditional formatting

Mike
 
Upvote 0
You can use this for your conditional formatting conditon: =and($D2<=today(),today()<=$E2) applied to your whole range of data.
That's assuming your data starts in row 2.
 
Upvote 0
Many thanks to tusharm, Mike54 and ztodd for responding. Recommended formula works fine!
 
Upvote 0

Forum statistics

Threads
1,215,641
Messages
6,125,980
Members
449,276
Latest member
surendra75

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