Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
rexmann
 
Posts: n/a
Default Conditional Formatting

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


  #2   Report Post  
PeterG
 
Posts: n/a
Default


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.


--
PeterG
------------------------------------------------------------------------
PeterG's Profile: http://www.excelforum.com/member.php...o&userid=16485
View this thread: http://www.excelforum.com/showthread...hreadid=381527

  #3   Report Post  
rexmann
 
Posts: n/a
Default

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

"PeterG" wrote:


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.


--
PeterG
------------------------------------------------------------------------
PeterG's Profile: http://www.excelforum.com/member.php...o&userid=16485
View this thread: http://www.excelforum.com/showthread...hreadid=381527


  #4   Report Post  
PeterG
 
Posts: n/a
Default


Hi rexmann

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


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

--
PeterG
------------------------------------------------------------------------
PeterG's Profile: http://www.excelforum.com/member.php...o&userid=16485
View this thread: http://www.excelforum.com/showthread...hreadid=381527

  #5   Report Post  
keithl816
 
Posts: n/a
Default


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/=b1a1/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


--
keithl816
------------------------------------------------------------------------
keithl816's Profile: http://www.excelforum.com/member.php...o&userid=21287
View this thread: http://www.excelforum.com/showthread...hreadid=381527



  #6   Report Post  
PeterG
 
Posts: n/a
Default


Thats exactly how i done it...


--
PeterG
------------------------------------------------------------------------
PeterG's Profile: http://www.excelforum.com/member.php...o&userid=16485
View this thread: http://www.excelforum.com/showthread...hreadid=381527

  #7   Report Post  
BenjieLop
 
Posts: n/a
Default


rexmann Wrote:
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.


--
BenjieLop


------------------------------------------------------------------------
BenjieLop's Profile: http://www.excelforum.com/member.php...o&userid=11019
View this thread: http://www.excelforum.com/showthread...hreadid=381527

  #8   Report Post  
rexmann
 
Posts: n/a
Default

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

"BenjieLop" wrote:


rexmann Wrote:
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.


--
BenjieLop


------------------------------------------------------------------------
BenjieLop's Profile: http://www.excelforum.com/member.php...o&userid=11019
View this thread: http://www.excelforum.com/showthread...hreadid=381527


  #9   Report Post  
BenjieLop
 
Posts: n/a
Default


Thank you for the feedback ...

Regards.


--
BenjieLop


------------------------------------------------------------------------
BenjieLop's Profile: http://www.excelforum.com/member.php...o&userid=11019
View this thread: http://www.excelforum.com/showthread...hreadid=381527

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 Error ddate Excel Worksheet Functions 0 May 5th 05 09:00 PM
difficulty with conditional formatting Deb Excel Discussion (Misc queries) 0 March 23rd 05 06:13 PM
conditional formatting question Deb Excel Discussion (Misc queries) 0 March 23rd 05 02:07 AM
Determine cells that drive conditional formatting? Nicolle K. Excel Discussion (Misc queries) 2 January 7th 05 01:08 AM
Conditional formatting not available in Excel BAB Excel Discussion (Misc queries) 2 January 1st 05 03:33 PM


All times are GMT +1. The time now is 09:06 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"