Multiple Criteria Conditional Formatting with Threshold

calvinc123

New Member
Joined
Sep 24, 2015
Messages
9
My objective is to establish a conditional format across the table based on a certain threshold establish for multiple categories. Each category will have a different threshold, which adds another layer of complexity to the issue. Below is an example breaking it down. Feel free to ask what ever questions you have if it's not clear! Thanks for your help!!

Example: A, B, C are all values that will be static inputs. Column D will be checked versus the type of category and the threshold established in column A. Column E will be the conditional formatting for how much Column C is out of balance based on the type of category it is from column A.

A1B1C1D1E1
CategoryProductCurrent (%)CheckImbalance
Basket 1Apple10%OK-
Basket 2Apple12%Out of Balance-1%
Basket 3Apple24%Out of Balance2%
Basket 1Apple13%Out of Balance1%
Basket 3Apple22%OK-
Basket 2Apple5%Out of Balance-7%
Basket 3Apple8%Out of Balance-10%

<tbody>
</tbody>


Here is the set of "Rules" for the Categories and the Threshold Level.

CategoryProductRule (%)
Basket 1Apple10%
Basket 2Apple15%
Basket 3Apple20%
Threshold (+/-)2%

<tbody>
</tbody>


Hope this is clear! Best.
 

Excel Facts

What is the fastest way to copy a formula?
If A2:A50000 contain data. Enter a formula in B2. Select B2. Double-click the Fill Handle and Excel will shoot the formula down to B50000.
you could use a lookup
=LOOKUP(2,1/(Sheet2!$A$1:$A$10=A2)/(Sheet2!$B$1:$B$10=B2),Sheet2!$C$1:$C$10)
this is assuming the reference is on Sheet 2

that returns the reference value
then we can use an AND() to compare the tolerance

is
C2 > = the lookup - the tolerance
C2 < = the lookup + the tolerance

using an AND()
then an IF for the check

then a little more complicated for the amount out

I'll work on a sample

for the OK or out of balance
=IF(AND(C2 > = LOOKUP(2,1/(Sheet2!$A$1:$A$10=A2)/(Sheet2!$B$1:$B$10=B2)-Sheet2!$B$6,Sheet2!$C$1:$C$10),C2 < = LOOKUP(2,1/(Sheet2!$A$1:$A$10=A2)/(Sheet2!$B$1:$B$10=B2),Sheet2!$C$1:$C$10)+Sheet2!$B$6),"OK","Out of Balance")
 
Last edited:
Upvote 0
i can nolonger edit

so for the value
=IF(AND(C2 > = LOOKUP(2,1/(Sheet2!$A$1:$A$10=A2)/(Sheet2!$B$1:$B$10=B2)-Sheet2!$B$6,Sheet2!$C$1:$C$10),C2 < = LOOKUP(2,1/(Sheet2!$A$1:$A$10=A2)/(Sheet2!$B$1:$B$10=B2),Sheet2!$C$1:$C$10)+Sheet2!$B$6),"-",IF(C2 < = LOOKUP(2,1/(Sheet2!$A$1:$A$10=A2)/(Sheet2!$B$1:$B$10=B2),Sheet2!$C$1:$C$10)-Sheet2!$B$6, C2-(LOOKUP(2,1/(Sheet2!$A$1:$A$10=A2)/(Sheet2!$B$1:$B$10=B2),Sheet2!$C$1:$C$10)-Sheet2!$B$6),C2-(LOOKUP(2,1/(Sheet2!$A$1:$A$10=A2)/(Sheet2!$B$1:$B$10=B2),Sheet2!$C$1:$C$10)+Sheet2!$B$6)))

I make the 7% out of balance 8%

https://www.dropbox.com/s/c51qr9s3x0z56gg/tolerance.xlsx?dl=0
 
Last edited:
Upvote 0
Thanks so much! I will check this out and see if it will accomplish what I need it to. I'll let you know if I have any questions.
 
Upvote 0

Forum statistics

Threads
1,215,046
Messages
6,122,849
Members
449,096
Latest member
Erald

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