# Multiple "IF" statement

##### New Member
Good Morning

I need to do a multiple "IF" statement and have no clue how to do it.

E.g:

3500 up = 1
1000 - 3499 = 2
350 - 999 = 3
100 - 349 = 4
0 - 99 = 5

Thanks

### Excel Facts

Repeat Last Command
Pressing F4 adds dollar signs when editing a formula. When not editing, F4 repeats last command.

#### Trebor76

##### Well-known Member
Hi there,

Though you could use a nested IF statement, try this (just change the cell reference to suit):

=IF(ISNUMBER(A31)=TRUE,LOOKUP(A31,{0,100,350,1000,3500},{5,4,3,2,1}),0)

Regards,

Robert

#### Peter_SSs

##### MrExcel MVP, Moderator
Or, similar idea to Robert but make the 'lookup table' in your sheet rather than in the formula itself. Formula in B2 is copied down.

Excel Workbook
ABCDE
1
2286405
3421611004
42153503
510002
635001
7
Lookup Table

Replies
0
Views
68
Replies
4
Views
189
Replies
4
Views
104
Replies
1
Views
46
Replies
6
Views
40

1,127,521
Messages
5,625,296
Members
416,089
Latest member
Captkraken33

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