+ Reply to Thread
Results 1 to 7 of 7

Automatically transfer data from several sheets to a master sheet

  1. #1
    Registered User
    Join Date
    11-05-2013
    Location
    oklahoma, usa
    MS-Off Ver
    Excel 2007
    Posts
    7

    Automatically transfer data from several sheets to a master sheet

    Hello all,

    I am wondering if anyone can help a perplexed grad student figure out how to enter data more efficiently. My problem is I want to enter data on multiple spreadsheets within the same book, and that data to automatically show up on one master sheet. I don't know how to explain exactly what I'm doing so I will use an example. Let's say I am a teacher and I have 5 classes and I am recording the test scores for each student. Each class is a separate spreadsheet (sheet1-5) and I have one final spreadsheet (Sheet6) that I use as a master sheet with all the students listed that I use to graph their progress. Is it possible to enter date on sheets 1-5 and it automatically show up on on a list on the master sheet? Furthermore, can I get it to show up on the next available row for each student? For example,every time I enter a new score for a student on sheets 1-5, the new score will show up on the box to the right of the old score so all the old data plus the latest new score is visible on the master sheet.

    I really hope this makes sense and someone out there can help me out. It would be greatly appreciated!
    Last edited by lisal; 11-05-2013 at 11:49 PM.

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,929

    Re: Automatically transfer data from several sheets to a master sheet

    Hi and welcome to the forum

    Im sure we can put something together for you on this. Have you started putting anything together yet? Like, what will the "class" sheets look like and what will the "master" look like?
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  3. #3
    Registered User
    Join Date
    11-05-2013
    Location
    oklahoma, usa
    MS-Off Ver
    Excel 2007
    Posts
    7

    Re: Automatically transfer data from several sheets to a master sheet

    So far this is what I have it looking like. It will get more complex but this is just for the purpose of understanding how to do it.
    Attached Files Attached Files

  4. #4
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,929

    Re: Automatically transfer data from several sheets to a master sheet

    Take a look at the attached, I changed things a little, to help with the flow. If you prefer it the way you had it, we can work around that.

    This formula all revolves around each column on each sheet being the same as the same (relative) column on the other sheets...sheet1 column D=sheet2 column D=sheet3 column D. If you have headings, we could use those instead
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    11-05-2013
    Location
    oklahoma, usa
    MS-Off Ver
    Excel 2007
    Posts
    7

    Re: Automatically transfer data from several sheets to a master sheet

    Wow thank you so much! That is what I needed! So, if I were to replicate this and make another spreadsheet that I want to do the same thing, where would I paste that formula and what would I need to know to set it up again on my own?

  6. #6
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,929

    Re: Automatically transfer data from several sheets to a master sheet

    The basic formula is...
    INDEX(INDIRECT("'"&$A2&"'!$A$1:$H$6"),MATCH('sums to 9'!$B2,INDIRECT("'"&$A2&"'!$A$1:$A$6"),0),COLUMN()-1)
    broken down, this is an index/match combo...
    =INDEX(sheet1$A$1:$H$6,MATCH('sums to 9'!$B2,sheet1!$A$1:$A$6,0),COLUMN()-1)
    =INDEX(range,row-num,col-num)

    Because you are referencing different worksheets as you progress down the table, I used INDIRECT() to reference and use that data from column A. INDIRECT() is a function that can take regular text (like a sheet name in a cell), and convert it to something that excel can use in a formula
    so...
    INDIRECT("'"&$A2&"'!$A$1:$H$6")
    says...use the contents if A2 (as the sheet name), and combine that with the range $A$1:$H$6, to give me a sheet name range reference. The "'" and "'! need to be there to keep with sheet referencing rules - in class1, reference A1 on sums to 9 sheet, and you will see the context ='sums to 9'!A1. You will need to adjust the A1:A6 manually in that formula to suite your range, I could biold it in, but I wanted to keep it "relatively" simple

    With that said, if you include Class4, class5 etc sheets, and add them to the summary, just copy the formula down and across and you should be find

    You may have noticed that your chart now takes a dive where there is no data. There are a few ways around this, probably the simplest might be to hide the columns that dont (yet) have data, or delete the formulas in those cells/columns

  7. #7
    Registered User
    Join Date
    11-05-2013
    Location
    oklahoma, usa
    MS-Off Ver
    Excel 2007
    Posts
    7

    Re: Automatically transfer data from several sheets to a master sheet

    Thank you so much for your help. It has definitely got my started in the right direction. However, I have made some revisions in order to achieve my ultimate goal. I have attached an updated spreadsheet to help explain.

    I have added a sheet labeled class1 master. Ultimately, we want to enter a score on column C only. So every day we just erase the old score and enter a new one. We want to push the data from column C to the next available empty box for each student on each row on the corresponding spreadsheet specified in column B on the master.
    Attached Files Attached Files

+ 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: 8
    Last Post: 05-21-2013, 10:07 AM
  2. [SOLVED] Automatically transfer data from master sheet to others...
    By seanallen in forum Excel General
    Replies: 9
    Last Post: 04-10-2013, 06:33 PM
  3. Macro to Transfer data from multiple sheets into rows on a master sheet
    By serrone in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-30-2013, 06:35 AM
  4. Transfer data from master sheet to different sheets.
    By liwle19 in forum Excel General
    Replies: 0
    Last Post: 04-12-2011, 12:55 PM
  5. Replies: 8
    Last Post: 05-01-2009, 12:38 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