+ Reply to Thread
Results 1 to 3 of 3

Macro to perform consolidation (Sum) across multiple excel files

  1. #1
    Registered User
    Join Date
    06-25-2009
    Location
    Singapore
    MS-Off Ver
    Excel 2000
    Posts
    1

    Macro to perform consolidation (Sum) across multiple excel files

    Hi all,

    Read up a fair bit of consolidation posts, but I'm still unable to perform what I wanted.

    Scenario

    1) I have a default excel file (without data)
    2) I have 4-10 excel files (with data) with the exact same worksheet layout as the excel file in (1).
    3) The data are all numbers.
    4) All the files are located in a single folder.

    Problem

    I want to do a consolidation sum on all the data from (2) and populate the result into (1).

    To-date I only managed to do get the macro to run on a single workbook across multiple worksheet of same layout. The macro code is as follow:

    Please Login or Register  to view this content.

    Can anyone shed some light on how should I go ahead for multiple files scenario?

    Thanks in advance.

    Regards
    Eugene (ET)

  2. #2
    Forum Guru
    Join Date
    08-26-2007
    Location
    London
    Posts
    4,607

    Re: Macro to perform consolidation (Sum) across multiple excel files

    Someone probably can, but I suggest you attach a sample of your data.

  3. #3
    Forum Guru jaslake's Avatar
    Join Date
    02-21-2009
    Location
    Atwood Lake in Mid NE Ohio...look it up.
    MS-Off Ver
    Excel 2010 2019
    Posts
    12,749

    Re: Macro to perform consolidation (Sum) across multiple excel files

    Have you looked at the "Consolidate" feature under the "Data" tab? If your column and row headings are the same, Native Excel does the consolidation quite well. If the consolidated sheet is for presentation, you may need to do some reformatting (line inserts, etc) which could be done with a simple macro.

    Hope this helps.

    J

+ 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