Matching Item Issue in Excel

majidsiddique

Board Regular
Joined
Oct 22, 2018
Messages
164
Hi,

i have a problem in excel sheet. below mention sheet in a excel sheet but here item length Qty is short as compare to Total Item List. i used Vlookup, match index formula but failed. lookup matched exact length of cell to another cell but here length is problem.

kindly send me solution for this issue.

ITEMQtyTOTAL ITEMQTY
04122JM?LD-0070420002
04402SMLD-0070460001
53280LD-0070480001
05504SPLD-0076450001
05508SPLD-0086310002
75402LD-0086330003
76515LD-0086340004
76586LD-0089530005
786042LD-0103870006
7875440LD-041002JM7
78860420LD-04122JM8
2090LD-041590CS09
2067LLD-04402SM10
2292LD-051102A0011
4074-58LD-05116000012
4092-58LD-05328000013
4196-88LD-05508SP0014
4296-88LD-061102A0015
44216ULD-07002300016

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

Excel Facts

Return population for a City
If you have a list of cities in A2:A100, use Data, Geography. Then =A2.Population and copy down.

ITEM

Qty

Master List

Qty
04122JM?LD-44216U4
04402SMLD-4296-88008
53280LD-4196-880012
05504SPLD-4092-580016
05508SPLD-4074-580020
75402LD-2067L000024
76515LD-05508SP28
76586LD-05504SP32
786042LD-04402SM36
7875440LD-04122JM40
78860420LD-7886042044
2090LD-787544048
2067LLD-78604252
2292LD-765860056
4074-58LD-765150060
4092-58LD-754020064
4196-88LD-532800068
4296-88LD-2292000072
44216ULD-2090000076

<colgroup><col span="3"><col><col></colgroup><tbody>
</tbody>

i tried vlookup but failed:

=vlookup(left(a1,4),d1:e20,2,0) but this formula is reply

kindly help me to sovle this issue
 
Upvote 0
How about PowerQuery (Get&Transform) ?
Code:
[SIZE=1]let
    Source = Table.NestedJoin(Table1,{"ITEM - Copy"},Table2,{"Master List"},"Table2",JoinKind.LeftOuter),
    #"Removed Columns" = Table.RemoveColumns(Source,{"Qty"}),
    #"Expanded Table2" = Table.ExpandTableColumn(#"Removed Columns", "Table2", {"Qty"}, {"Qty"}),
    #"Removed Columns1" = Table.RemoveColumns(#"Expanded Table2",{"ITEM - Copy"})
in
    #"Removed Columns1"[/SIZE]

ITEMQty
04122JM
40​
44216U
4​
04402SM
36​
4296-88
8​
53280
68​
4196-88
12​
05504SP
28​
05504SP
32​
05508SP
28​
05508SP
32​
4092-58
16​
4074-58
20​
75402
64​
2067L
24​
76515
60​
76586
56​
786042
52​
7875440
48​
78860420
44​
2090
76​
2292
72​
 
Last edited:
Upvote 0
.. or with VLOOKUP as you originally tried

Excel Workbook
ABCDE
1ITEMQtyTOTAL ITEMQTY
204122JM40LD-44216U4
304402SM36LD-4296-88008
45328068LD-4196-880012
505504SP32LD-4092-580016
605508SP28LD-4074-580020
77540264LD-2067L000024
87651560LD-05508SP28
97658656LD-05504SP32
1078604252LD-04402SM36
11787544048LD-04122JM40
127886042044LD-7886042044
13209076LD-787544048
142067L24LD-78604252
15229272LD-765860056
164074-5820LD-765150060
174092-5816LD-754020064
184196-8812LD-532800068
194296-888LD-2292000072
2044216U4LD-2090000076
VLOOKUP (2)
 
Upvote 0
Thanks a lot sir, great vlookup concept,
You're welcome.

BTW, I have pruned your long quote as they make the thread harder to read/navigate. If you want to quote, quote small, relevant parts only.
 
Upvote 0

Forum statistics

Threads
1,214,848
Messages
6,121,914
Members
449,054
Latest member
luca142

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