Help with Nested If AND statement

thewiseguy

Well-known Member
Joined
May 23, 2005
Messages
809
Office Version
  1. 365
Platform
  1. Windows
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!
 

Some videos you may like

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.

CA_Punit

Well-known Member
Joined
Nov 18, 2019
Messages
893
Office Version
  1. 365
Platform
  1. Windows
Deleted
 
Last edited:

Fluff

MrExcel MVP, Moderator
Joined
Jun 12, 2014
Messages
55,335
Office Version
  1. 365
Platform
  1. Windows
How about
=if(E5<21,Helper!u2,if(e5<51,Helper!V2,if(E5<101,Helper!W2,Helper!X2)))
 

CA_Punit

Well-known Member
Joined
Nov 18, 2019
Messages
893
Office Version
  1. 365
Platform
  1. Windows
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
Joined
May 23, 2005
Messages
809
Office Version
  1. 365
Platform
  1. Windows

ADVERTISEMENT

excellent, thank you both!
 

Fluff

MrExcel MVP, Moderator
Joined
Jun 12, 2014
Messages
55,335
Office Version
  1. 365
Platform
  1. Windows
Glad we could help & thanks for the feedback.
 

CA_Punit

Well-known Member
Joined
Nov 18, 2019
Messages
893
Office Version
  1. 365
Platform
  1. Windows
Sorry for the Wrong lookupvalue


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

thewiseguy

Well-known Member
Joined
May 23, 2005
Messages
809
Office Version
  1. 365
Platform
  1. Windows
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
 

Watch MrExcel Video

Forum statistics

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