Conditional Formatting - Reference to multiple column

A

Aspiremind

I need to highlight certain cells in column G for values less than 3 but only
do that when the corresponding row (cell value) in coumn E is greater than 3.

For example,

If G40 < 3 but E40 <=3 then G40 won't be highlighted
If G40 < 3 but E40 > 3 then G40 will be highlighted
If G40 > 3 then no action will be taken

I'm using Excel 2007.
 
S

Sheeloo

use conditional formatting in cell G40 with 'FORMULA IS' option and use the
formula
=AND($G40<3,$E40>3)
 
S

Sheeloo

select the range you want to highlight and enter the formula with reference
to the first cell. if you select G1:G100 then enter the forumula as
=AND($G1<3,$E1>3)
Excel will adjust the row number for other rows.

Alternatively you can select G40 and enter the formula given below
=AND($G40<3,$E40>3)
and then paint the format to other cells in the column.
 

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