Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Conditional formatting based on another cell's value

Status
Not open for further replies.

jh3016

Programmer
Jun 6, 2003
148
US
I have an Excel spreadsheet:

Cell A2 = 95

I would like cell A3 to turn red if Cell A2 >95 and turn green if Cell A2 <95.

Is there a way to do that?

Thanks in advance.
 
Highlite row 3...

use conditional formatting...from menu Format>Conditional Formatting...

in condition 1

change the drop down &quot;cell value is&quot; to &quot;formula is&quot;

type

=if(A2>95,true,false)

set the &quot;pattern&quot; to red

-----------

in condition 2

change the drop down &quot;cell value is&quot; to &quot;formula is&quot;

type

=if(A2<95,true,false)

set the &quot;pattern&quot; to green

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top