Excel If for one condition with multiple criteria

Caly

Board Regular
Joined
Jul 19, 2015
Messages
159
Office Version
  1. 365
  2. 2013
  3. 2011
  4. 2010
  5. 2007
Platform
  1. Windows
Hi I have a formula using an =IF(AND with the INDEX MATCH function, where the leading statement is the same for all other logic nested IF statements and want to use that leading criteria once to apply for all other logic statements. How do I do that? The same statement is checking to see if there are sales greater than $100 and that is checking against 3 criteria and it is basically 4 statements but trying to not have to repeat the “if(and(sales>=$100” into each statement. Please help.


Below is the formula.

formula:
=if(and(sales>=$100,margin>=index(Starting Cost:Floor percent,match(cost of the item,Floor percent,(-1)),3),margin<=index(Starting Cost:Ceiling percent,match(cost of the item,Ceiling percent,(-1)),4)),sell price,

If(and(sales>=$100,margin<index(Starting Cost:Floor percent,match(cost of the item,Floor percent,(-1)),3)),Cost/(1-index(Starting Cost:Floor percent,match(cost of the item,Floor percent,(-1)),3)),

If(and(sales>=$100,margin>index(Starting Cost:Ceiling percent,match(cost of the item,Ceiling percent,(-1)),4)),Cost/(1-index(Starting Cost:Ceiling percent,match(cost of the item,Ceiling percent,(-1)),4)),sell price


below is the translation:
1. If the margin is greater than the floor and less than the ceiling then it is good And use the sell price as it is
2. If the margin is too low then it raises it to the floor
3. If the margin is too high it brings it down to the floor
4. If all statements not true then the resulting answer will be the sell price as it is.
 

Excel Facts

What do {} around a formula in the formula bar mean?
{Formula} means the formula was entered using Ctrl+Shift+Enter signifying an old-style array formula.

Forum statistics

Threads
1,214,998
Messages
6,122,639
Members
449,093
Latest member
Ahmad123098

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