Hidden Columns Are Causing Errors

Stacker

Board Regular
Joined
Jul 11, 2021
Messages
87
Office Version
  1. 365
Platform
  1. Windows
So I am using power query to join multiple tables, across identical sheet, across multiple files. To do this i used power query and when I joined the files I used =Excel.Workbook(Content). It works perfectly when they are no hidden files, however there are some files where column A is hidden, but other than that the table is identical. The first two files don't have Column A hidden and the appending worked perfectly, however the third file has Column A hidden and the hidden column turns up in the power query and the whole table moves to the right. How do i fix this error? I accidentally hit enter to soon so apologies for ambigious title.
 
Last edited:

Excel Facts

How to fill five years of quarters?
Type 1Q-2023 in a cell. Grab the fill handle and drag down or right. After 4Q-2023, Excel will jump to 1Q-2024. Dash can be any character.
Try this.

Using Get Data > From File > From Folder

Select a file without the hidden column as a sample file.
In the Transform Sample File
  • Take the necessary steps to promote the headings.
  • if it creates a step Changed Type - DELETE IT
In the final Merged Query (Most likely have the name of the Folder you are accessing.
  • DELETE the Changed Type step
  • Your last step is now more likely "Expanded Table Column"
  • Now create your own Changed Type step
    • Click anywhere in the table area and hit ctrl+A to select all
    • Transform > Detect Data Type
    • Review the column data types and change any you are not happy with
In this process the automatically created Changed Type steps, hard code column headings that are not the final column headings.
Remove the Changed type steps until you have finalised all the other steps and then reapply on the final output.
 
Upvote 0

Forum statistics

Threads
1,223,703
Messages
6,173,972
Members
452,540
Latest member
haasro02

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