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:
[TABLE="width: 190"]
<tbody>[TR]
[TD="align: center"]Ticket[/TD]
[TD="align: center"]Job[/TD]
[TD="align: center"]Hours[/TD]
[/TR]
[TR]
[TD="align: center"]B[/TD]
[TD="align: center"]job 1[/TD]
[TD="align: center"]5[/TD]
[/TR]
[TR]
[TD="align: center"]B[/TD]
[TD="align: center"]job 2[/TD]
[TD="align: center"]5[/TD]
[/TR]
[TR]
[TD="align: center"]B[/TD]
[TD="align: center"]job 3[/TD]
[TD="align: center"]5[/TD]
[/TR]
</tbody>[/TABLE]
Second table/workbook:
[TABLE="width: 190"]
<tbody>[TR]
[TD="align: center"]Ticket[/TD]
[TD="align: center"]Job[/TD]
[TD="align: center"]Hours[/TD]
[/TR]
[TR]
[TD="align: center"]A[/TD]
[TD="align: center"]job 1[/TD]
[TD="align: center"]3[/TD]
[/TR]
[TR]
[TD="align: center"]A[/TD]
[TD="align: center"]job 2[/TD]
[TD="align: center"]3[/TD]
[/TR]
</tbody>[/TABLE]
This is the combined output I need to produce into a new workbook:
[TABLE="width: 190"]
<tbody>[TR]
[TD="align: center"]Ticket[/TD]
[TD="align: center"]Job[/TD]
[TD="align: center"]Hours[/TD]
[/TR]
[TR]
[TD="align: center"]B[/TD]
[TD="align: center"]job 1[/TD]
[TD="align: center"]5[/TD]
[/TR]
[TR]
[TD="align: center"]B[/TD]
[TD="align: center"]job 2[/TD]
[TD="align: center"]5[/TD]
[/TR]
[TR]
[TD="align: center"]B[/TD]
[TD="align: center"]job 3[/TD]
[TD="align: center"]5[/TD]
[/TR]
[TR]
[TD="align: center"]A[/TD]
[TD="align: center"]job 1[/TD]
[TD="align: center"]3[/TD]
[/TR]
[TR]
[TD="align: center"]A[/TD]
[TD="align: center"]job 2[/TD]
[TD="align: center"]3[/TD]
[/TR]
</tbody>[/TABLE]
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:
[TABLE="width: 190"]
<tbody>[TR]
[TD="align: center"]Ticket[/TD]
[TD="align: center"]Job[/TD]
[TD="align: center"]Hours[/TD]
[/TR]
[TR]
[TD="align: center"]B[/TD]
[TD="align: center"]job 1[/TD]
[TD="align: center"]5[/TD]
[/TR]
[TR]
[TD="align: center"]B[/TD]
[TD="align: center"]job 2[/TD]
[TD="align: center"]5[/TD]
[/TR]
[TR]
[TD="align: center"]B[/TD]
[TD="align: center"]job 3[/TD]
[TD="align: center"]5[/TD]
[/TR]
</tbody>[/TABLE]
Second table/workbook:
[TABLE="width: 190"]
<tbody>[TR]
[TD="align: center"]Ticket[/TD]
[TD="align: center"]Job[/TD]
[TD="align: center"]Hours[/TD]
[/TR]
[TR]
[TD="align: center"]A[/TD]
[TD="align: center"]job 1[/TD]
[TD="align: center"]3[/TD]
[/TR]
[TR]
[TD="align: center"]A[/TD]
[TD="align: center"]job 2[/TD]
[TD="align: center"]3[/TD]
[/TR]
</tbody>[/TABLE]
This is the combined output I need to produce into a new workbook:
[TABLE="width: 190"]
<tbody>[TR]
[TD="align: center"]Ticket[/TD]
[TD="align: center"]Job[/TD]
[TD="align: center"]Hours[/TD]
[/TR]
[TR]
[TD="align: center"]B[/TD]
[TD="align: center"]job 1[/TD]
[TD="align: center"]5[/TD]
[/TR]
[TR]
[TD="align: center"]B[/TD]
[TD="align: center"]job 2[/TD]
[TD="align: center"]5[/TD]
[/TR]
[TR]
[TD="align: center"]B[/TD]
[TD="align: center"]job 3[/TD]
[TD="align: center"]5[/TD]
[/TR]
[TR]
[TD="align: center"]A[/TD]
[TD="align: center"]job 1[/TD]
[TD="align: center"]3[/TD]
[/TR]
[TR]
[TD="align: center"]A[/TD]
[TD="align: center"]job 2[/TD]
[TD="align: center"]3[/TD]
[/TR]
</tbody>[/TABLE]