IF Statement Multiple Criteria and Threshold Ranges

jws

Board Regular
Joined
Jan 10, 2008
Messages
69
I am trying to do an IF statement that triggers a “review” flag based off multiple criteria mentioned below.

• Column N will be my calculated formula area
• Column M “Bucket” is a calculated field that is hidden as that is driven off criteria area in yellow

V9rC4.png


What I want to have is “IF “bucket” equals “statement in yellow” AND is >= to Column R and <= to Column S, then REVIEW. I don’t think I am explaining it correctly but if you see the example below it might be more clear.

If all of the “Buckets” were the same I could just paste this down the sheet but the bucket is driving the “review” flag based on different thresholds and this sheet is 20,000+ lines so filtering would be an option but I believe there is a better way.

Sample Formula if all buckets were “111 to 130”
=IF(OR(L11>=50%,L11<=-50%),"review","")

Ideally there is one formula that changes the thresholds based on the bucket. If there is more info needed please let me know, thanks in advance.
 

Excel Facts

Did you know Excel offers Filter by Selection?
Add the AutoFilter icon to the Quick Access Toolbar. Select a cell containing Apple, click AutoFilter, and you will get all rows with Apple
Maybe

=IF(ABS(L11) <= VLOOKUP(M11, $Q$2:$R$8, 2, FALSE), "review", "")
 
Upvote 0
Thank you, the absolute value was something I overlooked - perfect!

=IF(ABS(L11)>= VLOOKUP(M11, $P$2:$R$8, 2, FALSE), "review", "")

Now I want to remove #N/A and I am getting an error with this:

=IF(ISNA(ABS(L11)>= VLOOKUP(M11, $P$2:$R$8, 2, FALSE), "review", ""), "", IF(ABS(L11)>= VLOOKUP(M11, $P$2:$R$8, 2, FALSE), "review", "")

I am sure I am overlooking something here...
 
Last edited:
Upvote 0
Why would there be values in the bucket column that are not in the table?

Sometimes an error is just that, an error.
 
Upvote 0
Sorry I guess I left that out. With the absolute value of 4 there are item numbers/lines that I am excluding from the results and would ideally like to have these errors out of the mix.
 
Upvote 0
=IFERROR(IF(ABS(L11)>= VLOOKUP(M11, $P$2:$R$8, 2, FALSE), "review", ""), "")
 
Upvote 0
You're welcome, glad it worked for you.
 
Upvote 0

Forum statistics

Threads
1,224,566
Messages
6,179,558
Members
452,928
Latest member
101blockchains

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