Help with Nested If AND statement

thewiseguy

Well-known Member
Joined
May 23, 2005
Messages
818
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!
 

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)

CA_Punit

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

Fluff

MrExcel MVP, Moderator
Joined
Jun 12, 2014
Messages
73,057
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
942
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
818
Office Version
  1. 365
Platform
  1. Windows

ADVERTISEMENT

excellent, thank you both!
 

Fluff

MrExcel MVP, Moderator
Joined
Jun 12, 2014
Messages
73,057
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
942
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
818
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
 
Master Excel Bundle

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.

Forum statistics

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

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