# IF Statements

#### MarkAndrews

##### Well-known Member
I know you can only nest 7 IF statements in a standard formula

My question is, How can i do more?

TIA

### Excel Facts

Wildcard in VLOOKUP
Use =VLOOKUP("Apple*" to find apple, Apple, or applesauce
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.

You can usually use a LOOKUP instaed or possibly the CHOOSE function, but as Peter says, it depends on your own particular circumstances.

Richard

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

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

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

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

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.

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",""))``

Mark

So why not use a VLOOKUP?

Replies
3
Views
110
Replies
4
Views
76
Replies
12
Views
421
Replies
1
Views
265
Replies
10
Views
350

1,221,384
Messages
6,159,543
Members
451,571
Latest member
Qwissy

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

### Which adblocker are you using?

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

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