Conditional Formatting

3

3Pinter

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
 
D

Dav

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
 
3

3Pinter

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
+-------------------------------------------------------------------
 
G

Guest

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.
 

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