Combining workbooks/worksheets

%3CLINGO-SUB%20id%3D%22lingo-sub-121210%22%20slang%3D%22en-US%22%3ECombining%20workbooks%2Fworksheets%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-121210%22%20slang%3D%22en-US%22%3E%3CP%3EHi%20Excel%20community%3A%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EHow%20do%20I%20combine%20lots%20of%20different%20worksheets%20(from%20different%20workbooks)%20to%20a%20master%20workbook%20without%20using%20VBA%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EWhat%20I%20really%20want%20are%20these%20separate%20workbooks%20to%20show%20up%20as%20separate%20%22tabs%22%20in%20a%20master%20workbook.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-121210%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EExcel%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-121537%22%20slang%3D%22en-US%22%3ERe%3A%20Combining%20workbooks%2Fworksheets%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-121537%22%20slang%3D%22en-US%22%3E%3CP%3EHi%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EPlease%20note%20that%20the%20%3CSTRONG%3Elink%3C%2FSTRONG%3E%20I%20mentioned%20in%20the%20previous%20reply%26nbsp%3Bguides%20you%20to%20three%20methods%20as%20follows%3A%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CUL%3E%3CLI%3ECombine%20Multiple%20Workbooks%20To%20One%20Workbook%20With%20VBA.%3C%2FLI%3E%3CLI%3ECombine%20Multiple%20Workbooks%20To%20One%20Workbook%20With%20Move%20Or%20Copy%20Command.%3C%2FLI%3E%3CLI%3ECombine%20Multiple%20Workbooks%20To%20One%20Workbook%20With%20Kutools%20For%20Excel%20(Which%20is%20a%20third%20party%20Excel%20Add-in).%3C%2FLI%3E%3C%2FUL%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EYou%20can%20choose%20the%20method%20that%20suits%20you%20best.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThe%20VBA%20maybe%20the%20best%20way%2C%20but%20provided%20that%20the%20code%20is%20good%2C%20and%20the%20VBA%20code%20in%20that%20link%20is%20fairly%20good.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EBut%20the%20problem%26nbsp%3Bin%20that%26nbsp%3Bcode%20is%3A%3C%2FP%3E%3CP%3EIt's%20combine%20all%20worksheets%20in%20the%20workbooks%20into%20the%20master%20workbook%2C%20so%20you%20cannot%20specify%20certain%20worksheets%20of%20the%20workbooks%20to%20combine.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-121384%22%20slang%3D%22en-US%22%3ERe%3A%20Combining%20workbooks%2Fworksheets%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-121384%22%20slang%3D%22en-US%22%3E%3CP%3EHi%20Haytham--thanks%20for%20the%20reply!%20That's%20the%20way%20I%20would%20have%20originally%20done%20it%2C%20but%20there%20are%20going%20to%20be%20a%20large%20number%20of%20workbooks%20that%20need%20to%20be%20added.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EMaybe%20VBA%20is%20the%20best%20way%20to%20do%20it%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThere%20is%20already%20a%20workbook%20that%20exists%20with%20about%203%20sheets%20and%20I%20want%20to%20add%20multiple%20excel%20files%20that%20are%20borough%20specific%20to%20that%20%22master%22%20workbook%20(i.e.%20add%20the%20workbooks%20as%20separate%20tabs%20within%20that%20master%20workbook).%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-121344%22%20slang%3D%22en-US%22%3ERe%3A%20Combining%20workbooks%2Fworksheets%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-121344%22%20slang%3D%22en-US%22%3E%3CP%3EHi%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EIf%20you%26nbsp%3Bdon't%20want%20to%20use%20VBA%2C%20then%20you%20have%20to%20move%20each%20worksheet%20manually%20by%20following%20these%20steps%3A%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSTRONG%3ECombine%20Multiple%20Workbooks%20To%20One%20Workbook%20With%20Move%20Or%20Copy%20Command%3C%2FSTRONG%3E%3C%2FP%3E%3CP%3EIf%20you%20are%20a%20rookie%20of%20Microsoft%20Excel%2C%20you%20have%20no%20choice%20but%20only%20have%20to%20copy%20the%20data%20of%20every%20sheet%20and%20paste%20them%20in%20to%20a%20new%20workbook%20one%20by%20one%20and%20applying%20the%20Move%20or%20Copy%20command.%20Using%20the%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CSTRONG%3EMove%20or%20Copy%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3C%2FSTRONG%3Ecommand%20will%20help%20you%20export%20or%20copy%20one%20or%20several%20worksheets%20to%20a%20new%20workbook%20quickly.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E1.%20Open%20all%20workbooks%20that%20you%20want%20to%20merge%20into%20a%20single%20workbook.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSTRONG%3E2%3C%2FSTRONG%3E.%20Select%20all%20of%20the%20worksheet%20names%20of%20a%20workbook%20in%20tab%20bar.%20You%20can%20select%20multiple%20with%20holding%20down%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CSTRONG%3ECtrl%3C%2FSTRONG%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3Ekey%20or%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CSTRONG%3EShift%3C%2FSTRONG%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3Ekey.%20Right%20click%20the%20worksheet%20name%2C%20and%20click%20the%3CSTRONG%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3EMove%20or%20Copy%3C%2FSTRONG%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3Efrom%20context%20menu.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CIMG%20src%3D%22https%3A%2F%2Fwww.extendoffice.com%2Fimages%2Fstories%2Fdoc-excel%2Fmerge-workbooks%2Fxdoc-merge-multiple-workbooks2.png.pagespeed.ic.L6w_WnqBZ7.webp%22%20border%3D%220%22%20alt%3D%22doc-merge-multiple-workbooks2%22%20%2F%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSTRONG%3E3%3C%2FSTRONG%3E.%20In%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CSTRONG%3EMove%20or%20Copy%3C%2FSTRONG%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3Edialog%20box%2C%20select%20the%20master%20workbook%20that%20you%20want%20to%20merge%20other%20workbooks%20into%20from%20the%20drop%20down%20list%20of%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CSTRONG%3EMove%20selected%20sheets%20to%20book%3C%2FSTRONG%3E.%20And%20then%20specify%20the%20location%20of%20the%20merged%20worksheets.%20See%20screenshots%3A%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CTABLE%20border%3D%220%22%3E%3CTBODY%3E%3CTR%3E%3CTD%3E%3CIMG%20src%3D%22https%3A%2F%2Fwww.extendoffice.com%2Fimages%2Fstories%2Fdoc-excel%2Fmerge-workbooks%2Fxdoc-merge-multiple-workbooks3.png.pagespeed.ic.IZgMPh2LVA.webp%22%20border%3D%220%22%20alt%3D%22doc-merge-multiple-workbooks3%22%20%2F%3E%3C%2FTD%3E%3CTD%3E%3CIMG%20src%3D%22https%3A%2F%2Fwww.extendoffice.com%2Fimages%2Fstories%2Fdoc-excel%2Fmerge-workbooks%2Fxdoc-merge-multiple-workbooks-arrow2.png.pagespeed.ic.pHsUz1BEEa.webp%22%20border%3D%220%22%20alt%3D%22doc-merge-multiple-workbooks-arrow2%22%20width%3D%2249%22%20height%3D%2240%22%20%2F%3E%3C%2FTD%3E%3CTD%3E%3CIMG%20src%3D%22https%3A%2F%2Fwww.extendoffice.com%2Fimages%2Fstories%2Fdoc-excel%2Fmerge-workbooks%2Fxdoc-merge-multiple-workbooks4.png.pagespeed.ic.nZVA2gkvDe.webp%22%20border%3D%220%22%20alt%3D%22doc-merge-multiple-workbooks4%22%20%2F%3E%3C%2FTD%3E%3C%2FTR%3E%3C%2FTBODY%3E%3C%2FTABLE%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSTRONG%3E4%3C%2FSTRONG%3E.%20Then%20click%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CSTRONG%3EOK%3C%2FSTRONG%3E.%20The%20selected%20worksheets%20have%20been%20moved%20to%20the%20master%20workbook.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSTRONG%3E5%3C%2FSTRONG%3E.%20Repeat%20the%20steps%20from%202%20to%204%20to%20move%20other%20workbooks%20to%20the%20master%20workbook.%20Then%20it%20combines%20all%20worksheets%20of%20opened%20workbooks%20into%20a%20single%20workbook.%20See%20screenshots%3A%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CTABLE%20border%3D%220%22%3E%3CTBODY%3E%3CTR%3E%3CTD%3E%3CIMG%20src%3D%22https%3A%2F%2Fwww.extendoffice.com%2Fimages%2Fstories%2Fdoc-excel%2Fmerge-workbooks%2Fxdoc-merge-multiple-workbooks5.png.pagespeed.ic.28g6ZxST6S.webp%22%20border%3D%220%22%20alt%3D%22doc-merge-multiple-workbooks5%22%20%2F%3E%3C%2FTD%3E%3C%2FTR%3E%3CTR%3E%3CTD%3E%3CIMG%20src%3D%22https%3A%2F%2Fwww.extendoffice.com%2Fimages%2Fstories%2Fdoc-excel%2Fmerge-workbooks%2Fxdoc-merge-multiple-workbooks-arrow1.png.pagespeed.ic.yJ_wa4wPe0.webp%22%20border%3D%220%22%20alt%3D%22doc-merge-multiple-workbooks-arrow1%22%20width%3D%2237%22%20height%3D%2244%22%20%2F%3E%3C%2FTD%3E%3C%2FTR%3E%3CTR%3E%3CTD%3E%3CIMG%20src%3D%22https%3A%2F%2Fwww.extendoffice.com%2Fimages%2Fstories%2Fdoc-excel%2Fmerge-workbooks%2Fxdoc-merge-multiple-workbooks6.png.pagespeed.ic.f0Gvhdy_Pp.webp%22%20border%3D%220%22%20alt%3D%22doc-merge-multiple-workbooks6%22%20%2F%3E%3C%2FTD%3E%3C%2FTR%3E%3C%2FTBODY%3E%3C%2FTABLE%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThe%20source%3A%3C%2FP%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fwww.extendoffice.com%2Fdocuments%2Fexcel%2F456-combine-multiple-workbooks.html%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3EHow%20To%20Combine%20Multiple%20Workbooks%20To%20One%20Workbook%20In%20Excel%3F%3C%2FA%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1588484%22%20slang%3D%22en-US%22%3ERe%3A%20Combining%20workbooks%2Fworksheets%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1588484%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F35679%22%20target%3D%22_blank%22%3E%40Haytham%20Amairah%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3Ein%20a%20related%20question%2C%20is%20it%20possible%20to%20take%20the%20sheets%20from%20several%20excel%20workbooks%20to%20create%20new%20ones%2C%20for%20example%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EWorkbook%201%3B%20Sheet%201%2C%20Sheet%202%2C%20Sheet%203%3C%2FP%3E%3CP%3EWorkbook%202%3B%20Sheet%2021%2C%20Sheet%2022%2C%20Sheet%2023%3C%2FP%3E%3CP%3EWorkbook%203%3B%20Sheets%2031%2C%2032%20%26amp%3B%2033.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EWhat%20I%20want%20is%3B%3C%2FP%3E%3CP%3ENew%20Workbook%201%3B%20Sheet%201%2C%20Sheet%2021%2C%20Sheet%2031%3C%2FP%3E%3CP%3ENew%20Workbook%202%3B%20Sheet%202%2C%2022%2C%2032%3C%2FP%3E%3CP%3ENew%20Workbook%203%3B%20Sheet%203%2C%2023%2C%2033.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EWe%20have%20a%20system%20for%20monitoring%20costs%20which%20can%20export%20data%20for%20each%20section%20to%20excel%20but%20in%20order%20to%20produce%20legible%20reports%2C%20these%20must%20be%20broken%20down%20and%20collated%20in%20the%20fashion%20outlined%20above%3B%20is%20there%20a%20way%20of%20automating%20this%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E
New Contributor

