Merging multiple Excel files in a folder into columns, not rows

SteynBS

Board Regular
Joined
Jun 27, 2022
Messages
104
Office Version
  1. 365
Platform
  1. Windows
Hi Guys,

I am using Power Query to merge multiple Excel files in 1 folder, but instead of throwing the data below the other in rows, I need it in columns.

So I have a master file that I will use as a seperate source called Master. The layout looks like this
1686072229511.png


I will then have multiple other excel files in a folder they will have different names, but they will all have the same layout:

1686072304778.png


What I need th achieve is all the files in the folder needs to merge with the Master file using the "item" as the join. The final product will look like this:

1686072526511.png


Currently what I am doing is using each file as a source and merging it to the Master file using the "item' as the join. Is there anyway I can achieve this in a faster way?
 
You're welcome.
Glad to hear it helps.
I am now just struggling with aligning the data. The Master File has 60k entries, Site A203 Has a total of 27k. With a manual XLOOKUP formula, I match 21k articles, but through this, I match only 8200 entries. I thought it could be the join and played around with it, but no luck. I am trying to figure out why it would not bring over all the matched entries for the Site to the Master.
 
Upvote 0

Excel Facts

Copy formula down without changing references
If you have =SUM(F2:F49) in F50; type Alt+' in F51 to copy =SUM(F2:F49) to F51, leaving the formula in edit mode. Change SUM to COUNT.
I would look for a non-matching entry and compare the join IDs in the Master and the Site file. Maybe they don't match due to a space character?
 
Upvote 0
I would look for a non-matching entry and compare the join IDs in the Master and the Site file. Maybe they don't match due to a space character?
I have cleaned up all the data entries. I will figure it out. Thank you again, sir.

In the future, I would like to import the data directly from the source SAP HANA connector. Just for interest sake, would what you have done for me today be possible if the source is from a calc view in SAP Hana?
 
Upvote 0
Just for interest sake, would what you have done for me today be possible if the source is from a calc view in SAP Hana?
I don't know about SAP Hana connector. But, when you get there, just post a new question about it. And if there is a relation with this thread, make sure you put a reference to this page in the new question. I am sure there are others who knows about it. It is just a data source that you'll get the data from instead of workbooks.
 
Upvote 0
I don't know about SAP Hana connector. But, when you get there, just post a new question about it. And if there is a relation with this thread, make sure you put a reference to this page in the new question. I am sure there are others who knows about it. It is just a data source that you'll get the data from instead of workbooks.
Thank you, may you be abundantly blessed for you kindness and assistance
 
Upvote 0

Forum statistics

Threads
1,215,463
Messages
6,124,963
Members
449,200
Latest member
indiansth

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