how to merge multiple files in Excel?

Status
Not open for further replies.

tazarbm

Elite Member
Executive VIP
Jr. VIP
Joined
Oct 28, 2020
Messages
11,663
Reaction score
14,626
Hi,

I have about 35 excel files whose data I need to merge into one, but I've no clue how to do this... Ok, I can copy-paste it, obviously, but I'm curious whether there's a more elegant way of doing it :)

So, do tell if you know how to do this!

Thanks!

PS: yes, the file header is always the same across all 35 files, and even the number of rows and columns are the same (50 rows + 2 columns), only the data differs, and I need to move this data from 34 files into only 1 so that I can organize my work a little bit...
 
there's a much faster way. Since all your files have the exact same format, you can use Power Query. It's built right into Excel and is perfect for this
 
  1. Store files: Place all the Excel files you want to combine into a single folder.

  2. Open a new workbook: Create a new, blank Excel workbook.

  3. Get data from folder: Go to the Data tab, then select Get Data > From File > From Folder.

  4. Select folder and combine: Browse to the folder containing your files, select it, and click OK.

  5. Load data: In the dialogue box that appears, choose to combine the data and load it into a new table in your workbook.
 
Hi,

I have about 35 excel files whose data I need to merge into one, but I've no clue how to do this... Ok, I can copy-paste it, obviously, but I'm curious whether there's a more elegant way of doing it :)

So, do tell if you know how to do this!

Thanks!

PS: yes, the file header is always the same across all 35 files, and even the number of rows and columns are the same (50 rows + 2 columns), only the data differs, and I need to move this data from 34 files into only 1 so that I can organize my work a little bit...
I can write an automated script for you
Or create a Google Colab file for you to run online without installing anything
Or if you send a zip file containing 35 files, I can merge them and send back the results
 
I can write an automated script for you
Or create a Google Colab file for you to run online without installing anything
Or if you send a zip file containing 35 files, I can merge them and send back the results
I appreciate the offer, but I would like to learn to do it myself as this is only the 1st batch out of 50-60 that I'll be doing over the next few days :)

But thanks again for the offer!

  1. Store files: Place all the Excel files you want to combine into a single folder.

  2. Open a new workbook: Create a new, blank Excel workbook.

  3. Get data from folder: Go to the Data tab, then select Get Data > From File > From Folder.

  4. Select folder and combine: Browse to the folder containing your files, select it, and click OK.

  5. Load data: In the dialogue box that appears, choose to combine the data and load it into a new table in your workbook.
thanks, I'll try in 30 minutes and I'll let you know how it turned out :)
 
  1. Store files: Place all the Excel files you want to combine into a single folder.

  2. Open a new workbook: Create a new, blank Excel workbook.

  3. Get data from folder: Go to the Data tab, then select Get Data > From File > From Folder.

  4. Select folder and combine: Browse to the folder containing your files, select it, and click OK.

  5. Load data: In the dialogue box that appears, choose to combine the data and load it into a new table in your workbook.
This. Saved me months of work collectively.

Doesn't work on Mac, though. This is the #1 reason I use noth Mac and PC, by the way.
 
Hi,

I have about 35 excel files whose data I need to merge into one, but I've no clue how to do this... Ok, I can copy-paste it, obviously, but I'm curious whether there's a more elegant way of doing it :)

So, do tell if you know how to do this!

Thanks!

PS: yes, the file header is always the same across all 35 files, and even the number of rows and columns are the same (50 rows + 2 columns), only the data differs, and I need to move this data from 34 files into only 1 so that I can organize my work a little bit...
A simple way to consolidate all the files is to use a tool or script that appends each dataset into a single organized sheet for easier management
 
their are online tools, search for Merge multiple CSV files online
 
Those free online tools can be helpful, but they can be tricky for privacy reasons, if the data from those Excel files are important, they could be accessed
You can find Win/Mac tools free trial like systools csv merger

and CSV Joiner is free one
 
