Hello:
I have a material list in Excel that has unique part numbers listed vertically (one for every cell in the column) - no duplicates - (list "A"). In another list - seperate tab - (list "B"), I have the same part numbers listed vertically but they are repeating; for every part number listed, there is a unique quantity listed vertically in the next column over - one unique quantity number listed next to every repeated part number. Consequently, I want to identify the part number listed in list "A" and bring into list "A" all of the associated quantites for that particular part number from list "B". The quantities would be listed horizontally next to the unique part number in the column. Please see below:
List "A" (Sheet 1)
Part number
111.2222.333
222.3333.444
555.6666.777
List "B" (Sheet 2)
Part number Quantities
111.2222.333 1,000
111.2222.333 2,000
111.2222.333 3,000
222.3333.444 1,500
222.3333.444 2,100
555.6666.777 25
555.6666.777 150
555.6666.777 200
RESULT
List "A" (Sheet 1) - Result!
Part number Quantities (each in a different cell listed horizontally)
111.2222.333 1,000 2,000 3,000
222.3333.444 1,500 2,100
555.6666.777 25 150 200
The range in each list ("A" and "B") will vary depending upon the length of each downloaded list into Excel. Consequently, the macro needs to be adjustable for values in arrays; I'm assuming.
What is the macro code to do this?
Any help is greatly appreciated.
Bookmarks