+ Reply to Thread
Results 1 to 4 of 4

How to create a Master Sheet using multiple worksheets from different files

  1. #1
    Registered User
    Join Date
    06-30-2016
    Location
    Brisbane, Australia
    MS-Off Ver
    2013
    Posts
    2

    Question How to create a Master Sheet using multiple worksheets from different files

    Hi, I am trying to create a master sheet that copies all of the data from 6 other worksheets saved in different files. Each worksheet contains data from columns A1 to CY down to approximately 145 rows. The column headers are all the same (as in the first 4 rows on each worksheet contain the same data).

    I want the master sheet to contain the first 4 rows and then the data from each sheet to be pasted underneath. Basically at the moment I am copying and pasting the entire contents of each worksheet and pasting it into a single (master) sheet. One after the other so I end up with 665 rows.

    Is there a formula / v look up or macro that can do this for me???? I've looked up a few macros but I don't think I'm getting the range correct and I don't know how to do sheets from different workbooks...?

    Any help would be so appreciated!!!!

  2. #2
    Forum Expert Alf's Avatar
    Join Date
    03-13-2004
    Location
    Gothenburg/Mullsjoe, Sweden
    MS-Off Ver
    Excel 2019 and not sure I like it
    Posts
    4,792

    Re: How to create a Master Sheet using multiple worksheets from different files

    I think a macro could do the job but there are several questions that need to be answered in order to write a macro to do this.

    copies all of the data from 6 other worksheets saved in different files
    So are there 6 files each with only one worksheet you wish to copy data from? Or do each file contain two or more sheets with the information you need. If so are the sheet name identical for the different files?

    Are all the different files placed in the same folder? If so are there other files in this folder.

    Is there a structure or a repeating pattern to the file names?

    Adding data to you "Master sheet" is this something you would do on a regular basis. If this is so should the old data be kept and the new data be entered below it?

    Alf

  3. #3
    Registered User
    Join Date
    06-30-2016
    Location
    Brisbane, Australia
    MS-Off Ver
    2013
    Posts
    2

    Re: How to create a Master Sheet using multiple worksheets from different files

    Hi Alf, thank you for your response, here are my answers to your questions. Thank you so much for helping me out!

    All 6 files have 2 worksheets. Only the first worksheet requires the copying to a master sheet - the name of this worksheet differs in each file.
    All 6 files are saved in different folders with other files in the folders.
    All files contain "Activities and Tasks for Programs" in the file name but also have a specific program name in the title.
    The data would be added to the individual sheets and I would need to run the macro each time I need an updated version - essentially replacing / refreshing the entire master.

    If it would be easier or better, I could collate all of the sheets into one workbook (and educate the users to go to one folder, select the master file and select their correct tab).

    Thanks again!

  4. #4
    Forum Expert Alf's Avatar
    Join Date
    03-13-2004
    Location
    Gothenburg/Mullsjoe, Sweden
    MS-Off Ver
    Excel 2019 and not sure I like it
    Posts
    4,792

    Re: How to create a Master Sheet using multiple worksheets from different files

    The easiest would be if you could move all the six files to a specific folder and if this folder contains only these 6 files their names does not matter. I've written a macro for extracting data from all the files in a specific folder "C:\Myfolder\" activating the first sheet in every file and copying all the data in that sheet minus the first four rows. This macro assumes the 6 files are all ".xlsx" files

    You master file should contain the four rows with headings. So can you upload one of the sample files after removing any sensetive data, I could then do a bit of testing.

    Please Login or Register  to view this content.
    Alf

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] Create Multiple New Files from Master Sheet
    By JP Romano in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 06-29-2015, 06:35 AM
  2. VBA to create master from multiple workbooks with multiple worksheets.
    By ellisgirl in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 02-19-2015, 11:57 AM
  3. Replies: 2
    Last Post: 06-17-2014, 11:16 AM
  4. How to lookup vaues to create a master file from multiple daily files
    By j0nx in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 03-21-2013, 05:31 PM
  5. [SOLVED] VBA to create many worksheets from one master sheet based on column value
    By Ironman in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-11-2012, 02:47 PM
  6. Pulling data from various worksheets to create a master sheet
    By uk2806 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-23-2012, 05:23 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1