2 lookups

Johnboy28

Board Regular
Joined
Jun 22, 2013
Messages
172
Office Version
  1. 365
  2. 2019
  3. 2016
  4. 2013
  5. 2010
Platform
  1. Windows
Hi, Does anyone know a formula that match Client ID & weight and return correct Weight Range?

Client IDWeightWeight Range
Home21.05 ??
Local28.50 ??
Weight Range LowerWeight Range UpperClient IDWeight Range
1.000026.9900LocalUp to 27kg
22.990142.9900Local27kg up
17.990122.9900Home18kg - 23kg
22.990126.9900Home23kg-27kg
26.990130.9900Home27kg-31kg
30.990142.9900Home31kg up
42.9901150.0000Home42kg up

<tbody>
</tbody>
 

Excel Facts

Does the VLOOKUP table have to be sorted?
No! when you are using an exact match, the VLOOKUP table can be in any order. Best-selling items at the top is actually the best.
Hi, here is an option to try:


Excel 2013/2016
ABCD
1Client IDWeightWeight Range
2Home21.0518kg - 23kg
3Local28.527kg up
4
5Weight Range LowerWeight Range UpperClient IDWeight Range
6126.99LocalUp to 27kg
722.990142.99Local27kg up
817.990122.99Home18kg - 23kg
922.990126.99Home23kg-27kg
1026.990130.99Home27kg-31kg
1130.990142.99Home31kg up
1242.9901150Home42kg up
Sheet1
Cell Formulas
RangeFormula
C2=LOOKUP(B2,$A$6:$A$12/($C$6:$C$12=A2),$D$6:$D$12)
 
Upvote 0
Hi, here is an option to try:

Excel 2013/2016
ABCD
1Client IDWeightWeight Range
2Home21.0518kg - 23kg
3Local28.527kg up
4
5Weight Range LowerWeight Range UpperClient IDWeight Range
6126.99LocalUp to 27kg
722.990142.99Local27kg up
817.990122.99Home18kg - 23kg
922.990126.99Home23kg-27kg
1026.990130.99Home27kg-31kg
1130.990142.99Home31kg up
1242.9901150Home42kg up

<colgroup><col style="width: 25pxpx"><col><col><col><col></colgroup><thead>
</thead><tbody>
</tbody>
Sheet1

Worksheet Formulas
CellFormula
C2=LOOKUP(B2,$A$6:$A$12/($C$6:$C$12=A2),$D$6:$D$12)

<thead>
</thead><tbody>
</tbody>

<tbody>
</tbody>
Thanks for the reply. That formula works great. Thanks again.
 
Upvote 0

Forum statistics

Threads
1,214,976
Messages
6,122,541
Members
449,089
Latest member
davidcom

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