I have a single workbook with multiple sheets, four sheets to be exact. Each sheet is a table which was populated with a connection using Data...New Query...From Other sources....From Web.
All four table have two columns in common which will be used as the merging index. Name and Area
Table 1
Name Area field1 field2
Table 2
Name Area field1 field2
Table 3
Name Area field1 field2
Table 4
Name Area field1 field2
What I did was create multiple Merge Queries which
Merge table1 and table2 making TableA
Merge tableA and table3 making TableB
Merge tableB and Table4 making MergedTables
MergedTables now looks like
Name Area a.field1 a.field2 b.field1 b.field2 c.field1 c.field2 d.field1 d.field2
This works ok but I am sure there is a much cleaner way to handle it. Currently I have to be sure Tables 1 - 4 have been refreshed and then run Merge1, then Merge2, then Merge3
If possible I would like to use 1 query with all 4 connections and create the MergedTables table.
thanks in advance
rsjrny
All four table have two columns in common which will be used as the merging index. Name and Area
Table 1
Name Area field1 field2
Table 2
Name Area field1 field2
Table 3
Name Area field1 field2
Table 4
Name Area field1 field2
What I did was create multiple Merge Queries which
Merge table1 and table2 making TableA
Merge tableA and table3 making TableB
Merge tableB and Table4 making MergedTables
MergedTables now looks like
Name Area a.field1 a.field2 b.field1 b.field2 c.field1 c.field2 d.field1 d.field2
This works ok but I am sure there is a much cleaner way to handle it. Currently I have to be sure Tables 1 - 4 have been refreshed and then run Merge1, then Merge2, then Merge3
If possible I would like to use 1 query with all 4 connections and create the MergedTables table.
thanks in advance
rsjrny