Conditional format for date

G

George Gee

Hi All

Conditional formatting problem:

Example
A B
1 24/Sept/04 £300.00
2 25/Sept/04 £250.00
3 27/Sept/04 £275.00
4 28/Sept/04 £420.00

This is what I would like to achieve:

If the date in Column A is current, then conditionally format
the adjacent cell in Column B: eg: =A1=TODAY() (and copy down).

But I wish this condition to apply until the next date in the row
below is current, then lose the formatted condition.

To put it another way:

On the 25/Sept/04 & 26/Sept/04 cell B2 is conditionally formatted.
When the 27/Sept/04 is reached, then cell B3 is conditionally formatted,
and cell B2 is not!

Can this be achieved?

Many thanks.
 
F

Frank Kabel

Hi
try the following:
- select B1:B20
- goto the conditional format dialog and enter the following formula:
=ROW($B1)=MATCH(TODAY(),$A$1:$A$10,1)
- choose your format
 
G

George Gee

Hi Frank

No, just the corresponding cell in Column F.
Many thanks
George Gee

*Frank Kabel* has posted this message:
 
F

Frank Kabel

Hi
then just pplay my first instructions:
- select F4:F20
- goto the conditional format dialog and enter the following formula:
=ROW($F4)=MATCH(TODAY(),$A$4:$A$100,1)
- choose your format
 
G

George Gee

Hi Frank

Got it!
Thanks very much.
I was not changing the Column from "B" to "F".
Don't think my head is the right shape for Excel!

Again many thanks, you're a genius!

George

*Frank Kabel* has posted this message:
 
G

George Gee

Hi Frank.

Thanks for the response, the formula you gave me
works great using a mock-up worksheet.

However: in the Worksheet I wish to use,
the dates are in Column A, starting on row 4,
the data I wish to conditionally format
is in Column F, and I wish to format the entire column,
how do I change the formula to give this result?

Many thanks for helping me thus far!

George Gee



*Frank Kabel* has posted this message:
 

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