lookup value depending on multiple criteria

Jaeger88

New Member
Joined
Nov 25, 2016
Messages
9
Dear excel wizards,

I have the following question:
In table A I want to look up which packaging belongs to which Product based on the table B (See tables below). The packaging depends on the weight of product.

Table A
WeightProduct NamePackaging
0.022Product A?
26547Product A?
459Product A?
600Product B?

<colgroup><col><col><col></colgroup><tbody>
</tbody>

<tbody>
</tbody>
Table B
Product nameWeight Packaging
Product A00.025Red
Product A0.0261000Blue
Product A100099999999Yellow
Product B0100Red
Product B1015000Purple
Product B500199999999Yellow

<colgroup><col><col><col><col></colgroup><tbody>
</tbody>
Appreciate your help!

<tbody>
</tbody>
 

Excel Facts

Save Often
If you start asking yourself if now is a good time to save your Excel workbook, the answer is Yes
maybe something like...


Excel 2013
ABCD
1WeightProduct NamePackaging
20.022Product ARed
326547Product AYellow
4459Product ABlue
5600Product BPurple
6
7Product nameWeightPackaging
8Product A00.025Red
9Product A0.0261000Blue
10Product A100099999999Yellow
11Product B0100Red
12Product B1015000Purple
13Product B500199999999Yellow

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

Array Formulas
CellFormula
C2{=INDEX($D$8:$D$13,MATCH(A2,IF(B2=$A$8:$A$13,$B$8:$B$13)))}

<thead>
</thead><tbody>
</tbody>
Entered with Ctrl+Shift+Enter. If entered correctly, Excel will surround with curly braces {}.
Note: Do not try and enter the {} manually yourself

<tbody>
</tbody>
 
Upvote 0
Hello Weazel,

Thanks alot, its very close.

This is the result i get:
It gives back 2 incorrect values, could you please have a look at it:

WeightProduct NamePackaging
0.022Product A#N/A
26547Product AYellow
459Product ARed
600Product BPurple
Product nameWeightPackaging
Product A00.025Red
Product A0.0261000Blue
Product A100099999999Yellow
Product B0100Red
Product B1015000Purple
Product B500199999999Yellow

<colgroup><col><col><col><col></colgroup><tbody>
</tbody>
 
Upvote 0
Dear Wezael,

My apologies, I think its my bad, cause im working different excel versions and I mixed up . & , in the 0.025.

Muchos Gracias
 
Upvote 0

Forum statistics

Threads
1,196,328
Messages
6,014,670
Members
441,834
Latest member
GHOSTOF309

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