# IF Formula Help

#### garymu16

##### Board Regular
Hi all,

=IF(B26<50001,16,IF(B26<100001,32,IF(B26<150001,48,IF(B26<200001,64,IF(B26<250001,80, IF(B26<300001,96,IF(B26<350001,112,IF(B26<400001,128))))))))

The above IF formula works perfectly, however, when I add another IF statement to it (,IF(B26<450001,144)) then I get an error message stating the the Formula contains an error. I actually need to add another 3 IF statements onto the end of the above noted formula.

Is there a limit to the number of IF's you can use? Is there a better way to do this formula?

Thx

Gary

### Excel Facts

Excel Joke
Why can't spreadsheets drive cars? They crash too often!

##### MrExcel MVP
Hi all,

=IF(B26<50001,16,IF(B26<100001,32,IF(B26<150001,48,IF(B26<200001,64,IF(B26<250001,80, IF(B26<300001,96,IF(B26<350001,112,IF(B26<400001,128))))))))

The above IF formula works perfectly, however, when I add another IF statement to it (,IF(B26<450001,144)) then I get an error message stating the the Formula contains an error. I actually need to add another 3 IF statements onto the end of the above noted formula.

Is there a limit to the number of IF's you can use? Is there a better way to do this formula?

Thx

Gary

Create a table of 2 columns, say in F:G, like this:

0,16
50000,32
100000,48
...

then invoke:

=LOOKUP(B26,\$F\$12:\$G\$12)

Replies
0
Views
287
Replies
3
Views
932
Replies
1
Views
706
Replies
3
Views
756
Replies
1
Views
538

1,191,683
Messages
5,987,991
Members
440,124
Latest member
dippy_egg

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