If and Formula based on date

Dabamaru

New Member
Joined
Nov 15, 2011
Messages
1
Hi Mr. Excel

Can I make a row change colors based on the date? I need it nto change the row color if column H is equal to or passed todays date. How can I do that?

grateful

Daba
 

Some videos you may like

Excel Facts

Does the VLOOKUP table have to be sorted?
No! when you are using an exact match, the VLOOKUP table can be in any order. Best-selling items at the top is actually the best.

T. Valko

Well-known Member
Joined
May 9, 2009
Messages
16,623
Hi Mr. Excel

Can I make a row change colors based on the date? I need it nto change the row color if column H is equal to or passed todays date. How can I do that?

grateful

Daba
What version of Excel are you using?
 

Trevor G

Well-known Member
Joined
Jul 17, 2008
Messages
6,701
Office Version
  1. 2016
Platform
  1. Windows
Welcome to the forum,

You need to use Conditional Formatting and the Formula

Highlight the Column

=H1>NOW() (Make sure you don't get the $ signs)

Then select your colour
 

VoG

Legend
Joined
Jun 19, 2002
Messages
63,650
Try Conditional Formatting

=$H1>=TODAY()

Excel Workbook
ABCDEFGH
113/11/2011
214/11/2011
315/11/2011
416/11/2011
517/11/2011
Sheet1
 

swaroop

Board Regular
Joined
Nov 4, 2009
Messages
89
Dabamaru:

use this in conditional formatting
under "Use a formula to determine which cells to format"

=AND($H1<=TODAY(), $H1<>"")
after hitting format >> do your formatting >> hit ok >> Ok
now in "applies to" filed select your entire range of columns like
=$A:$Z

this is for Excel 2007, and is helpful even when the H column doesnt have any value in it
 
Last edited:

Watch MrExcel Video

Forum statistics

Threads
1,122,463
Messages
5,596,284
Members
414,051
Latest member
tabecker

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
Top