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

QueenS

New Member
Joined
Oct 27, 2009
Messages
18
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]Row Index
[/TD]
[TD]Column D
(Start Date)
[/TD]
[TD]Column E
(End Date)
[/TD]
[/TR]
[TR]
[TD]A
[/TD]
[TD]20-JUL-2014
[/TD]
[TD]27-JUL-2014
[/TD]
[/TR]
[TR]
[TD]B
[/TD]
[TD]01-OCT-2014
[/TD]
[TD]01-NOV-2014
[/TD]
[/TR]
[TR]
[TD]C
[/TD]
[TD]07-OCT-2014
[/TD]
[TD]09-OCT-2014
[/TD]
[/TR]
[TR]
[TD]D
[/TD]
[TD]09-OCT-2014
[/TD]
[TD]01-NOV-2014
[/TD]
[/TR]
[TR]
[TD]E
[/TD]
[TD]14-AUG-2014
[/TD]
[TD]07-OCT-2014
[/TD]
[/TR]
</tbody>[/TABLE]

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

Best way to learn Power Query?
Read M is for (Data) Monkey book by Ken Puls and Miguel Escobar. It is the complete guide to Power Query.
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.

[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]Row Index
[/TD]
[TD]Column D
(Start Date)
[/TD]
[TD]Column E
(End Date)
[/TD]
[/TR]
[TR]
[TD]A
[/TD]
[TD]20-JUL-2014
[/TD]
[TD]27-JUL-2014
[/TD]
[/TR]
[TR]
[TD]B
[/TD]
[TD]01-OCT-2014
[/TD]
[TD]01-NOV-2014
[/TD]
[/TR]
[TR]
[TD]C
[/TD]
[TD]07-OCT-2014
[/TD]
[TD]09-OCT-2014
[/TD]
[/TR]
[TR]
[TD]D
[/TD]
[TD]09-OCT-2014
[/TD]
[TD]01-NOV-2014
[/TD]
[/TR]
[TR]
[TD]E
[/TD]
[TD]14-AUG-2014
[/TD]
[TD]07-OCT-2014
[/TD]
[/TR]
</tbody>[/TABLE]

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

Forum statistics

Threads
1,223,237
Messages
6,170,930
Members
452,367
Latest member
TePunaBloke

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