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 Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Excel IF formula needed

Status
Not open for further replies.

brose99

Technical User
Sep 30, 2005
16
US
I need an excel formula that depends on the results in a column of cells, and changes the color of a certain cell if that cell's result is greater than a certain threshold

Ex:

A B C D
1 18%
2 15%
3 21%
4 25%
5 12%
6 20%

How do I write a formula that changes the cell color if any result in Column A is >= 20%?

Thanks in advance.
 
Nevermind. Conditional Formatting was the answer.
 
You can't change color using an IF function in a cell.

You can use conditional formatting, though.

Format > Conditional formatting
Choose 'Formula is' and enter this in the box:
=MAX(A1:A6)>=20%
Click the little format button, go to the Patterns tab and pick your color. Say OK twice.

 
Glad to hear you figured it out.
I answered this question:
How do I write a formula that changes the cell color if any result in Column A is >= 20%?

Not this one:
changes the color of a certain cell if that cell's result is greater ...

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top