Can power Query solve this issue?

drewbny

Board Regular
Joined
Jan 16, 2011
Messages
98
i have hundreds of files that have data with the same column headers but in different order. i only need to pull the same 24 headers across all of those files .
How am i able to do that quickly. if i use a lookup formula, id have to manually change the formula for each file which will take hours.
Can power query do this easily?
 

Excel Facts

What is the last column in Excel?
Excel columns run from A to Z, AA to AZ, AAA to XFD. The last column is XFD.
Possibly. Need more . Are you looking to consolidate the data and if so, how? Give us a brief description of what you mean by pull the same 24 headers. This is a statement that could have many meanings so we need for you to be more precise in your explanation.
 
Upvote 0
Possibly. Need more . Are you looking to consolidate the data and if so, how? Give us a brief description of what you mean by pull the same 24 headers. This is a statement that could have many meanings so we need for you to be more precise in your explanation.
Hi i got locked out of old account. for example, i have one file where user id is in the first column. then i have 100 other files where user id is in a different spot. however i need to pull user id from all the files together. user id is an example of a column that i need . there are 23 other criteria that i need as well from different files. the issue is that the criteria is in different columns in each file. also each file has a different number of columns. but all the files have the 24 criteria i need.
can i do this in power query?
 
Upvote 0
i just need to pull to consolidate just the data that fall under the 24 columns i need from across all different files.
 
Upvote 0
If you are looking to append each file to the other and they all have the same name for the fields (columns) you wish to grab, then the answer is a definite yes.
 
Upvote 0
If you are looking to append each file to the other and they all have the same name for the fields (columns) you wish to grab, then the answer is a definite yes.
the files have the same names for the 24 fields that i want. the issue is that each file has a different number of fields. all of the files have more than 24 fields. how am i able to get the data for the 24 fields that i want?
what are the technical steps?
 
Upvote 0


Once you have appended the files. Highlight the 24 columns you wish to keep and then click on the Delete Columns and then select delete other columns.
 
Upvote 0
is this method time consuming given that i have over 1000 files to pull in?
wondering if power query could just pull the data for the headers i specify?
thx for your help
 
Upvote 0
My experience has been limited to max of a half dozen files and the time spent is insignificant. 1000 files may take a while. No way to evaluate, but what choice do you have if you need this done? The column elimination will be almost instantaneously.
 
Upvote 0

Forum statistics

Threads
1,223,635
Messages
6,173,479
Members
452,516
Latest member
archcalx

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