+ Reply to Thread
Results 1 to 9 of 9

Collating information from multiple separate spreadsheet into a Master Spreadsheet

  1. #1
    Registered User
    Join Date
    07-01-2021
    Location
    Wolverhampton, England
    MS-Off Ver
    MS Office 2019
    Posts
    9

    Collating information from multiple separate spreadsheet into a Master Spreadsheet

    Hi, I have three separate spreadsheets showing work shift overtime information, please see spreadsheets "Shift overtime A", "Shift overtime B", and "Shift overtime C" attached. Does anyone know a VBA code/macro which will collate the information in each of the three spreadsheets into a single spreadsheet (like the Master Shift Overtime spreadsheet attached).
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    30,895

    Re: Collating information from multiple separate spreadsheet into a Master Spreadsheet

    How many employees per workbook ?
    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED.

  3. #3
    Registered User
    Join Date
    07-01-2021
    Location
    Wolverhampton, England
    MS-Off Ver
    MS Office 2019
    Posts
    9

    Re: Collating information from multiple separate spreadsheet into a Master Spreadsheet

    There are 3 employees (one employee in "Shift overtime A, second in "Shift overtime B" and the third in "Shift overtime C").

  4. #4
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    30,895

    Re: Collating information from multiple separate spreadsheet into a Master Spreadsheet

    If there are only 3 employees in TOTAL (in the business) , why have a separate w/books rather all in one ??? (Confidentiality between employees?)

  5. #5
    Registered User
    Join Date
    07-01-2021
    Location
    Wolverhampton, England
    MS-Off Ver
    MS Office 2019
    Posts
    9

    Re: Collating information from multiple separate spreadsheet into a Master Spreadsheet

    There are 1500 employees, as time goes on more employees will submit their overtime sheet, and I would like a macro button to automatically add new emloyees info as time goes on. Currently I have just give 3 employees as an example.

  6. #6
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    30,895

    Re: Collating information from multiple separate spreadsheet into a Master Spreadsheet

    Thank you: hopefully, last question: in the "Master" sheet are you expecting a "summary" for each employee i,e values in Row 46 (TOTAL) except for items like "Rate" (for example appears twice) which I assume will be taken from H15 and N15 respectively.

    It is always helpful to fill in expected results as what is obvious to you may not be those responding to your request. In your overtime sheets, for example, there are no formulae for the TOTAL line.

    Re macro design: the normal process is to loop through all worksheets (Employees) in a workbook, so as employees are added/deleted they will be automatically included in the "Master"

  7. #7
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,834

    Re: Collating information from multiple separate spreadsheet into a Master Spreadsheet

    Quote Originally Posted by nav112 View Post
    There are 1500 employees, as time goes on more employees will submit their overtime sheet
    Try
    Please Login or Register  to view this content.
    Attached Files Attached Files

  8. #8
    Registered User
    Join Date
    07-01-2021
    Location
    Wolverhampton, England
    MS-Off Ver
    MS Office 2019
    Posts
    9

    Re: Collating information from multiple separate spreadsheet into a Master Spreadsheet

    Hi after running this code, I received a error message stating that this table contains cells that are outside the range of cells defined in this spreadsheet. I am not entirely sure why this error message appear, when looking at the spreadsheets that I am trying to collate the data from, they all appear within the range specified within the VBA? can anyone assist.

  9. #9
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,834

    Re: Collating information from multiple separate spreadsheet into a Master Spreadsheet

    If you are getting such error, don't use it and wait for someone else.

+ 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. Replies: 0
    Last Post: 09-14-2021, 11:09 AM
  2. Replies: 1
    Last Post: 03-06-2018, 11:46 AM
  3. Replies: 0
    Last Post: 05-19-2014, 04:16 PM
  4. I need one line of information to compile into a master spreadsheet
    By seli0046 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-24-2013, 03:25 PM
  5. Master inventory spreadsheet that pulls information from individual files via vlookup
    By whittakema in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-31-2012, 09:48 AM
  6. Replies: 8
    Last Post: 02-28-2012, 12:04 PM
  7. Replies: 2
    Last Post: 08-12-2011, 10:08 AM

Tags for this Thread

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