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.

[TABLE="class: outer_border, width: 250"]
<tbody>[TR]
[TD]Color[/TD]
[TD]Invoice $[/TD]
[TD]Tier[/TD]
[/TR]
[TR]
[TD]Blue[/TD]
[TD]3[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Blue[/TD]
[TD]17[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Black[/TD]
[TD]571[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Yellow[/TD]
[TD]81[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Black[/TD]
[TD]1026[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Blue[/TD]
[TD]1[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Yellow[/TD]
[TD]97[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Yellow[/TD]
[TD]175[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Black[/TD]
[TD]386[/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]

[TABLE="class: outer_border, width: 250"]
<tbody>[TR]
[TD]Color[/TD]
[TD]Min[/TD]
[TD]Max[/TD]
[TD]Tier[/TD]
[/TR]
[TR]
[TD]Black[/TD]
[TD]0[/TD]
[TD]500[/TD]
[TD]Tier 3[/TD]
[/TR]
[TR]
[TD]Black[/TD]
[TD]500[/TD]
[TD]1000[/TD]
[TD]Tier 2[/TD]
[/TR]
[TR]
[TD]Black[/TD]
[TD]1000[/TD]
[TD][/TD]
[TD]Tier 1
[/TD]
[/TR]
[TR]
[TD]Yellow[/TD]
[TD]0[/TD]
[TD]80[/TD]
[TD]Tier 3[/TD]
[/TR]
[TR]
[TD]Yellow[/TD]
[TD]80[/TD]
[TD]160[/TD]
[TD]Tier 2[/TD]
[/TR]
[TR]
[TD]Yellow[/TD]
[TD]160[/TD]
[TD][/TD]
[TD]Tier 1[/TD]
[/TR]
[TR]
[TD]Blue[/TD]
[TD]0[/TD]
[TD]50[/TD]
[TD]Tier 3[/TD]
[/TR]
[TR]
[TD]Blue[/TD]
[TD]50[/TD]
[TD]100[/TD]
[TD]Tier 2[/TD]
[/TR]
[TR]
[TD]Blue[/TD]
[TD]100[/TD]
[TD][/TD]
[TD]Tier 1[/TD]
[/TR]
</tbody>[/TABLE]

Thank you very much for your time and effort!
 

Excel Facts

Add Bullets to Range
Select range. Press Ctrl+1. On Number tab, choose Custom. Type Alt+7 then space then @ sign (using 7 on numeric keypad)
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.

[TABLE="class: outer_border, width: 250"]
<tbody>[TR]
[TD]Color[/TD]
[TD]Invoice $[/TD]
[TD]Tier[/TD]
[/TR]
[TR]
[TD]Blue[/TD]
[TD]3[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Blue[/TD]
[TD]17[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Black[/TD]
[TD]571[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Yellow[/TD]
[TD]81[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Black[/TD]
[TD]1026[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Blue[/TD]
[TD]1[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Yellow[/TD]
[TD]97[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Yellow[/TD]
[TD]175[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Black[/TD]
[TD]386[/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]

[TABLE="class: outer_border, width: 250"]
<tbody>[TR]
[TD]Color[/TD]
[TD]Min[/TD]
[TD]Max[/TD]
[TD]Tier[/TD]
[/TR]
[TR]
[TD]Black[/TD]
[TD]0[/TD]
[TD]500[/TD]
[TD]Tier 3[/TD]
[/TR]
[TR]
[TD]Black[/TD]
[TD]500[/TD]
[TD]1000[/TD]
[TD]Tier 2[/TD]
[/TR]
[TR]
[TD]Black[/TD]
[TD]1000[/TD]
[TD][/TD]
[TD]Tier 1[/TD]
[/TR]
[TR]
[TD]Yellow[/TD]
[TD]0[/TD]
[TD]80[/TD]
[TD]Tier 3[/TD]
[/TR]
[TR]
[TD]Yellow[/TD]
[TD]80[/TD]
[TD]160[/TD]
[TD]Tier 2[/TD]
[/TR]
[TR]
[TD]Yellow[/TD]
[TD]160[/TD]
[TD][/TD]
[TD]Tier 1[/TD]
[/TR]
[TR]
[TD]Blue[/TD]
[TD]0[/TD]
[TD]50[/TD]
[TD]Tier 3[/TD]
[/TR]
[TR]
[TD]Blue[/TD]
[TD]50[/TD]
[TD]100[/TD]
[TD]Tier 2[/TD]
[/TR]
[TR]
[TD]Blue[/TD]
[TD]100[/TD]
[TD][/TD]
[TD]Tier 1[/TD]
[/TR]
</tbody>[/TABLE]

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,223,896
Messages
6,175,264
Members
452,627
Latest member
KitkatToby

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