Since I don’t use Excel on Mac... I’d prolly just upload everything into Google Sheets and use the Merge Sheets extension : )
 
  1. Store files: Place all the Excel files you want to combine into a single folder.

  2. Open a new workbook: Create a new, blank Excel workbook.

  3. Get data from folder: Go to the Data tab, then select Get Data > From File > From Folder.

  4. Select folder and combine: Browse to the folder containing your files, select it, and click OK.

  5. Load data: In the dialogue box that appears, choose to combine the data and load it into a new table in your workbook.
thanks, I'll try in 30 minutes and I'll let you know how it turned out :)
hey, man!

I know that I said I'll come back in 30 minutes, and that was over 13 hours ago, but I've made a few blunders...

1) first of all, the habit of having used Windows for 35 years made me type Excel in the title of this thread instead of LibreCalc as I've permanently moved to Linux from Windows 2 years ago, but I still haven't gotten totally used to Linux's lingo and apps, so yeah... that's where all of these problems started...

It took me literally hours (ok, maybe not hours but definitely over 1 hour) of total confusion and wondering why I can't find the things you mention in your guide, but all this time I assumed I am in Excel, when - in fact - I've been in LibreCal all along...

And then - after 1 hour of standing there like a moron, pondering what the heck is wrong - it finally hit me: "duuude, this is not EXCEL" :D

But at that time I couldn't edit the post anymore as the 30 minutes of editing allowance will have already passed, and instead of coming here to whine like the little bitch that I am (because I don't know what else I could have said), I figured I would instead install Excel and try your steps in Excel first and - if they worked - I would then save the file in LibreCalc-recognizable format (.ods) and at that point I would have handled the minor adjustments that I had to make...

But, and here was the next problem....

2) Excel can't be installed into Linux.... ok, it can be installed with Wine, Bottles, etc... but since I don't understand those apps (and also I didn't want to install it that way anyway as my Linux is a bit faulty lately (constant crashes and freezes), so I need to reinstall it anyway, and I can't do this until I return home from the city next week... it's a whole domino of events that I need to do in the right order, but I won't bore you with everything, just know that - at the moment - the only way to make Excel work was to install it in a virtual machine, so....

3) on I went to install virtual machine, then look through my old HDDs for a version of MS Office that I knew I had from memorial times when I still used Windows... I finally found that damn Office file after another hour of connecting and disconnecting HDDs and searching through few Terrabytes of files....

So anyway, long story short, I did find a working Excel file, I did manage to install Windows, and to make these things work, but by that time it was 4 AM in the morning, and I didn't have the mood to keep going with this, so I went to sleep and now that I'm awake, the first thing that I did was powering my virtual machine on, and going to Excel to try your guide and - as always - as the saying here in Romania goes "misfortunes never come alone" obviously that my version of Excel (from 2016, that's all I had to go with) didn't have the icons / buttons that you mention in your guide, as you can see in the screenshot below, so now I'm once again - at the mercy of kind people like you - who hopefully will tell me what to do next, as - apparently - I am too dumb to be able to figure it out myself :(

0.jpg

So yeah, as you can see in this screenshot there is no "Get Data > From File > From Folder" option anywhere, and I did try to click on other options but none of them allows me to select folder, I think the only option that allowed me to OPEN (not select) the folder was the "From Text" icon, but this didn't work as it didn't select all files (I tried the SHIFT + arrow trick, but it didn't work)... and the files are not even text to be honest, they're CSV, so yeah... not sure what to do about it....

So, please - and if you don't mind having to babysit me in this already dragging for too long process, for which I apologize - please tell me what else I can do.

If you don't want to, or can't say as it would take too long to spoonfeed me (understandable, honestly) I'll just go ahead and manually copy-paste 100s of files like a lunatic because that's my skill level when it comes to these things. It won't be pretty or pleasant, but I do need to merge those files one way or another, so.... good luck to me I guess...
 
Last edited:
hey, man!

I know that I said I'll come back in 30 minutes, and that was over 13 hours ago, but I've made a few blunders...

1) first of all, the habit of having used Windows for 35 years made me type Excel in the title of this thread instead of LibreCalc as I've permanently moved to Linux from Windows 2 years ago, but I still haven't gotten totally used to Linux's lingo and apps, so yeah... that's where all of these problems started...

It took me literally hours (ok, maybe not hours but definitely over 1 hour) of total confusion and wondering why I can't find the things you mention in your guide, but all this time I assumed I am in Excel, when - in fact - I've been in LibreCal all along...

And then - after 1 hour of standing there like a moron, pondering what the heck is wrong - it finally hit me: "duuude, this is not EXCEL" :D

But at that time I couldn't edit the post anymore as the 30 minutes of editing allowance will have already passed, and instead of coming here to whine like the little bitch that I am (because I don't know what else I could have said), I figured I would instead install Excel and try your steps in Excel first and - if they worked - I would then save the file in LibreCalc-recognizable format (.ods) and at that point I would have handled the minor adjustments that I had to make...

