VBA to build table based on 2 spreadsheets

JamieT

New Member
Joined
Jun 23, 2014
Messages
1
Hi Guys & Gals - I really need some with VBA. I have two spreadsheets and i need to build a table out of them.
First spreadsheet tells me which builds are against which equipment numbers (the builds are the A numbers across the top)

Eq No.A465A506A507A508A510A511A514A525A561A557
(mm)
A560
96550153119001
965501571
965501581
965501601
965501621
965501631

<tbody>
</tbody>
Second spreadsheet tells me which spare parts and quantity are against which builds

Part NoA506A507A508A510A511A514A515A516A525A557A560
BAA4725923532
XLA06171212111
BAC171811211
BAE398222111

<tbody>
</tbody>

However I need to figure out how to make a table of equipment numbers and associated spare parts with sum quantities.

eqnumpart noQty
96550153 BAE39823
96550153 BAA472595
96550153 XLA06172
96550153 BAC17182

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

Can anyone help? It doesn't necessarily have to sum the quantities, it could repeat part numbers with different quantities and then i could put it into a pivot table to get the quantities summed and remove the duplicate part nos.

Really hoping someone can help me - This seems impossible.
 
Last edited:

Some videos you may like

Excel Facts

Who is Mr Spreadsheet?
Author John Walkenbach was Mr Spreadsheet until his retirement in June 2019.

Watch MrExcel Video

Forum statistics

Threads
1,095,185
Messages
5,442,893
Members
405,205
Latest member
Marc__

This Week's Hot Topics

  • Copy entire row if CountA <>0 to another sheet
    [B]I want to copy entire row if CountA <>0 for column J7:AM7 (headers on J6:AM6) and so on till the last used cell is column D and paste the...
  • Select last used Row in Table
    I have created a Table in a Worksheet which is locked to prevent user errors and protect formula. Some of the cells require freetext entries which...
  • excel workbook: do not allow certain file name
    Hello all, Don't think this has ever been asked before, but how do I restrict file save [Before_Save Event] if the name of the file being saved...
  • fixing problem autofilter
    hello i need help about my code when i search by code in textbox it doesn't show anything this is my data [ATTACH type="full"...
  • “Weight”
    Hi, i’ve got a long sheet filled with weights such as kg,g,L & ml. i can build a formula to convert kg into g and liter into ml. How ever, my...
  • How to capitalize everything before a certain character?
    In column A, I have some text: Hello good day.mp3 Hello good day.flac etc. I'd like to capitalize everything before the period. I don't need the...
Top