Range VLOOKUP with Criteria to determine lookup table

OverR4ted

New Member
Joined
Aug 8, 2017
Messages
3
I am trying to use a Range VLOOKUP based upon the criteria of color in this example. I have another set of data but used this example for simplicity and business reasons. But I need to use the table range that corresponds with the color. I have a lot of values so hard coding is not an option. Basically I need to come up with the Tier level in table 1. I also want to be able to change the Min Max values and see how that balances the numbers for customers in each category. Any help would be great as I have a very large set of data I am working with.

ColorInvoice $Tier
Blue3
Blue17
Black571
Yellow81
Black1026
Blue1
Yellow97
Yellow175
Black386

<tbody>
</tbody>

ColorMinMaxTier
Black0500Tier 3
Black5001000Tier 2
Black1000Tier 1
Yellow080Tier 3
Yellow80160Tier 2
Yellow160Tier 1
Blue050Tier 3
Blue50100Tier 2
Blue100Tier 1

<tbody>
</tbody>

Thank you very much for your time and effort!
 

Excel Facts

Workdays for a market open Mon, Wed, Friday?
Yes! Use "0101011" for the weekend argument in NETWORKDAYS.INTL or WORKDAY.INTL. The 7 digits start on Monday. 1 means it is a weekend.
I am trying to use a Range VLOOKUP based upon the criteria of color in this example. I have another set of data but used this example for simplicity and business reasons. But I need to use the table range that corresponds with the color. I have a lot of values so hard coding is not an option. Basically I need to come up with the Tier level in table 1. I also want to be able to change the Min Max values and see how that balances the numbers for customers in each category. Any help would be great as I have a very large set of data I am working with.

ColorInvoice $Tier
Blue3
Blue17
Black571
Yellow81
Black1026
Blue1
Yellow97
Yellow175
Black386

<tbody>
</tbody>

ColorMinMaxTier
Black0500Tier 3
Black5001000Tier 2
Black1000Tier 1
Yellow080Tier 3
Yellow80160Tier 2
Yellow160Tier 1
Blue050Tier 3
Blue50100Tier 2
Blue100Tier 1

<tbody>
</tbody>

Thank you very much for your time and effort!


assuming table 1 is in Sheet1 and table 2 is in Sheet 2:

C2=INDEX(OFFSET(Sheet2!$D$1,MATCH($A2,Sheet2!$A$2:$A$10,0),0,3,1),MATCH($B2,OFFSET(Sheet2!$B$1,MATCH($A2,Sheet2!$A$2:$A$10,0),0,3,1),1))
 
Upvote 0
Just another option..:


Excel 2013/2016
ABCDEFGH
1ColorInvoice $TierColorMinMaxTier
2Blue50Tier 2Black0500Tier 3
3Blue17Tier 3Black5001000Tier 2
4Black571Tier 2Black1000Tier 1
5Yellow81Tier 2Yellow080Tier 3
6Black1026Tier 1Yellow80160Tier 2
7Blue1Tier 3Yellow160Tier 1
8Yellow97Tier 2Blue050Tier 3
9Yellow175Tier 1Blue50100Tier 2
10Black386Tier 3Blue100Tier 1
Sheet1
Cell Formulas
RangeFormula
C2=LOOKUP(B2,$F$2:$F$10/($E$2:$E$10=A2),$H$2:$H$10)
 
Upvote 0
SyedUsman,

This was the simplest solution to use because of the simplicity. Thank you for taking care of this for me, works like a charm.

-OverR4ted
 
Upvote 0

Forum statistics

Threads
1,216,030
Messages
6,128,413
Members
449,449
Latest member
Quiet_Nectarine_

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