Conditional Formatting

R

rexmann

Hi all

I am not sure if this is possible but I have a spreadsheet with two columns
of dates. If the date in one column is less than the one in the other column
I want to highlight the column in a different colour. However the dates are
all different

Example

12/04/05 13/05/05
04/01/05 13/04/05
05/05/05 03/03/05

Therefore I have tried to put an if statement in the conditional formatting
but it gives me an error. I could create a separate IF statement column but
this becomes a bit clumsy (there's actually loads of dates on different
sheets)

Therefore in summary I want to create conditional formatting on one column
based on the values in another column. Is this possible? any help greatly
appreciated

Rexmann

PS running Excel XP
 
P

PeterG

Setup conditional formatting on both columns.

In conditional formatting setup as follows:

Colum A ...

Cell Value is Greater than B1


colum B ...

Cell Value is Greater than B1

In each change font colour to say RED.
 
R

rexmann

Hi Peter

thanks for the response and I tried to use your method but ut didn't work.
Could you be a bit more specific (i'm a bit of an IT novice!)

sorry to be a pain

Rexmann
 
P

PeterG

Hi rexmann

I have enclosed an example spreadsheet, its easier to look at tha
rather than try explain ... unzip it from this file

+-------------------------------------------------------------------
|Filename: conditional example.zip
|Download: http://www.excelforum.com/attachment.php?postid=3529
+-------------------------------------------------------------------
 
K

keithl816

Hi rexmann,

Try this

12/04/05 in cell a1
13/05/05 in cell b1

If you want to highlight a1 to change colors if it's lower than b1 then
do this in cell a1

Format/Conditional Formatting/Formula is/=b1>a1/Click Format
button/Click Patterns Tab/Pick color/OK

if you want to highlight b1 to change colors if its lower than a1 then
do this in cell b1

Format/Conditional Formatting/Formual is/=b1<a1/Format/Click Patterns
Tab/Pick color/OK

Hope this helps
 
B

BenjieLop

rexmann said:
Hi all

I am not sure if this is possible but I have a spreadsheet with two
columns
of dates. If the date in one column is less than the one in the other
column
I want to highlight the column in a different colour. However the dates
are
all different

Example

12/04/05 13/05/05
04/01/05 13/04/05
05/05/05 03/03/05

Therefore I have tried to put an if statement in the conditional
formatting
but it gives me an error. I could create a separate IF statement column
but
this becomes a bit clumsy (there's actually loads of dates on
different
sheets)

Therefore in summary I want to create conditional formatting on one
column
based on the values in another column. Is this possible? any help
greatly
appreciated

Rexmann

PS running Excel XP

ASSUMING you want to highlight entries in Column A if the dates are
earlier than those on Column B, do the following:

1. Go the cell in Column A (or if you have a range in Column A,
highlight the range)
2. Go to "Format/Conditional Formatting"
3. A new window will pop up and on the first box on the left, choose
"Formula Is"
4. On the second box to the right, choose "Equal To"
5. On the next box to the right, enter "=A1<B1" (without the quotes)
6. Click "Format" and you can choose the font/color that appeal to you
7. Click OK
8. Click OK

If you want to do the reverse, i.e.. highlight Column B entries instead
of Column A,
change "Column A" in Step 1 outlined above, follow the rest of the
steps and on Step 5, enter "=B1<A1" instead.

Hope this is what you need.

Regards.
 
R

rexmann

Hi all

thanks for the help - much appreciated and got it to work - realised my
error (I forgot to put the equals sign in on first attempt - school boy
error, I know!!!!)

anyway thanks again and have a good weekend

Rexmann
 

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