Dynamic Table Header Changes

happyhungarian

Active Member
Joined
Jul 19, 2011
Messages
254
Office Version
  1. 365
Platform
  1. Windows
Hi, I've been searching for a solution to this and have found several all-most solutions. I was hoping to dynamically update the header columns of a table (let's call this table the Info_Table) in power query using a table I have in the workbook that I have created a connection for (called Date_Table). I've been trying to use the list of list solution converting the Date_Table to a list of list and then Table.RenameColumns function in the Info_Table but I want it to only change the headers for which it finds a match in the Date_Table. The reason for this is the column headers on a few columns in the Info_Table could change month to month but most of the columns stay exactly the same. And it's only the columns that stay the same that I can continually reference that I want Power Query to change. Is this possible?

Thanks!
J
 

Excel Facts

Why are there 1,048,576 rows in Excel?
The Excel team increased the size of the grid in 2007. There are 2^20 rows and 2^14 columns for a total of 17 billion cells.
It would help to see what you're using at the moment as a query, but can't you just remove the columns that might change from the mapping table? Or don't you know what they are in advance?
 
Upvote 0

Forum statistics

Threads
1,224,804
Messages
6,181,060
Members
453,017
Latest member
rlundbulls23

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