# Help with Nested If AND statement

#### thewiseguy

##### Well-known Member
Hi all,

I am having a difficult time combining these 4 individual statements. Can anyone help?

=IF(E5<21,Helper!U2)
=IF(AND(e5>20,e5<51),Helper!v2,"")
=IF(AND(e5>50,e5<101),Helper!w2,"")
=IF(e5>100,Helper!x2)

Many thanks in advance!

### Excel Facts

Spell Check in Excel
Press F7 to start spell check in Excel. Be careful, by default, Excel does not check Capitalized Werds (whoops)

Deleted

Last edited:

#### Fluff

##### MrExcel MVP, Moderator
=if(E5<21,Helper!u2,if(e5<51,Helper!V2,if(E5<101,Helper!W2,Helper!X2)))

#### CA_Punit

##### Well-known Member
Book1
EFGHIJK
2
3
40Helper!U2
52121Helper!U2
651Helper!V2
7101Helper!W2
899999Helper!x2
9
10Helper!U2
11
12Use =INDIRECT(LOOKUP(E5,H4:H8,I4:I8)) to return the cell references
13
14
15
Sheet2
Cell Formulas
RangeFormula
E10E10=LOOKUP(E5,H4:H8,I4:I8)

#### thewiseguy

##### Well-known Member

excellent, thank you both!

#### Fluff

##### MrExcel MVP, Moderator
Glad we could help & thanks for the feedback.

#### CA_Punit

##### Well-known Member
Sorry for the Wrong lookupvalue

 0​ Helper!U2 21​ Helper!V2 51​ Helper!W2 101​ Helper!X2

#### thewiseguy

##### Well-known Member
Sorry for the Wrong lookupvalue

 0​ Helper!U2 21​ Helper!V2 51​ Helper!W2 101​ Helper!X2
no worries - i understood what you were doing once I saw it. thank you again

Replies
10
Views
360
Replies
3
Views
232
Replies
4
Views
274
Replies
12
Views
286
Replies
2
Views
103

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.

1,163,649
Messages
5,832,879
Members
430,175
Latest member
Sheenamarie

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

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