But, and here was the next problem....

2) Excel can't be installed into Linux.... ok, it can be installed with Wine, Bottles, etc... but since I don't understand those apps (and also I didn't want to install it that way anyway as my Linux is a bit faulty lately (constant crashes and freezes), so I need to reinstall it anyway, and I can't do this until I return home from the city next week... it's a whole domino of events that I need to do in the right order, but I won't bore you with everything, just know that - at the moment - the only way to make Excel work was to install it in a virtual machine, so....

3) on I went to install virtual machine, then look through my old HDDs for a version of MS Office that I knew I had from memorial times when I still used Windows... I finally found that damn Office file after another hour of connecting and disconnecting HDDs and searching through few Terrabytes of files....

So anyway, long story short, I did find a working Excel file, I did manage to install Windows, and to make these things work, but by that time it was 4 AM in the morning, and I didn't have the mood to keep going with this, so I went to sleep and now that I'm awake, the first thing that I did was powering my virtual machine on, and going to Excel to try your guide and - as always - as the saying here in Romania goes "misfortunes never come alone" obviously that my version of Excel (from 2016, that's all I had to go with) didn't have the icons / buttons that you mention in your guide, as you can see in the screenshot below, so now I'm once again - at the mercy of kind people like you - who hopefully will tell me what to do next, as - apparently - I am too dumb to be able to figure it out myself :(

View attachment 479277

So yeah, as you can see in this screenshot there is no "Get Data > From File > From Folder" option anywhere, and I did try to click on other options but none of them allows me to select folder, I think the only option that allowed me to OPEN (not select) the folder was the "From Text" icon, but this didn't work as it didn't select all files (I tried the SHIFT + arrow trick, but it didn't work)... and the files are not even text to be honest, they're CSV, so yeah... not sure what to do about it....

So, please - and if you don't mind having to babysit me in this already dragging for too long process, for which I apologize - please tell me what else I can do.

If you don't want to, or can't say as it would take too long to spoonfeed me (understandable, honestly) I'll just go ahead and manually copy-paste 100s of files like a lunatic because that's my skill level when it comes to these things. It won't be pretty or pleasant, but I do need to merge those files one way or another, so.... good luck to me I guess...
This went from... OH, YEAH !! to OH, SHIIIT real' quick : )
 
Hi,

I have about 35 excel files whose data I need to merge into one, but I've no clue how to do this... Ok, I can copy-paste it, obviously, but I'm curious whether there's a more elegant way of doing it :)

So, do tell if you know how to do this!

Thanks!

PS: yes, the file header is always the same across all 35 files, and even the number of rows and columns are the same (50 rows + 2 columns), only the data differs, and I need to move this data from 34 files into only 1 so that I can organize my work a little bit...
Put all 35 Excel files into a separate folder.
Open a new Excel, go to the Data tab > select Get Data > From File > From Folder.
Select the folder containing the Excel files.
Excel will list all the files in that folder, you select Combine.
Power Query will automatically open a window for you to select the sheet and set up the data (make sure to select the sheet containing the data to merge).
Check the preview data, then click Load to export the results to a new sheet.
 
Put all 35 Excel files into a separate folder.
Open a new Excel, go to the Data tab > select Get Data > From File > From Folder.
Select the folder containing the Excel files.
there's no Get Data > From File > From Folder in my 2016 version of Excel:

0.jpg
 
LibreCalc as I've permanently moved to Linux from Windows 2 years ago, but I still haven't gotten totally used to Linux's lingo and apps, so yeah... that's where all of these problems started...
That's shocking :O
This is what Google AI helps, I don't know if it works for you, cause I don't use Linux

Method:​

  1. Open a new LibreOffice Calc document.
  2. Go to Sheet > Insert Sheet from File…
  3. Select one of your .ods files → Choose the sheet → Click OK.
  4. Repeat for each file (a bit tedious, but faster than copy-pasting).
  5. Once all sheets are in, you can consolidate them into one master sheet using formulas like =Sheet1.A1, etc. or copy-paste values.
*This is semi-automated, but still requires manual repetition.
 
Use Power Query Method. put all the 35 files in one folder , In Excel go to data then get data then from folder and select the folder then combine and reload . At last Excel will merge all the files to one.
 
hey, man!

I know that I said I'll come back in 30 minutes, and that was over 13 hours ago, but I've made a few blunders...

1) first of all, the habit of having used Windows for 35 years made me type Excel in the title of this thread instead of LibreCalc as I've permanently moved to Linux from Windows 2 years ago, but I still haven't gotten totally used to Linux's lingo and apps, so yeah... that's where all of these problems started...

It took me literally hours (ok, maybe not hours but definitely over 1 hour) of total confusion and wondering why I can't find the things you mention in your guide, but all this time I assumed I am in Excel, when - in fact - I've been in LibreCal all along...

And then - after 1 hour of standing there like a moron, pondering what the heck is wrong - it finally hit me: "duuude, this is not EXCEL" :D

But at that time I couldn't edit the post anymore as the 30 minutes of editing allowance will have already passed, and instead of coming here to whine like the little bitch that I am (because I don't know what else I could have said), I figured I would instead install Excel and try your steps in Excel first and - if they worked - I would then save the file in LibreCalc-recognizable format (.ods) and at that point I would have handled the minor adjustments that I had to make...

