PC Review


Reply
Thread Tools Rate Thread

Conditional Formatting with Relative Reference.

 
 
Swiatkowski Peter
Guest
Posts: n/a
 
      15th Dec 2005
Conditional Formatting with Relative Reference.

Sample workbook:

A B C D E F


1. 4.5 6 7.4 8.3 10 2

2. 1 2 3 4 3 2

3. 1 2 3 4 5 6

4. 6 5 4 3 2 1



Hi,

How can Excel 2003 workbook be designed so that if a value of a cell is
smaller or greater than the value of the cell, then color of the cell is
auto formatted ?

Formatting of the cell is as follows: Green if value is greater and Red if
the value is smaller.

Desired result based on the above sample workbook:

A B C D E F

1. 4.5 Green Green Green Green Red

2. 1 Green Green Green Red Red

3. 1 Green Green Green Green Green

4. 6 Red Red Red Red Red


Peter


 
Reply With Quote
 
 
 
 
Max
Guest
Posts: n/a
 
      16th Dec 2005
Here's one way to set it up ..

Sample construct at:
http://cjoint.com/?mqddSmGPsp
Conditional_Formatting_Swiatkowski_Peter_gen.xls

Select cols B to F
(ensure cell B1 is active by selecting the col header B first,
then sweep to col header F)

Click Format > Conditional Formatting

Make the settings as:

Condition 1:
Formula is: =AND(B1>$A1,B1<>"")
Click Format button > Patterns tab > Green > OK

Condition 2:
Formula is: =AND(B1<$A1,B1<>"")
Click Format button > Patterns tab > Red > Font tab > white font / bold > OK

Click OK at the main dialog

The above will conditionally format cols B to F in the desired manner
--
Rgds
Max
xl 97
---
Singapore, GMT+8
xdemechanik
http://savefile.com/projects/236895
--
"Swiatkowski Peter" <(E-Mail Removed)> wrote in message
news:nsOdnbhx54HyQDzeRVn-(E-Mail Removed)...
> Conditional Formatting with Relative Reference.
>
> Sample workbook:
>
> A B C D E F
>
>
> 1. 4.5 6 7.4 8.3 10 2
>
> 2. 1 2 3 4 3 2
>
> 3. 1 2 3 4 5 6
>
> 4. 6 5 4 3 2 1
>
>
>
> Hi,
>
> How can Excel 2003 workbook be designed so that if a value of a cell is
> smaller or greater than the value of the cell, then color of the cell is
> auto formatted ?
>
> Formatting of the cell is as follows: Green if value is greater and Red if
> the value is smaller.
>
> Desired result based on the above sample workbook:
>
> A B C D E F
>
> 1. 4.5 Green Green Green Green Red
>
> 2. 1 Green Green Green Red Red
>
> 3. 1 Green Green Green Green Green
>
> 4. 6 Red Red Red Red Red
>
>
> Peter
>
>



 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Relative Reference in Conditional Formattin Don E Microsoft Excel Worksheet Functions 1 21st Jan 2010 03:21 PM
Conditional Formatting with relative cells HelenJ Microsoft Excel Misc 8 17th Jun 2009 05:38 PM
Unable to obtain relative reference using conditional formatting JP Microsoft Excel Worksheet Functions 2 10th Feb 2009 06:51 PM
Unable to obtain relative reference using conditional formatting JP Microsoft Excel Worksheet Functions 0 10th Feb 2009 01:46 PM
Conditional Formatting with Relative Reference. Swiatkowski Peter Microsoft Excel Discussion 4 15th Dec 2005 08:23 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 03:53 PM.