2 lookups

Johnboy28

Board Regular
Joined
Jun 22, 2013
Messages
198
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?

[TABLE="width: 497"]
<tbody>[TR]
[TD]Client ID[/TD]
[TD]Weight[/TD]
[TD]Weight Range[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Home[/TD]
[TD]21.05[/TD]
[TD] ??[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Local[/TD]
[TD]28.50[/TD]
[TD] ??[/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Weight Range Lower[/TD]
[TD]Weight Range Upper[/TD]
[TD]Client ID[/TD]
[TD]Weight Range[/TD]
[/TR]
[TR]
[TD]1.0000[/TD]
[TD]26.9900[/TD]
[TD]Local[/TD]
[TD]Up to 27kg[/TD]
[/TR]
[TR]
[TD]22.9901[/TD]
[TD]42.9900[/TD]
[TD]Local[/TD]
[TD]27kg up[/TD]
[/TR]
[TR]
[TD]17.9901[/TD]
[TD]22.9900[/TD]
[TD]Home[/TD]
[TD]18kg - 23kg[/TD]
[/TR]
[TR]
[TD]22.9901[/TD]
[TD]26.9900[/TD]
[TD]Home[/TD]
[TD]23kg-27kg[/TD]
[/TR]
[TR]
[TD]26.9901[/TD]
[TD]30.9900[/TD]
[TD]Home[/TD]
[TD]27kg-31kg[/TD]
[/TR]
[TR]
[TD]30.9901[/TD]
[TD]42.9900[/TD]
[TD]Home[/TD]
[TD]31kg up[/TD]
[/TR]
[TR]
[TD]42.9901[/TD]
[TD]150.0000[/TD]
[TD]Home[/TD]
[TD]42kg up[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
 

Excel Facts

Who is Mr Spreadsheet?
Author John Walkenbach was Mr Spreadsheet until his retirement in June 2019.
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
Client IDWeightWeight Range
Home
Local27kg up
Weight Range LowerWeight Range UpperClient IDWeight Range
LocalUp to 27kg
Local27kg up
Home18kg - 23kg
Home23kg-27kg
Home27kg-31kg
Home31kg up
Home42kg up

<colgroup><col style="width: 25pxpx"><col><col><col><col></colgroup><thead>
</thead><tbody>
[TD="align: center"]1[/TD]

[TD="align: right"][/TD]

[TD="align: center"]2[/TD]

[TD="align: right"]21.05[/TD]
[TD="bgcolor: #FFFF00"]18kg - 23kg[/TD]
[TD="align: right"][/TD]

[TD="align: center"]3[/TD]

[TD="align: right"]28.5[/TD]

[TD="align: right"][/TD]

[TD="align: center"]4[/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]

[TD="align: center"]5[/TD]

[TD="align: center"]6[/TD]
[TD="align: right"]1[/TD]
[TD="align: right"]26.99[/TD]

[TD="align: center"]7[/TD]
[TD="align: right"]22.9901[/TD]
[TD="align: right"]42.99[/TD]

[TD="align: center"]8[/TD]
[TD="align: right"]17.9901[/TD]
[TD="align: right"]22.99[/TD]

[TD="align: center"]9[/TD]
[TD="align: right"]22.9901[/TD]
[TD="align: right"]26.99[/TD]

[TD="align: center"]10[/TD]
[TD="align: right"]26.9901[/TD]
[TD="align: right"]30.99[/TD]

[TD="align: center"]11[/TD]
[TD="align: right"]30.9901[/TD]
[TD="align: right"]42.99[/TD]

[TD="align: center"]12[/TD]
[TD="align: right"]42.9901[/TD]
[TD="align: right"]150[/TD]

</tbody>
Sheet1

[TABLE="width: 85%"]
<tbody>[TR]
[TD]Worksheet Formulas[TABLE="width: 100%"]
<thead>[TR="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=DAE7F5]#DAE7F5[/URL] "]
[TH="width: 10"]Cell[/TH]
[TH="align: left"]Formula[/TH]
[/TR]
</thead><tbody>[TR]
[TH="width: 10, bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=DAE7F5]#DAE7F5[/URL] "]C2[/TH]
[TD="align: left"]=LOOKUP(B2,$A$6:$A$12/($C$6:$C$12=A2),$D$6:$D$12)[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[/TR]
</tbody>[/TABLE]
Thanks for the reply. That formula works great. Thanks again.
 
Upvote 0

Forum statistics

Threads
1,223,888
Messages
6,175,207
Members
452,618
Latest member
Tam84

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