Very tricky task at hand: Multiple tables into one master table (different headers in each column!)

Baileyy

New Member
Joined
May 20, 2016
Messages
3
Alright so as the title says, my task is to combine around 100 tables into one giant table. The first 3 headers will be the same for them all and then the next 2-10+ headers depending on the data in that table will all be in different orders. I would like them all to match up in one layout which will display every table in one giant table neatly. My tables look like something listed below and I want the master table to contain every header found in each table (only the first 3 headers will be the same each table) and lay it out as the 3rd example table provided. the headers will have to expand up to around 50-60 columns and I have 1500 rows of values and sites to line up with these headers.

Table1:

IDENT

<tbody>
</tbody>
Job

<tbody>
</tbody>
Project code

<tbody>
</tbody>
pH

<tbody>
</tbody>
EC

<tbody>
</tbody>
Alkalinity

<tbody>
</tbody>
TSSNO2 HARDNESS
UNITS
SCHEME
Site1123456
Site28910111213
Site3151617181920
Site4222324252627
Site529301234
Site667891011

<tbody>
</tbody>



Table2:

IDENT

<tbody>
</tbody>
Job

<tbody>
</tbody>
Project code

<tbody>
</tbody>
MgOHCuCdFeIMn
UNITS
SCHEME
Site744356374742891
Site8534565131121314
Site91516157138492021
Site1023232425262723
Site1193301223324354
Site1263474893101114


<tbody>
</tbody>




Result I want the mastertable to look like:

IDENT

<tbody>
</tbody>
Job

<tbody>
</tbody>
Project code

<tbody>
</tbody>
MgOHCuCdFeIMnpHECAlkalinityTSSNO2HARDNESS
UNITS
SCHEME
Site144356374742891
Site2534565131121314
Site31516157138492021
Site423232425262723
Site593301223324354
Site663474893101114

Site7123456
Site88910111213
Site9151617181920
Site10222324252627
Site1129301234
Site1267891011

<tbody>
</tbody>


The sites will go down to about Site1500 and the columns will stretch about 50 to the right.
Sites 1-6 do not contain any values to do with the other headers so I would like a gap between the 'Mn' column and the column that will come after hardness (if there was more values of Site1-6 to display)
Basically wanting a way of it detecting the header for each table and making a master table without duplicating each header then laying out the sites in the left columns going down and aligning the values with its top line headers while remaining on its Site# line.

I hope I explained it clear enough, pretty much 15 tables of different data and headers just combined into one massive table to be able to look at 100+ tables in one master overview.
 

Excel Facts

What is the shortcut key for Format Selection?
Ctrl+1 (the number one) will open the Format dialog for whatever is selected.
pretty much 15 tables of different data and headers just combined into one massive table to be able to look at 100+ tables in one master overview.

100 tables into one to view all of them in one big overview. sorry for wording it complexer than it needed.
 
Upvote 0
Also I listed the values wrong (site 1 on the result table should be swapped with site 7 etc) but the principal of the task is still the same. as long as the tables output it into a shape like that.
 
Upvote 0
Have you tried using the consolidate function in the data tab. I found this worked for me when there are different headings.
 
Upvote 0

Forum statistics

Threads
1,214,649
Messages
6,120,732
Members
448,987
Latest member
marion_davis

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