Color formatting with two conditions

Memar

Board Regular
Joined
Sep 2, 2011
Messages
76
I want excel automatically to color cells which are below 80% and above 110%. Please note there is a formula written to get the number of the percentages =SUMIF($D$5:$D$30,$D$37,L5:L30). Thus, the formula to formatting the color should be included in the example formula above.


105%110%90%86%70%40%
93%100%100%130%80%60%
82%82%90%65%57%17%

<colgroup><col style="width:47pt" span="6" width="62"> </colgroup><tbody>
</tbody>


desired result

<!--[if gte mso 9]><xml> <o:OfficeDocumentSettings> <o:AllowPNG/> </o:OfficeDocumentSettings> </xml><![endif]-->
105%
110%
90%
86%
70%
40%
93%
100%
100%
130%
80%
60%
82%
82%
90%
65%
57%
17%

<tbody>
</tbody>


<tbody>
</tbody>




<colgroup><col style="width:47pt" span="6" width="62"> </colgroup><tbody>
</tbody>


Thanks for your help and time.
 

Excel Facts

When they said...
When they said you are going to "Excel at life", they meant you "will be doing Excel your whole life".

NeonRedSharpie

Well-known Member
Joined
Jul 14, 2014
Messages
1,678
Just highlight your cells and go to conditional formatting. Then put in two rules using the "above" and "below" buttons. One is above 1.1, and then other is below .8.


eta: I guess they're actually "greater than" and "less than"
 
Last edited:
Upvote 0

Special-K99

Well-known Member
Joined
Nov 7, 2006
Messages
8,426
Office Version
  1. 2019
Select top left hand cell, e.g. A1

Conditional Formatting
New Rule
Use a formula to determine...

=(A1 < 80%)
format as required

=(A1 > 110%)
format as required

Use Format painter (paintbrush icon) to copy to other cells
 
Upvote 0

Forum statistics

Threads
1,190,782
Messages
5,982,878
Members
439,803
Latest member
sushilneupane

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
Top