VLOOKUP based on multiple criteria, one is age range

lemony

New Member
Joined
Sep 18, 2014
Messages
2
Hey,

I have a bit of a problem, I need a formula to look something up based on two variables.

So the info that will be input is Name, Group and Age, eg.

Name: John
Group: Blue
Age: 40
Member Price:

I need it to draw the member price based on the group and age;

GroupAge RangeMember $
Red10-14$16,000
Red15-16$17,000
Red17-18$18,000
Orange19-24$20,000
Orange25-29$24,000
Blue30-32$26,000
Blue33-34$32,000
Blue35+$36,000

<tbody>
</tbody>

I've organized the table in my spreadsheet so that it only lists the youngest age, and I've tried using INDEX and MATCH with IF, and SUMPRODUCT (which I know won't work unless I list every age from 1-99), and nothing works...I'm really stuck on this, so hopefully someone knows a solution to my problem.
 

Excel Facts

What do {} around a formula in the formula bar mean?
{Formula} means the formula was entered using Ctrl+Shift+Enter signifying an old-style array formula.
Welcome to the board.

Since your groups don't overlap age ranges (18 & below is red, 19-29 is orange, etc.) you only need to look up age ranges. Assuming your input is in B1:B3, try:

=CHOOSE(MATCH(B3,{0,15,17,19,25,30,33,35,100},1),16,17,18,20,24,26,32,36)*1000
 
Upvote 0
Thank you :)

What if they do overlap?

I realized maybe my example wasn't the best depiction,

It's more like:

Red14-16$16,000
Light Red14-16$17,000
Orange17-24$18,000
Orange25-29$20,000
Light Orange17-24$19,000
Light Orange25-29$21,000
Blue30-32$26,000
Blue33-34$32,000
Blue35+$36,000
Light Blue30-32$34,000
Light Blue33-34$33,000
Light Blue35+$37,000
GreyAll Ages$20,000

<tbody>
</tbody>
 
Upvote 0
Ah. Yes, there are ways to do that. Unfortunately, not my expertise.

I'm sure someone else on this forum will be able to help you out!
 
Upvote 0

Forum statistics

Threads
1,214,823
Messages
6,121,780
Members
449,049
Latest member
greyangel23

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
Back
Top