Nesting IF's Limit

Emma_

New Member
Joined
Jun 3, 2014
Messages
3
Dear Forum, I am categorizing my different business units based on net sales. I have set different criterias depending on the business unit name and 3 sale intervalls. Now I get an error that I cannot add another IF function for my last business unit. So, my question is if I somehow can shorten this down so that I can include my last "BU6" with its criterias. I really don't see how I could do this. Would it somehow be possible? Appreciate any help, thank you! =IF(N19="BU1";IF(W19>=2000000;"1";IF(AND(W19>=900000;W19<=1999999);"2";IF(W19<=899999;"3")));IF(N19="BU2";IF(W19>=3000000;"1";IF(AND(W19>=1500000;W19<=2999999);"2";IF(W19<=1499999;"3")));IF(N19="BU3";IF(W19>=300000;"1";IF(AND(W19>=100000;W19<=299999);"2";IF(W19<=99999;"3")));IF(N19="BU4";IF(W19>=400000;"1";IF(AND(W19>=200000;W19<=399999);"2";IF(W19<=199999;"3")));IF(N19="BU5";IF(W19>=300000;"1";IF(AND(W19>=150000;W19<=299999);"2";IF(W19<=149999;"3"))))))))
 

Excel Facts

Which lookup functions find a value equal or greater than the lookup value?
MATCH uses -1 to find larger value (lookup table must be sorted ZA). XLOOKUP uses 1 to find values greater and does not need to be sorted.
Dear Andrew, What would my lookup table look like if I had the following condition for the intervals: 1= >2000000, 2= 2000000-900000, 3= <900000?
 
Upvote 0

Forum statistics

Threads
1,215,063
Messages
6,122,934
Members
449,094
Latest member
teemeren

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