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!
[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!