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.
 

Some videos you may like

Excel Facts

Does the VLOOKUP table have to be sorted?
No! when you are using an exact match, the VLOOKUP table can be in any order. Best-selling items at the top is actually the best.

Brian from Maui

MrExcel MVP
Joined
Feb 16, 2002
Messages
8,458
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.
 

Watch MrExcel Video

Forum statistics

Threads
1,122,822
Messages
5,598,304
Members
414,224
Latest member
Crazy_FC

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