Conditional format within %

nparsons75

Well-known Member
Joined
Sep 23, 2013
Messages
1,254
Office Version
  1. 2016
Hi,

I need to setup conditional formatting to show a different colour based on how close to a target we are. In the table below for example,

If we are less than 70% of the target the colour is set to red.
Between 70% and 90% the colour is amber.
90% and above is green.

The colour scale is an example and the % ranges may need to be altered but hopefully the table below will show what I am hoping for.

Thanks in advance.

Book1
ABCDEF
1Target20002000200020002000
2Actual12001400160018002000
3%60%70%80%90%100%
Sheet3
Cell Formulas
RangeFormula
B3:F3B3=B2/B1
 

Excel Facts

Why does 9 mean SUM in SUBTOTAL?
It is because Sum is the 9th alphabetically in Average, Count, CountA, Max, Min, Product, StDev.S, StDev.P, Sum, VAR.S, VAR.P.
Setup three rules

using
=B3<=0.7 for Red
=B3<=0.9 for Amber
=B3<=1 for Green

Using STOP If TRUE

Book3
ABCDEF
1Target20002000200020002000
2Actual12001400160018002000
3%60%70%80%90%100%
Sheet1
Cell Formulas
RangeFormula
B3:F3B3=B2/B1
Cells with Conditional Formatting
CellConditionCell FormatStop If True
B3:F3Expression=B3<=0.7textYES
B3:F3Expression=B3<=0.9textYES
B3:F3Expression=B3<=1textYES



for 2007, 2010 , 2013 , 2016 , 2019 or 365 Subscription excel version
Conditional Formatting

Highlight applicable range >>

B3:F3


Home Tab >> Styles >> Conditional Formatting
New Rule >> Use a formula to determine which cells to format
Edit the Rule Description: Format values where this formula is true:

RULE 1

=B3<=0.7


Format [Number, Font, Border, Fill] for Red
choose the format you would like to apply when the condition is true
OK >> OK

Repeat for other 2 rules
 
Upvote 0
Solution
Setup three rules

using
=B3<=0.7 for Red
=B3<=0.9 for Amber
=B3<=1 for Green

Using STOP If TRUE

Book3
ABCDEF
1Target20002000200020002000
2Actual12001400160018002000
3%60%70%80%90%100%
Sheet1
Cell Formulas
RangeFormula
B3:F3B3=B2/B1
Cells with Conditional Formatting
CellConditionCell FormatStop If True
B3:F3Expression=B3<=0.7textYES
B3:F3Expression=B3<=0.9textYES
B3:F3Expression=B3<=1textYES



for 2007, 2010 , 2013 , 2016 , 2019 or 365 Subscription excel version
Conditional Formatting

Highlight applicable range >>

B3:F3



Home Tab >> Styles >> Conditional Formatting
New Rule >> Use a formula to determine which cells to format
Edit the Rule Description: Format values where this formula is true:

RULE 1

=B3<=0.7


Format [Number, Font, Border, Fill] for Red
choose the format you would like to apply when the condition is true
OK >> OK

Repeat for other 2 rules
 
Upvote 0
Just stumbled on a problem...

I also want everything over and above zero (0) to be green?
 
Upvote 0
above zero - thats red as below 70%
Y11 ???

Not sure what you are after, BUT you say you managed to include
=Y11>=1 so thats greater or equal to 1 not zero

Anyway , come back if needed
 
Upvote 0

Forum statistics

Threads
1,215,039
Messages
6,122,802
Members
449,095
Latest member
m_smith_solihull

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