IF Statements

gothung

New Member
Joined
Jun 3, 2002
Messages
32
Is there anyway to use more than 7 arguments in an IF statement? Or is there another function that can give you essentially the same results from IF statement without limitations on the number of arguments. (I need 10)


Any help would be greatly appreciated.
 

Excel Facts

What is the fastest way to copy a formula?
If A2:A50000 contain data. Enter a formula in B2. Select B2. Double-click the Fill Handle and Excel will shoot the formula down to B50000.

Brian from Maui

MrExcel MVP
Joined
Feb 16, 2002
Messages
8,459
gothung said:
Is there anyway to use more than 7 arguments in an IF statement? Or is there another function that can give you essentially the same results from IF statement without limitations on the number of arguments. (I need 10)



Any help would be greatly appreciated.


VLOOKUP...maybe

Post some data
 

Seti

Well-known Member
Joined
May 19, 2002
Messages
2,916
One option I have seen mentioned in this forum is to create a second set of conditions in another column. Check for the first 5 conditions in cell 1 and the 2nd 5 in cell 2 then add them together if the result is numeric as an example.
 

Yesuslave

Active Member
Joined
Sep 19, 2003
Messages
297
if you're actually working in VBA instead of directly in a cell's formula, the Select Case code seems to work very well for any number of conditions.

-Joshua Wise
 

Zack Barresse

MrExcel MVP
Joined
Dec 9, 2003
Messages
10,881
Office Version
  1. 365
  2. 2010
Platform
  1. Windows
  2. Mobile
  3. Web
you could always use AND or OR function in your IF statement. i believe they can take up to thirty different criteria options. if not enough, nest up to seven IF functions.

hope this helps.
 
Master Excel Bundle

Excel contains over 450 functions, with more added every year. That’s a huge number, so where should you start? Right here with this bundle.

Forum statistics

Threads
1,168,088
Messages
5,857,290
Members
431,869
Latest member
Avinashz

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
Top