IF Formula Help

garymu16

Board Regular
Joined
Sep 15, 2006
Messages
139
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

Why are there 1,048,576 rows in Excel?
The Excel team increased the size of the grid in 2007. There are 2^20 rows and 2^14 columns for a total of 17 billion cells.
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)
 
Upvote 0

Forum statistics

Threads
1,214,875
Messages
6,122,044
Members
449,063
Latest member
ak94

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