• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

Conditional formatting of >1 cell

I want to color more than 1 cell based on the values of 2 cells. I know how to write the cond. format rule to color a single cell.


For example, assume that there are 2 cols names plus and down. The following logic would be used to color the cells.


if plus<300 and down<300 and plus<down then plus=pink, down=pink

if plus >=300 and down down<300 then plus=dark green, down=green

if plus<300 and down >300 then plus=green, down=red


So, to clarify the issue I want to implement the if statement and color both the plus and down cells based on the logic in the if statement.
 
Hi jackmanjls,


Please see this file:

http://dl.dropbox.com/u/60644346/conditional_formatting.xlsx


Regards,

Faseeh
 
Jackmanjls


I am going to assume your Plus and Down are A2:B10

Plus is Column A

Down is Column B


Select A2:B10

Goto CF

New Rule

Use a Formula

=And(a2<300,B2<300,A2<B2)

Apply Pink Format


Select A2:A10

Goto CF

New Rule

Use a Formula

=And(A2>=300,B2<300)

Apply Dark Green Format


Select B2:B10

Goto CF

New Rule

Use a Formula

=And(A2>=300,B2<300)

Apply Green Format


Select A2:A10

Goto CF

New Rule

Use a Formula

=And(A2<300,B2>300)

Apply Green Format


Select B2:B10

Goto CF

New Rule

Use a Formula

=And(A2<300,B2>300)

Apply Red Format
 
Back
Top