+ Reply to Thread
Results 1 to 7 of 7

How to consolidate different Excel sheets?

  1. #1
    Registered User
    Join Date
    05-02-2012
    Location
    Darmstadt, Germany
    MS-Off Ver
    Excel 2007
    Posts
    3

    How to consolidate different Excel sheets?

    Does anyone know how to consolidate different Excel sheets containing the same basic template (i.e. same column headers but with a varying numbers of rows) into one Excel file?

  2. #2
    Forum Guru benishiryo's Avatar
    Join Date
    03-25-2011
    Location
    Singapore
    MS-Off Ver
    Excel 2013
    Posts
    5,156

    Re: How to consolidate different Excel sheets?

    hi ExcelGelbruiker, u can do that usin MS Query. upload a file & i can show u printscreens of how it's done

  3. #3
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,167

    Re: How to consolidate different Excel sheets?

    Do you have a sample file? This can be done through VBA very easily.
    If I have helped, Don't forget to add to my reputation (click on the star below the post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)
    Use code tags when posting your VBA code: [code] Your code here [/code]

  4. #4
    Registered User
    Join Date
    05-02-2012
    Location
    Darmstadt, Germany
    MS-Off Ver
    Excel 2007
    Posts
    3

    Re: How to consolidate different Excel sheets?

    Dear benishiryo, arlu1201,

    Thank you for responding to my cry for help.

    Attached is a sample file containing 3 sheets. The 2nd and 3rd sheets contain opportunity lists from two different people. The aim is to consolidate their opportunity lists in the 1st sheet. (Note that the length of their opportunity lists will vary depending on how many opportunities they have at any one time.)

    This is an example where the sheets are contained within the same workbook. What about if the sheets are contained in different files?

    Regards,

    ExcelGebruiker
    Attached Files Attached Files

  5. #5
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,167

    Re: How to consolidate different Excel sheets?

    If the sheets are in the same workbook, use this code
    Please Login or Register  to view this content.
    Copy the Excel VBA code
    Select the workbook in which you want to store the Excel VBA code
    Hold the Alt key, and press the F11 key, to open the Visual Basic Editor
    Choose Insert | Module
    Where the cursor is flashing, choose Edit | Paste

    To run the Excel VBA code:
    Choose View | Macros
    Select a macro in the list, and click the Run button.

    If the sheets are in separate files, use this code
    Please Login or Register  to view this content.
    This code will consolidate all files within a folder. You do not need to open. The code should be saved in the Master file (consolidated file).

  6. #6
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2402
    Posts
    13,610

    Re: How to consolidate different Excel sheets?

    Handy add-in for merging sheets, books, etc http://www.rondebruin.nl/merge.htm

  7. #7
    Registered User
    Join Date
    05-02-2012
    Location
    Darmstadt, Germany
    MS-Off Ver
    Excel 2007
    Posts
    3

    Re: How to consolidate different Excel sheets?

    Thanks for your help arlu1201. Works perfectly!

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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