But, and here was the next problem....

2) Excel can't be installed into Linux.... ok, it can be installed with Wine, Bottles, etc... but since I don't understand those apps (and also I didn't want to install it that way anyway as my Linux is a bit faulty lately (constant crashes and freezes), so I need to reinstall it anyway, and I can't do this until I return home from the city next week... it's a whole domino of events that I need to do in the right order, but I won't bore you with everything, just know that - at the moment - the only way to make Excel work was to install it in a virtual machine, so....

3) on I went to install virtual machine, then look through my old HDDs for a version of MS Office that I knew I had from memorial times when I still used Windows... I finally found that damn Office file after another hour of connecting and disconnecting HDDs and searching through few Terrabytes of files....

So anyway, long story short, I did find a working Excel file, I did manage to install Windows, and to make these things work, but by that time it was 4 AM in the morning, and I didn't have the mood to keep going with this, so I went to sleep and now that I'm awake, the first thing that I did was powering my virtual machine on, and going to Excel to try your guide and - as always - as the saying here in Romania goes "misfortunes never come alone" obviously that my version of Excel (from 2016, that's all I had to go with) didn't have the icons / buttons that you mention in your guide, as you can see in the screenshot below, so now I'm once again - at the mercy of kind people like you - who hopefully will tell me what to do next, as - apparently - I am too dumb to be able to figure it out myself :(

View attachment 479277

So yeah, as you can see in this screenshot there is no "Get Data > From File > From Folder" option anywhere, and I did try to click on other options but none of them allows me to select folder, I think the only option that allowed me to OPEN (not select) the folder was the "From Text" icon, but this didn't work as it didn't select all files (I tried the SHIFT + arrow trick, but it didn't work)... and the files are not even text to be honest, they're CSV, so yeah... not sure what to do about it....

So, please - and if you don't mind having to babysit me in this already dragging for too long process, for which I apologize - please tell me what else I can do.

If you don't want to, or can't say as it would take too long to spoonfeed me (understandable, honestly) I'll just go ahead and manually copy-paste 100s of files like a lunatic because that's my skill level when it comes to these things. It won't be pretty or pleasant, but I do need to merge those files one way or another, so.... good luck to me I guess...
Click "new query" tab under data, power query is in 2016 version, and there is download version if it is actually excel 2013? Update me!
 
Status
Not open for further replies.
Back
Top