Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / Worksheet Functions / March 2006

Tip: Looking for answers? Try searching our database.

Conditional Formatting

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
3Pinter - 20 Mar 2006 09:43 GMT
Hi,

I hope this is the correct place to ask my question...

What I want is to create a 'conditional formatting' of two colums.

Example:
1|..a..|..b..|
2|..2..|..5..|
3|..5..|..5..|
4|..5..|..6..|

So colum b is the result of some formulas. Colum a should be 'tested
like this:
IF b > a then a should be red. Unique for each row.

So I used conditional format for each single row:
="$B$2 > $A$2"

But is it possible to create a single formula to check if the value o
colum b is bigger than colum a, checking each row indepedant?

Something like "$B$x > $A$x" where x is the variable.

So my example would be:
2: red
3: nothing
4: nothing

Hope it's clear,

3Pinte
Dav - 20 Mar 2006 10:05 GMT
Excel sometimes feels the need to add the " around the formula, loos
them then if you loose the dollars infront of the numbers and the
ciopy the formula down the column it should work

so =$b2>$a2 should work and be copied down

Regards

Da
3Pinter - 20 Mar 2006 10:25 GMT
Copying a cell with conditional formatting doesn't work because th
conditional formatting isn't seen as 'constant'. So I won't change t
$b$3>$a$3 ... $b$4>$a$4 etc.etc.

Another solution maybe?

I've included a test file which better explains my problem.

3Pinte

+-------------------------------------------------------------------
|Filename: test.zip                                                
|Download: http://www.excelforum.com/attachment.php?postid=4482     
+-------------------------------------------------------------------
Morrigan - 20 Mar 2006 15:59 GMT
I believe Dav's formula should work if you copy and past
special(formats)
ufo_pilot - 20 Mar 2006 16:06 GMT
3Pinter,
Dav was correct
$b3>$a3   in your first cell of formattting (  NOT $b$3>$a$3... watch the
$$$$ )
then copy that cell
Paste Special ( Edit>Paste Special)  Then select> Format
Another way click on the formatted cell, double-click on your Format Painter
( paintbrush-icon) every cell you click on or scroll over now receives that
format.

> Copying a cell with conditional formatting doesn't work because the
> conditional formatting isn't seen as 'constant'. So I won't change to
> $b$3>$a$3 ... $b$4>$a$4 etc.etc.

> Another solution maybe?
>
[quoted text clipped - 6 lines]
> |Download: http://www.excelforum.com/attachment.php?postid=4482     |
> +-------------------------------------------------------------------+
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.