Hi Excel community:

 

How do I combine lots of different worksheets (from different workbooks) to a master workbook without using VBA?

 

What I really want are these separate workbooks to show up as separate "tabs" in a master workbook.

4 Replies

Hi,

 

If you don't want to use VBA, then you have to move each worksheet manually by following these steps:

 

Combine Multiple Workbooks To One Workbook With Move Or Copy Command

If you are a rookie of Microsoft Excel, you have no choice but only have to copy the data of every sheet and paste them in to a new workbook one by one and applying the Move or Copy command. Using the Move or Copy command will help you export or copy one or several worksheets to a new workbook quickly.

 

1. Open all workbooks that you want to merge into a single workbook.

 

2. Select all of the worksheet names of a workbook in tab bar. You can select multiple with holding down Ctrl key or Shift key. Right click the worksheet name, and click the Move or Copy from context menu.

 

doc-merge-multiple-workbooks2

 

3. In Move or Copy dialog box, select the master workbook that you want to merge other workbooks into from the drop down list of Move selected sheets to book. And then specify the location of the merged worksheets. See screenshots:

 

doc-merge-multiple-workbooks3doc-merge-multiple-workbooks-arrow2doc-merge-multiple-workbooks4

 

4. Then click OK. The selected worksheets have been moved to the master workbook.

 

