Cell Colors Dependant on Date

  • Thread starter Thread starter RJM
  • Start date Start date
R

RJM

If I were to assign "=NOW()" to say...cell A10 and have column C
dedicated to delivery dates for customers, could I have the cells
automatically change colors the closer it gets the date in cell A10?
For instance: If any of the delivery dates were 2 weeks away then the
cells would turn green, 1 week away those cells would turn limegreen, 3
days away they would turn yellow and past due would be red. Thnx for any
help
 
See Conditional Formatting under the Format menu.


--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com
 
You can easily do this with Conditional Formatting using simple date
subtraction.
Do you have to do it with VBA?
You don't have to store today's date in another cell.

Format/Cond Formatting

Condition 1(2 weeks away):
-Change from Cell Value Is to Formula Is
=and(TODAY()-C1>7,NOW()-C1<=14)
-choose formatting for this condition

Condition 2(1 week away):
-Change from Cell Value Is to Formula Is
=TODAY()-C1<=7
-choose formatting for this condition

Good luck
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top