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 Conditional formatting

I want to change background colour in cell acording to the number of days to
a given date. i.e todays date is in cell A1 when other cells are greater than
A1+60days then background is green, when less than A1+30 background is amber,
when A1-1 background is red. How is this done ?
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,101
Default Conditional formatting

Conditional format the cell with 3 formats.

Cell value - is greater than =A1+59 = Green
Cell value - is greater than =A1+30 = Amber
Cell value - is less than =A1 = red

Mike
"Phil Roberts" wrote:

I want to change background colour in cell acording to the number of days to
a given date. i.e todays date is in cell A1 when other cells are greater than
A1+60days then background is green, when less than A1+30 background is amber,
when A1-1 background is red. How is this done ?

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default Conditional formatting

Tried this, typed in three formats, clicked ok, cell went red, even though
date in cell should have remained green by 2 years. Would not change back to
green no matter what date was typed in cell

"Mike" wrote:

Conditional format the cell with 3 formats.

Cell value - is greater than =A1+59 = Green
Cell value - is greater than =A1+30 = Amber
Cell value - is less than =A1 = red

Mike
"Phil Roberts" wrote:

I want to change background colour in cell acording to the number of days to
a given date. i.e todays date is in cell A1 when other cells are greater than
A1+60days then background is green, when less than A1+30 background is amber,
when A1-1 background is red. How is this done ?

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,651
Default Conditional formatting

1 If today's date is in A1, does your CF criterion refer to $A$1, to prevent
the reference changing if you are trying to apply the CF format to multiple
cells?
2 Check the CF criteria to make sure that Excel hasn't inserted spurious
quote marks.
3 Check the format and content of your cells to make sure that you've really
got dates (and not text) in A1, and in the cells you're trying to format.
4 Check individual cells by using a formula such as =(B2A1+59) or
=(B2A1+30) or =(B2<A1) and see whether you get TRUE or FALSE in each case.
--
David Biddulph

"Phil Roberts" wrote in message
...
Tried this, typed in three formats, clicked ok, cell went red, even though
date in cell should have remained green by 2 years. Would not change back
to
green no matter what date was typed in cell

"Mike" wrote:

Conditional format the cell with 3 formats.

Cell value - is greater than =A1+59 = Green
Cell value - is greater than =A1+30 = Amber
Cell value - is less than =A1 = red

Mike
"Phil Roberts" wrote:

I want to change background colour in cell acording to the number of
days to
a given date. i.e todays date is in cell A1 when other cells are
greater than
A1+60days then background is green, when less than A1+30 background is
amber,
when A1-1 background is red. How is this done ?



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
conditional Formatting based on cell formatting Totom Excel Worksheet Functions 3 January 20th 07 02:02 PM
conditional Formatting based on cell formatting Totom Excel Worksheet Functions 0 January 15th 07 04:35 PM
How do I use more than one value in Conditional Formatting? Gerard Excel Worksheet Functions 4 September 25th 06 04:36 PM
conditional formatting... almost Andy Warner Excel Discussion (Misc queries) 2 February 9th 06 02:28 PM
Conditional Formatting that will display conditional data BrainFart Excel Worksheet Functions 1 September 13th 05 05:45 PM


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