Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2
Default Using CF to change colour in cell based on date?

I would like to use Conditional Formating to change the colour of one cell
depending on the date of another cell. What I mean is say I put a date (e.g.
31 Mar 10) in cell F11 and want to add 5 years onto that date and have that
cell (cell G11) give me the new date with the cell colour of green. As the
time counts down have the cell turn yellow, say one year before the end of
the 5 year date, and then turn red once the 5 year date has expired. What
formulas do I use to produce this.
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,942
Default Using CF to change colour in cell based on date?

hi
in G11
condition 1
cell value is....less than.....=F11.... color red
conditon 2
cell value is....greater than or equal
to...=DATE(YEAR(F11)+1,MONTH(F11),DAY(F11))....col or green
conditon 3
cell value is...greater than .....= F11....color yellow

regards
FSt1

"Steve" wrote:

I would like to use Conditional Formating to change the colour of one cell
depending on the date of another cell. What I mean is say I put a date (e.g.
31 Mar 10) in cell F11 and want to add 5 years onto that date and have that
cell (cell G11) give me the new date with the cell colour of green. As the
time counts down have the cell turn yellow, say one year before the end of
the 5 year date, and then turn red once the 5 year date has expired. What
formulas do I use to produce this.

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,942
Default Using CF to change colour in cell based on date?

hi
in G11
condition 1
cell value is...less than....=F11.....color red
condition 2
cell value is...greater than or equal to...
=DATE(YEAR(F11)+1,MONTH(F11),DAY(F11)).....color green
condition 3
cell value... is greater than...=F11...color yellow

regards
FSt1


"Steve" wrote:

I would like to use Conditional Formating to change the colour of one cell
depending on the date of another cell. What I mean is say I put a date (e.g.
31 Mar 10) in cell F11 and want to add 5 years onto that date and have that
cell (cell G11) give me the new date with the cell colour of green. As the
time counts down have the cell turn yellow, say one year before the end of
the 5 year date, and then turn red once the 5 year date has expired. What
formulas do I use to produce this.

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2
Default Using CF to change colour in cell based on date?

FSt1,

Is this what you mean,

Green - =DATE(YEAR(F12)+4,MONTH(F12),DAY(F12))
Yellow - =DATE(YEAR(F12)+4,MONTH(F12),DAY(F12)+1)
Red - =DATE(YEAR(E10),MONTH(E10)+60,DAY(E10)+1))

"FSt1" wrote:

hi
in G11
condition 1
cell value is...less than....=F11.....color red
condition 2
cell value is...greater than or equal to...
=DATE(YEAR(F11)+1,MONTH(F11),DAY(F11)).....color green
condition 3
cell value... is greater than...=F11...color yellow

regards
FSt1


"Steve" wrote:

I would like to use Conditional Formating to change the colour of one cell
depending on the date of another cell. What I mean is say I put a date (e.g.
31 Mar 10) in cell F11 and want to add 5 years onto that date and have that
cell (cell G11) give me the new date with the cell colour of green. As the
time counts down have the cell turn yellow, say one year before the end of
the 5 year date, and then turn red once the 5 year date has expired. What
formulas do I use to produce this.

  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,942
Default Using CF to change colour in cell based on date?

hi
no.
i mean exactly what i posted.
if g11 is less than f11, date as expired.....red.
if g11 is greater than f11, ok......yellow
but if g11 is greater thna f11 by one year, even better...green.

regards
FSt1

Regards
FSt1

"Steve" wrote:

FSt1,

Is this what you mean,

Green - =DATE(YEAR(F12)+4,MONTH(F12),DAY(F12))
Yellow - =DATE(YEAR(F12)+4,MONTH(F12),DAY(F12)+1)
Red - =DATE(YEAR(E10),MONTH(E10)+60,DAY(E10)+1))

"FSt1" wrote:

hi
in G11
condition 1
cell value is...less than....=F11.....color red
condition 2
cell value is...greater than or equal to...
=DATE(YEAR(F11)+1,MONTH(F11),DAY(F11)).....color green
condition 3
cell value... is greater than...=F11...color yellow

regards
FSt1


"Steve" wrote:

I would like to use Conditional Formating to change the colour of one cell
depending on the date of another cell. What I mean is say I put a date (e.g.
31 Mar 10) in cell F11 and want to add 5 years onto that date and have that
cell (cell G11) give me the new date with the cell colour of green. As the
time counts down have the cell turn yellow, say one year before the end of
the 5 year date, and then turn red once the 5 year date has expired. What
formulas do I use to produce this.

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
how do i change cell text colour based on value in other cell Oscarrot Excel Worksheet Functions 2 July 20th 09 03:21 PM
change cell colour according to date..... RichLive Excel Worksheet Functions 2 June 12th 09 03:54 PM
Change colour based on date grateful Excel Worksheet Functions 6 December 11th 08 05:10 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


All times are GMT +1. The time now is 12:32 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"