How to rename columns in Power Query that change the name on each data updating - T0029 @CeliaAlvesSolveExcel
How to rename columns in Power Query that change the name on each data updating - T0029  @CeliaAlvesSolveExcel
Uploaded January 2022 | Updated December 2026, 2 days ago
It is not uncommon having to deal with reports with column headers related to dates that change each time we get new data. Columns with no constant names in Power Query are an issue because Power Query expects to deal always with the same column names. Unless we teach it how to deal with the unexpected.
__________________
Learn how to AUTOMATE YOUR EXCEL REPORTS in minutes instead of hours without copy-paste or coding: snapreportschamp.com/course

Get this ready-to-use Excel solution for 2 and 3 columns of Dependent Dropdown Lists:
solveandexcel.ca/dynamic-dependent-dropdown-lists-in-excel
---

Chapters:

0:00 – Introducing the problem
1:34 – Celia introduces herself and her Youtube channel
3:08 – EXAMPLE 1: variable column names like “Sales of Wk of 12/27”
3:31 – Importing data from external Excel File with Power Query and cleasing data
6:00 – Creating Base step
6:40 - Introducing the Function Table.ColumnNames
7:04 - Introducing the Function Table.RenameColumns
9:56 – Applying the Function Table.ColumnNames
10:58 – Selecting specific items from the list of columns names
13:15 – Creating list of new names for columns
14:44 - Introducing the Function List.Zip
15:17 - Applying the Function List.Zip
16:48 – Applying the Function Table.RenameColumns
18:03 – Finishing Query
18:54 – Testing Query
20:36 – EXAMPLE 2: variable column names like “2021-12-27”, Importing data from external Excel File with Power Query and cleasing data
22:03 – Creating Base step
22:23 – Applying the Function Table.ColumnNames
22:45 – Selecting date items from the list of columns names
24:36 – Creating list of new names for columns
25:09 - Applying the Function List.Zip
27:02 – Applying the Function Table.RenameColumns
29:01 - Finishing Query

M Code Functions :

Function Table.ColumnNames - docs.microsoft.com/en-us/powerquery-m/table-columnnames?WT.mc_id=M365-MVP-5003849

Function Table.RenameColumns - docs.microsoft.com/en-us/powerquery-m/table-renamecolumns?WT.mc_id=M365-MVP-5003849

Function List.Zip - docs.microsoft.com/en-us/powerquery-m/list-zip?WT.mc_id=M365-MVP-5003849
-------------------


Get access to the EXERCISE FILES by joining our Telegram Group at https://t.me/celiaalvessolveexcel

See Mark Proctor's solution for this problem here: youtu.be/82iSVdr4em8

Subscribe to my NEWSLETTER for exciting news about the Excel world: bit.ly/learnfromcelia

Boost your Excel skills with the best Excel books - Mr Excel Book store - e-junkie.com/ecom/gb.php?cl=211017&c=ib&aff=348636

Learn how to automate your Excel Reports: snapreportschamp.com



Celia Alves - Microsoft MVP & Certified Excel Expert, Solutions Developer
Solve & Excel Consulting - solveandexcel.ca
LinkedIn: linkedin.com/in/celiajordaoalves
Facebook: facebook.com/solveandexcel
Twitter: @celia_excel
Instagram: @solveandexcel
YouTube: https:www//youtube.com/celiaalvessolveexcel


#excel #msexcel #exceltraining #msexceltraining #powerquery #powerquerytraining #dataanalysis #snapreports #solveandexcel #automation #reportautomation #VBA
How to rename columns in Power Query that change the name on each data updating - T0029How to combine pivoted data from multiple sheets in an Excel filePower Query unpivoting techniques to shape data into a Tabular layout | Excel Automation - L0015How to select shapes in Excel as in PowerPointHow to start the macro recorder in ExcelHow to combine in a folder multiple files with different column headers - T0030Why using Power Query instead of Excel formulas can be much more advantageous to compare two listsHow to unstack data in repeated groups of rows in the same column with Power Query in ExcelAdvanced Filter with VBAHow to combine Tables using the M Language Function Table.Combine in Power QueryHow to deal with alphanumeric data in Power Query to make VLOOKUP formulas workConditional Format to hightlight the weekend days in Excel
Celia Alves - Solve & Excel |

How to rename columns in Power Query that change the name on each data updating - T0029

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER