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

### Excel Facts

What does custom number format of ;;; mean?
Three semi-colons will hide the value in the cell. Although most people use white font instead.

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
4
Views
89
Replies
8
Views
180
Replies
2
Views
120
Replies
2
Views
169
Replies
10
Views
148

1,127,147
Messages
5,623,008
Members
415,946
Latest member
bellerom

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