Pull the subsequent data for repeat values (Vlookup/Index - Macth)

pvkvimalan

New Member
Joined
Dec 19, 2017
Messages
27
Office Version
  1. 2019
  2. 2016
Platform
  1. Windows
Hi,

I have a large data set with more than 15k rows. in one file (Say: File A) there is an SKU and Bin Location for all rows. And in the new file that I'm now working (Say: File B) contains the SKU number and I require to pull the corresponding Bin location. The challenge is that in File A both SKU and Bin Location will contain many repetitions. These are not duplicates but the same item can be found in the same bin location more than once. Also, the Same SKU could be located in various Bins. So I need the formula to pull the Bin Location subsequently one after other. I'm inserting the link below of a dummy data for better understanding of the issue.

Dummy data-Excel

Thanks in Advance
 

Excel Facts

Spell Check in Excel
Press F7 to start spell check in Excel. Be careful, by default, Excel does not check Capitalized Werds (whoops)
Hi, are you try with a pivot table?
Look this result ? , then with F5 you can fill easily, all blanks fields

Book1
ABCDEFGHIJKLMN
1Existing DataExisting DataRequired ResultRemarks
2SKUBin LocationSKUBIN LocationSKUBin LocationCount of Bin Location
3AA1B-1AA2B-1AA1B-12
4AA2B-1CC3B-1B-42
5AA3B-1AA1B-11st AA1 is in Bin location B-1B-52
6AA1B-1BB1B-2B-63
7CC3B-1AA1B-12nd AA1 is in same Bin Location B-1AA2B-11
8BB4B-1CC2B-3B-22
9CC4B-1BB2B-1B-32
10AA2B-2AA1B-43rd AA1 is in Bin Location B-4B-41
11AA3B-2BB2B-2B-51
12AA4B-2B-61
13BB2B-2AA3B-11
14CC1B-2B-21
15BB1B-2B-31
16AA2B-2B-42
17CC3B-3B-52
18AA2B-3B-61
19BB3B-3AA4B-21
20AA4B-3B-32
21CC2B-3B-61
22AA2B-3BB1B-21
23AA3B-3BB2B-21
24AA4B-3B-41
25BB2B-4B-52
26AA1B-4B-61
27CC1B-4BB3B-31
28AA2B-4B-61
29AA3B-4BB4B-11
30CC1B-4CC1B-21
31AA3B-4B-42
32AA1B-4CC2B-31
33BB2B-5B-51
34AA2B-5B-61
35AA3B-5CC3B-11
36CC4B-5B-31
37BB2B-5CC4B-11
38AA1B-5B-51
39AA1B-5
40CC2B-5
41AA3B-5
42AA1B-6
43BB3B-6
44AA1B-6
45BB2B-6
46AA2B-6
47AA3B-6
48AA4B-6
49CC2B-6
50AA1B-6
51
Sheet1
 
Upvote 0
Hi, @hernantorres23 Thank you for your reply. I had a Pivot table as an option but it didn't satisfy my requirements fully, however, I got a reply from another forum with the following formula which worked out for me.

=IFERROR(INDEX(B:B,AGGREGATE(15,6,ROW($A$3:$A$50)/($A$3:$A$50=E3),COUNTIF($E$3:E3,E3))),"")
 
Upvote 0

Forum statistics

Threads
1,224,820
Messages
6,181,160
Members
453,021
Latest member
Justyna P

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