Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default change cell colour according to date.....

Hello I would be very grateful if anyone could help pont me in the right
direction with a formula to do the following:
I have a date in field D9 and I need field I9 fill colour to change to
orange if todays date is greater than 20 days after the date in D9 and then
turn red if todays date is greater than 28 days after the date in D9 I hope
this makes sense, I am not to hot at excel at the moment but am trying to
learn

Many Thanks

Rich

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 345
Default change cell colour according to date.....

This can be achieved using Conditional Formatting - see here for more info:
http://www.contextures.com/xlCondFormat01.html

To colour as you require you require two conditions in I9:
first =TODAY()$D$9+28 set colour as red
and
second =$I$9$D$9+20 set colour as orange

You could of course use two cells remote from your workings enter 20 in one
and 28 in the other and use those cell references in the formulae, that way
you can, if required, easily change the number of days difference!

Hope this helps






"RichLive" wrote:

Hello I would be very grateful if anyone could help pont me in the right
direction with a formula to do the following:
I have a date in field D9 and I need field I9 fill colour to change to
orange if todays date is greater than 20 days after the date in D9 and then
turn red if todays date is greater than 28 days after the date in D9 I hope
this makes sense, I am not to hot at excel at the moment but am trying to
learn

Many Thanks

Rich

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,104
Default change cell colour according to date.....

Click on I9 and open the Conditional Formatting dialog (in Excel 2007
looking in the Styles group on the Hone tab; in earlier versions open the
Format dropdown on main menu).
First use the rule / Formula Is: =TODAY()-D929 and format for red
Then add a second rule ? Formula Is: =TODAY()-D920 and format for orange

See conditional formatting
http://www.contextures.com/xlCondFormat01.html

best wishes
--
Bernard V Liengme
Microsoft Excel MVP
http://people.stfx.ca/bliengme
remove caps from email


"RichLive" wrote in message
...
Hello I would be very grateful if anyone could help pont me in the right
direction with a formula to do the following:
I have a date in field D9 and I need field I9 fill colour to change to
orange if today's date is greater than 20 days after the date in D9 and
then
turn red if today's date is greater than 28 days after the date in D9 I
hope
this makes sense, I am not to hot at excel at the moment but am trying to
learn

Many Thanks

Rich


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
CHANGE COLOUR(CELL) FOR MANY DATES IF ARE SMALLER THAN ONE DATE SACKYROF Excel Worksheet Functions 2 October 30th 08 01:56 PM
past date cell colour change flasherr Excel Worksheet Functions 2 July 17th 08 06:17 PM
Change cell colour by date Dri New Users to Excel 5 February 8th 06 10:29 PM
How can i change cell colour depending on month of date in cell? andy75 Excel Discussion (Misc queries) 2 January 6th 06 07:46 AM
How to change cell colour, X no days from inserted date in Excel? Bayvon Excel Worksheet Functions 0 October 14th 05 05:17 AM


All times are GMT +1. The time now is 05:15 AM.

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"