Forum Discussion
Merge multiple excel files into different tabs of one workbook using Power Query on Mac
- Apr 15, 2024
Here is the variant, but made on Windows
You've had over 60 views and no replies. Not sure exactly why that is, but it may be that not a one of us is sure how exactly to help.
I'd like to ask, if you are willing to answer, that you tell us a bit more what kind of data are in each of these 33 separate sheets. I ask because it's often the case that people think they're making things clearer, easier to understand, by breaking common or recurring data sets--you do note that they all are arranged the same--into separate sheets. In fact, although that may be clearer to the human, it interferes with Excel's remarkable abilities to store and parse data. For example, if each of these is for a different product line, or a different month, or a different store....assembling all that data into a single sheet would enable you to still pull out the data for the single product line, or month, or store (or whatever), AND to do all kinds of high level summaries as well, very easily.
So before trying to solve the problem of importing each sheet into its own tab in a single workbook, let's talk about another possible way to assemble the data.....if you're willing.
If the data are not confidential, maybe you could help us help you even more effectively by posting a copy of several of these sheets on OneDrive or GoogleDrive, with a link here that grants access.
Hi,
Below is a link for sample files.
Those 3files are the raw data.
Those two are the formats that I need to transform my separate 3 files into.
I need the data to be arranged into "expected_results1.xlsx" or "expected_results1.xlsx" because we have a tool (written in csharp) that accepts those two formats and uploads the data into our internal database.
I ended up solving this problem by updating the csharp code in our tool to accommodate multiple files in a one folder.
However, I am still posting the question here because I am sure this sort of issue will come up again in the near future.
Those files are sent by our clients, and there is no way to ensure that they will send us data in a consistent format.
Instead of updating csharp script every time they send us files in a different format, I am trying to find out an easier way to transform excel files into a certain format that our csharp tool can process.
The reason I ask about Power Query is that I came across below youtube video showing that I can use "Get Data"->"From Folder" in power query for this sort of situation:
https://www.youtube.com/watch?v=EpVQyXD5bV4
However, in my Office365 on mac, I see no such thing as "Get Data from Folder":