Data in first row of table importing incorrect into the query editor

wbstadeli

Board Regular
Joined
Mar 11, 2016
Messages
151
Office Version
  1. 365
Platform
  1. Windows
Hi Guys,

I just discovered the "query" section under data and would like to use it to get averages of values across multiple excel files in a certain folder. Im trying to start simple, just one file in the folder and bringing in what is called "Table9" into the editor. The problem in all my files, this "Table9" does not have a header, the first row contains data. When i open it in the editor to bring in just that table, the first row is treated as a header. I have several cells in the first row that have the same value so excel automatically is adding a number to the value that is the same as the previous( to keep distinction between columns names i suppose..), which of course distorts my entries. How can i get the table to come in without headers? or just add a mock header row, but not use the first row as headers? Below is an example of what is happening:

Table9 before bringing it into query editor
25302525

<tbody>
</tbody>

Table9 after bringing it into query editor
2530251252

<tbody>
</tbody>

Thanks for any help with this!!
 

Excel Facts

Excel Wisdom
Using a mouse in Excel is the work equivalent of wearing a lanyard when you first get to college
Delete the step in your Query called "Promote Headers"

Or un-check the below option in Power Query settings:

nA6wDm7.png
 
Upvote 0
Thanks for your reply, unfortunately i tried unchecking that box, that did not help. I cant delete "promote headers" because i havent even got that far with the procedure, this is when i select new query>from file>from folder>"i select the proper folder" >and then click "edit". It loads the files in the query editor, and then i click the double arrows in the "content" to see the data. This opens up "combine files" and the objects that are on the sheets for extraction. I click on "Table9" and in the preview pane it already shows the distorted data for this table. Any other ideas?
 
Upvote 0
When you import from folders, PQ adds a set of extra functions as you see below. That should be where the Promote Headers takes place

c5ZBucP.png
 
Upvote 0
I see the screen you have shown there, but when i click on "Transform Sample File from ...." all i see under "Applied Steps" is source. What am i missing?
 
Upvote 0
I see the screen you have shown there, but when i click on "Transform Sample File from ...." all i see under "Applied Steps" is source. What am i missing?

Difficult to tell without seeing your file, I would look in those added queries, I assume that is where your Promote Headers takes place
 
Upvote 0

Forum statistics

Threads
1,213,534
Messages
6,114,188
Members
448,554
Latest member
Gleisner2

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