Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Cell Colors Dependant on Date


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


--
RJM
------------------------------------------------------------------------
RJM's Profile: http://www.excelforum.com/member.php...o&userid=24822
View this thread: http://www.excelforum.com/showthread...hreadid=551179

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7,247
Default Cell Colors Dependant on Date

See Conditional Formatting under the Format menu.


--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com


"RJM" wrote in
message ...

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


--
RJM
------------------------------------------------------------------------
RJM's Profile:
http://www.excelforum.com/member.php...o&userid=24822
View this thread:
http://www.excelforum.com/showthread...hreadid=551179



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6,953
Default Cell Colors Dependant on Date

you can do 3 colors with Data=Validation.

--
Regards,
Tom Ogilvy


"RJM" wrote:


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


--
RJM
------------------------------------------------------------------------
RJM's Profile: http://www.excelforum.com/member.php...o&userid=24822
View this thread: http://www.excelforum.com/showthread...hreadid=551179


  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6,953
Default Cell Colors Dependant on Date

Debra Dalgleish's site has extensive information on conditional formatting as
well:

http://www.contextures.com/tiptech.html

--
Regards,
Tom Ogilvy


"Tom Ogilvy" wrote:

you can do 3 colors with Data=Validation.

--
Regards,
Tom Ogilvy


"RJM" wrote:


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


--
RJM
------------------------------------------------------------------------
RJM's Profile: http://www.excelforum.com/member.php...o&userid=24822
View this thread: http://www.excelforum.com/showthread...hreadid=551179


  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 49
Default Cell Colors Dependant on Date

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()-C17,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

RJM wrote:
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


--
RJM
------------------------------------------------------------------------
RJM's Profile: http://www.excelforum.com/member.php...o&userid=24822
View this thread: http://www.excelforum.com/showthread...hreadid=551179




  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Cell Colors Dependant on Date


Thnx guys, will give it a sho

--
RJ
-----------------------------------------------------------------------
RJM's Profile: http://www.excelforum.com/member.php...fo&userid=2482
View this thread: http://www.excelforum.com/showthread.php?threadid=55117

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
date in Cell to change colors if the date is beyond today's date Pete Elbert Excel Discussion (Misc queries) 2 June 6th 09 06:31 AM
Automatically change cell colors based on date in cell Greg Excel Discussion (Misc queries) 2 January 27th 09 05:55 PM
Can a cell change colors when the date entered arrives? Peadink Excel Discussion (Misc queries) 1 October 10th 07 09:33 PM
Cell colors or text color changing when date in cell gets closer. Chase Excel Worksheet Functions 5 October 19th 06 08:57 AM
Date dependant values. Big Rick Excel Discussion (Misc queries) 6 June 23rd 05 08:16 PM


All times are GMT +1. The time now is 06:55 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"