# Nesting IF's Limit

#### Emma_

##### New Member
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

Copy formula down without changing references
If you have =SUM(F2:F49) in F50; type Alt+' in F51 to copy =SUM(F2:F49) to F51, leaving the formula in edit mode. Change SUM to COUNT.

#### Emma_

##### New Member
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?

#### Emma_

##### New Member
Hold on, think I got it

Replies
2
Views
453

1,171,463
Messages
5,875,657
Members
433,145
Latest member
nzltrippa

### 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?

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