IF Statements

MarkAndrews

Well-known Member
Joined
May 2, 2006
Messages
1,963
I know you can only nest 7 IF statements in a standard formula

My question is, How can i do more?

TIA
 

Excel Facts

Workdays for a market open Mon, Wed, Friday?
Yes! Use "0101011" for the weekend argument in NETWORKDAYS.INTL or WORKDAY.INTL. The 7 digits start on Monday. 1 means it is a weekend.

Peter_SSs

MrExcel MVP, Moderator
Joined
May 28, 2005
Messages
49,555
Office Version
  1. 365
Platform
  1. Windows
I know you can only nest 7 IF statements in a standard formula

My question is, How can i do more?

TIA
Could you explain your requirements? Different circumstances might lead to different solutions.
 

Richard Schollar

MrExcel MVP
Joined
Apr 19, 2005
Messages
23,707
You can usually use a LOOKUP instaed or possibly the CHOOSE function, but as Peter says, it depends on your own particular circumstances.

Richard
 

MarkAndrews

Well-known Member
Joined
May 2, 2006
Messages
1,963
I have 22 clients, which all have a corresponding 'Client ID'

This client ID is retrieved from a Database, & saved in Excel format

So, What i'm after doing is a monster IF Statement which contains 22 IF's?

Is this possible?

I honestly dont have a clue, As (i think) the most IF's i've ever used is 6

TIA

Mark
 

PaddyD

MrExcel MVP
Joined
May 1, 2002
Messages
14,234

ADVERTISEMENT

use a vlookup - search the board for examples, review helps file for instructions on its use, post back if you can't get it sorted...
 

MarkAndrews

Well-known Member
Joined
May 2, 2006
Messages
1,963
You can usually use a LOOKUP instaed or possibly the CHOOSE function, but as Peter says, it depends on your own particular circumstances.

Richard

Thanks Richard
 

Richard Schollar

MrExcel MVP
Joined
Apr 19, 2005
Messages
23,707

ADVERTISEMENT

Mark

What do you want to do involving the IFs? Return a client ID given some other value? What's the other value? Is a VLOOKUP appropriate here?

Richard
 

Norie

Well-known Member
Joined
Apr 28, 2004
Messages
76,300
Office Version
  1. 365
Platform
  1. Windows
Mark

What do you actually want to do?

What is the purpose of this IF statement?

If you give us more information we can give you more help.
 

MarkAndrews

Well-known Member
Joined
May 2, 2006
Messages
1,963
Mark

What do you actually want to do?

What is the purpose of this IF statement?

If you give us more information we can give you more help.

Sorry, I'll elaborate

I basically want to adapt the IF statement to include the other 22 options

Etc as below

Code:
=IF(A2=10,"Halifax",IF(A2=12,"BBG",""))
 

Norie

Well-known Member
Joined
Apr 28, 2004
Messages
76,300
Office Version
  1. 365
Platform
  1. Windows
Mark

So why not use a VLOOKUP?

And why not give us some more information?:)
 

Forum statistics

Threads
1,137,301
Messages
5,680,705
Members
419,929
Latest member
Atlas Quinn

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