+ Reply to Thread
Results 1 to 2 of 2

Populating Sheet from multiple files/tabs

Hybrid View

  1. #1
    Registered User
    Join Date
    08-07-2014
    Location
    Florida
    MS-Off Ver
    Office 2007
    Posts
    1

    Question Populating Sheet from multiple files/tabs

    I have a sheet template that calculates payroll information for a large group of employees. This template is populated and saved twice per day (one sheet for AM, one for PM) and one workbook is created per week (for a total of 14 sheets per week). I have workbooks created for every week of the year. Within this template is a small table (always in the same cells). I would like to import this table from each sheet (and from each workbook) to a single sheet that i can clean up and import into SPSS. Additionally, it would be nice if I could add columns showing the workbook file and sheet name from which came each row of data. The imported tables should be stacked one after another

    I know for any given cell, I can use ='[Filename]SheetName'!Cell, but I haven't figured out how to automate this process for 30ish workbooks. Additionally, I can't figure out how to add the filename or sheetname as new columns and populate in the cells.

    I really hope this makes sense. Happy to answer questions to help anyone understand what I'm asking for.

  2. #2
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Populating Sheet from multiple files/tabs

    I would do this with a macro designed to open all the files stored in a specific folder and import them into a single new worksheet in the desired layout, organizing the data and adding the names as I go.

    If you post a couple of sample template source files with fake data in it, then also upload a sample RESULTS workbook showing how the sample data from those two sample template workbooks would look after the import is complete, we can connect the dots for you.

    Think this through now as you make your sample results, make sure it's exactly what you want and the sample template are truly representative of what must be imported.


    Click on GO ADVANCED and use the paperclip icon to open the upload window.

    View Pic
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

+ 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] PDF from multiple tabs/files
    By jwlamb in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 12-17-2013, 03:40 PM
  2. Replies: 2
    Last Post: 04-17-2013, 09:04 PM
  3. Consolidating multiple files into one excel file with multiple tabs
    By Chemistification in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 06-13-2012, 06:23 AM
  4. Combining Multiple Files in to one on different tabs
    By bohaiboy in forum Excel General
    Replies: 2
    Last Post: 01-16-2012, 03:00 PM
  5. Multiple Files and Tabs
    By HRBonne in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 01-25-2010, 05:48 PM

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