Consolidation of tables using append needs to cope with changing column headings and column order

Helzp

New Member
Joined
Jul 10, 2020
Messages
6
Office Version
  1. 2019
  2. 2016
Platform
  1. Windows
Hi all,
I have an excel with five sheets of tables, with some columns in common.
I would like to consolidate the tables into a master sheet, which I have successfully done using “append”.

However the team are changing the order of the columns, adding new columns, deleting some, changing column names in the base data

Is there a way I can make my queries and append dynamic so i do not get an error and have to start from scratch every time they request a new base table layout?

Many thanks! Keen to learn!
kind regards
Helzp
 

Excel Facts

How to calculate loan payments in Excel?
Use the PMT function: =PMT(5%/12,60,-25000) is for a $25,000 loan, 5% annual interest, 60 month loan.
could you be more clear?
or post link to the shared excel file with representative examples of source data (before changes and after) and the result you want to achieve
use onedrive, googledrive , dropbox or any similar service to share your file
 
Upvote 0
Hi Sandy,
Thanks for your response. Please let me know if this link works with you
Append Query Helz.xlsx Does this work?

I am trying to consolidate tables into a common table. I have three scenarios, where my boss requests one or multiple of the following changes to the source tables.
1) Change the source column header names
2) Remove a source column
3) Add a source column that in the future can be shown in my consolidated table
THe result is I make the changes and the consolidated table now does not refresh (which makes sense).
I have no written code, I have just selected get data -> append to create my consolidated table.

Many thanks, let me know if I can give extra detail! I appreciate your time
 
Upvote 0
Yeah, I got this file

edit:
change boss :biggrin: because he doesn't know what he really want [joke]
 
Upvote 0
Who says the boss is a he ;)
It’s also a stretch goal for myself so taking it as a learning opportunity! But I have reached the limit of my abilities...
 
Upvote 0
she should look in the mirror :biggrin: :biggrin: :biggrin: and do eg. make-up or something

there is no more columns than that?
and order of headers is always the same?
TitleStart DateFinish DateOwner AUOwner US
 
Upvote 0
Order of headings always the same but if one is deleted, the rest will shift left etc.
there may be additional columns added in the future

looking for a generic answer to any of those three questions if it exists!
 
Upvote 0
No rush! Just if you find some spare time :) thanks!!
 
Upvote 0

Forum statistics

Threads
1,214,641
Messages
6,120,691
Members
448,978
Latest member
rrauni

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