Combine multiple tables into one master table - same column headings

HeyMike

New Member
Joined
Mar 1, 2012
Messages
22
I have multiple workbooks that are very similar. One table per workbook, identical column headings on all, each workbook has rows added daily.

I need to combine each table from all workbooks into one master table so I can analyze them together. Is there a formula to set this up, or perhaps a VBA script that will combine it instead of copy and pasting tables together? Example is below...

First table/workbook:
TicketJobHours
Bjob 15
Bjob 25
Bjob 35

<tbody>
</tbody>

Second table/workbook:
TicketJobHours
Ajob 13
Ajob 23

<tbody>
</tbody>

This is the combined output I need to produce into a new workbook:
TicketJobHours
Bjob 15
Bjob 25
Bjob 35
Ajob 13
Ajob 23

<tbody>
</tbody>
 

Excel Facts

How to fill five years of quarters?
Type 1Q-2023 in a cell. Grab the fill handle and drag down or right. After 4Q-2023, Excel will jump to 1Q-2024. Dash can be any character.
I have multiple workbooks that are very similar. One table per workbook, identical column headings on all, each workbook has rows added daily.

I need to combine each table from all workbooks into one master table so I can analyze them together. Is there a formula to set this up, or perhaps a VBA script that will combine it instead of copy and pasting tables together? Example is below...

First table/workbook:
TicketJobHours
Bjob 15
Bjob 25
Bjob 35

<tbody>
</tbody>

Second table/workbook:
TicketJobHours
Ajob 13
Ajob 23

<tbody>
</tbody>

This is the combined output I need to produce into a new workbook:
TicketJobHours
Bjob 15
Bjob 25
Bjob 35
Ajob 13
Ajob 23

<tbody>
</tbody>

would be good to know which excel version if 2007 or later maybe Consolidate might be a choice??

http://office.microsoft.com/en-001/excel-help/consolidate-data-in-multiple-worksheets-HP010095249.aspx#BMconsolidate_by_position


otherwise a vba would be best.
 
Upvote 0
this could be a vba code assuming range is A:C otherwise change the range and activesheet is the 'mastersheet' where data needs to be collected

Code:
Sub heymike()
For Each sh In Worksheets
 If sh.Name <> ActiveSheet.Name Then
  With sh
   .Range("A2:C" & .Range("A" & Rows.Count).End(xlUp).Row).Copy Range("A" & Range("A" & Rows.Count).End(xlUp).Row + 1)
  End With
 End If
Next sh
End Sub
 
Upvote 0

Forum statistics

Threads
1,215,401
Messages
6,124,705
Members
449,182
Latest member
mrlanc20

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