+ Reply to Thread
Results 1 to 3 of 3

Aggregating Data from Multiple Workbooks in the Same Folder

  1. #1
    Registered User
    Join Date
    01-05-2012
    Location
    usa
    MS-Off Ver
    Excel 2003
    Posts
    7

    Aggregating Data from Multiple Workbooks in the Same Folder

    Hi everyone,

    I have a set of state-by-state data, with each state having a separate spreadsheet. They are all in the same format, and I was wondering if there was some way to automate the process of combining data from specific cells in each spreadsheet.

    Specifically, I'm working with the IRS Data located here: http://www.irs.gov/taxstats/article/...219931,00.html. I've saved all of the state files in a single folder. I need the final spreadsheet to be a list of states and their corresponding values from cells D4 and E4. Is there any simple way to do this?

    Thank you!
    Last edited by blinkzorg; 01-29-2012 at 03:57 AM.

  2. #2
    Forum Expert
    Join Date
    12-15-2009
    Location
    Chicago, IL
    MS-Off Ver
    Microsoft Office 365
    Posts
    3,177

    Re: Aggregating Data from Multiple Workbooks in the Same Folder

    Try this code. I noticed the file you downloaded is in xls format (Excel 2003 and earlier), so just change the extension and folder directory.

    Just an FYI, I didn't consolidate because as an Accountant's, I think it is better to have all the data listed and just do a sum function to consolidate the numbers.

    Please Login or Register  to view this content.
    Last edited by JieJenn; 01-29-2012 at 02:06 AM. Reason: Server is really slow today

  3. #3
    Registered User
    Join Date
    01-05-2012
    Location
    usa
    MS-Off Ver
    Excel 2003
    Posts
    7

    Re: Aggregating Data from Multiple Workbooks in the Same Folder

    Fantastic! Thank you so much! Yeah, the consolidation is easy with the sum function. One last thing, is it possible to also extract the name of the state for each column, or at least the filename?

    Edit: Never mind, I've figured it out. Thank you again!
    Last edited by blinkzorg; 01-29-2012 at 03:56 AM. Reason: Problem solved

+ 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