Forum Discussion
Question reagarding putting together various Excel sheets
Dear all,
Perhaps one of you may help me with a (seemingly easy) topic. However, looking twice, this is not a trivial problem (at least for me...).
I would like to put together the information from various Excel sheets in one general Excel sheet. Pls mind that I don't want to consolidate. Instead, what I am looking for is just a way to automatically put together the lines from various excel sheets in one general sheet. I do want to avoid a "manual" copy-paste, though.
Assume the following simple example. I would like to put together the contents of my ExampleExcelsheets 1, 2 and 3 to get the ExampleExcelsheet "All"
In each sheet the tables have identical structures (i.e. identical columns). In each sheet, however, are various numbers of rows (i.e. cases).
ExampleExcelsheet1
Column1 Column2 Column3
a a 1
ExampleExcelsheet2
Column1 Column2 Column3
b b 2
ExampleExcelsheet3
Column1 Column2 Column3
c c 3
d d 4
---------------------------
After putting together the following Excelsheet should result:
ExampleExcelsheetAll
Column1 Column2 Column3
a a 1
b b 2
c c 3
d d 4
----
You might think that this is a quick copy-paste thing, and that is certainly true. However, imagine you have hundreds of excel-sheets and want to put them all together. In all of these hundreds of sheets, the structure of the tables is identical, but there are dozens of columns and different numbers of lines. Thus, it becomes a difficult task to put them all together. Assume now, you have to do this work once a week....
Does anyone have an idea how this tedious work can be done automatically?
Many thanks for your valuable input!
Ronald
(Berlin, Germany)
5 Replies
- mtarlerSilver Contributor
Ronald_Freytag this sounds like a great application for Power Query. If you aren't familiar maybe take some time to learn about it because even if it doesn't help in this case (which I doubt) it will likely help you in other cases. Here is a link to a good intro (click on each chapter to go through the tutorial):
https://exceloffthegrid.com/power-query-introduction/
- Ronald_FreytagCopper Contributor
Hi,
Thanks a lot, this does indeed seem to be very helpful.
As you rightfully assumed, I am not familiar with this stuff, but I spend some time to read the help section. And yes, this is what I need.
Many thanks again!
Are all those worksheets stored in a single workbook? If so, are there sheets that should be skipped?
Or are they stored in separate workbooks? If so, do all workbooks reside in a single folder?
- Ronald_FreytagCopper Contributor
- Ronald_FreytagCopper Contributor
Dear Hans,
all the sheets are in one file.
However, some irrelevant sheets (that should not be taken into account) might be there.
Kind regards
Ronald