Conditional formatting

G

Guest

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 ?
 
G

Guest

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
 
G

Guest

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
 
D

David Biddulph

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 =(B2>A1+59) or
=(B2>A1+30) or =(B2<A1) and see whether you get TRUE or FALSE in each case.
 

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

Top