Conditional Formatting - Three colors for various values

bigpahpa

New Member
Joined
Feb 27, 2018
Messages
2
I have a column that has a percent value and I'd like <1% to be green, 1-2% yellow and >2% to be red.
Is it possible to have multiple conditions on a single row? I can't figure out how to make that work. Any help would be GREATLY appreciated!
 

Excel Facts

Return population for a City
If you have a list of cities in A2:A100, use Data, Geography. Then =A2.Population and copy down.
Welcome to the Board!

You can set up three different Conditional Formatting rules.
If you use the formula option of Conditional Formatting, let's say that the value you want to check is in cell A1.
Then you would just highlight all the rows you want to apply this to, and write the CF formula as it applies to the first row, i.e.
Code:
=$A1 < 1%
and choose your green color.

For the second one, your formula would look like:
Code:
=AND($A1 >= 1%,$A1 <= 2%)
and choose the yellow color.

And the third one:
Code:
=$A1 > 2%
and choose the red color
 
Upvote 0
Thank you for the welcome and the crazy quick reply!

I was able to do the first formula fine but the second formula fails to highlight anything and the third formula just turns my whole selection red.
It's confusing but I'm going to make another attempt when I have more time.

Thanks again for the reply and the help!
 
Upvote 0
A few things to check:

- Make sure that the formulas you are writing match up with the range you are selecting to apply this to.
If you are selecting a multi-cell range, write the formula as it pertains to the FIRST cell in your selection, and Excel will adjust the rest accordingly if you have used the proper mix of absolute and relative range references (see: http://www.cpearson.com/excel/relative.aspx)

- Make sure your values are really entered as values and not text.

- Make sure that you refer to the number properly.
Note that 1% is the same as .01. So you can use either value.
But some people mistakenly think 1% is the same as 1, and that is NOT the case.

If you still cannot get it to work, please let us know what range you are selecting, and exactly what formulas you are entering in.
 
Upvote 0

Forum statistics

Threads
1,223,897
Messages
6,175,270
Members
452,628
Latest member
dd2

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top