5. Repeat the steps from 2 to 4 to move other workbooks to the master workbook. Then it combines all worksheets of opened workbooks into a single workbook. See screenshots:

 

doc-merge-multiple-workbooks5
doc-merge-multiple-workbooks-arrow1
doc-merge-multiple-workbooks6

 

The source:

How To Combine Multiple Workbooks To One Workbook In Excel?

 

Hi Haytham--thanks for the reply! That's the way I would have originally done it, but there are going to be a large number of workbooks that need to be added.

 

Maybe VBA is the best way to do it?

 

There is already a workbook that exists with about 3 sheets and I want to add multiple excel files that are borough specific to that "master" workbook (i.e. add the workbooks as separate tabs within that master workbook).

Hi,

 

Please note that the link I mentioned in the previous reply guides you to three methods as follows:

 

  • Combine Multiple Workbooks To One Workbook With VBA.
  • Combine Multiple Workbooks To One Workbook With Move Or Copy Command.
  • Combine Multiple Workbooks To One Workbook With Kutools For Excel (Which is a third party Excel Add-in).

 

You can choose the method that suits you best.

 

The VBA maybe the best way, but provided that the code is good, and the VBA code in that link is fairly good.

 

But the problem in that code is:

It's combine all worksheets in the workbooks into the master workbook, so you cannot specify certain worksheets of the workbooks to combine.

@Haytham Amairah 

 

in a related question, is it possible to take the sheets from several excel workbooks to create new ones, for example;

 

Workbook 1; Sheet 1, Sheet 2, Sheet 3

Workbook 2; Sheet 21, Sheet 22, Sheet 23

Workbook 3; Sheets 31, 32 & 33.

 

What I want is;

New Workbook 1; Sheet 1, Sheet 21, Sheet 31

New Workbook 2; Sheet 2, 22, 32

New Workbook 3; Sheet 3, 23, 33.

 

We have a system for monitoring costs which can export data for each section to excel but in order to produce legible reports, these must be broken down and collated in the fashion outlined above; is there a way of automating this?