+ Reply to Thread
Results 1 to 14 of 14

Link spreadsheets to auto populate class rosters from master registration

  1. #1
    Registered User
    Join Date
    03-11-2018
    Location
    Texas, USA
    MS-Off Ver
    2016
    Posts
    11

    Link spreadsheets to auto populate class rosters from master registration

    Hi, I am new to the forum and just a casual user of excel. I am trying to link fields from a master registration sheet to auto populate class rosters once I paste in data and assign the classes. I have tried searching online, but can't seem to find the best way to get this done. I have attached an example of what I am trying to do.

    Thanks.
    Attached Files Attached Files

  2. #2
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Cool Re: Link spreadsheets to auto populate class rosters from master registration

    Is that what you want?

    done with PowerQuery (Get&Transform)

    if you add something to source table (registration) go to appropriate sheet then right click on green table and select refresh

  3. #3
    Forum Expert PaulM100's Avatar
    Join Date
    10-09-2017
    Location
    UK
    MS-Off Ver
    Office 365
    Posts
    2,108

    Re: Link spreadsheets to auto populate class rosters from master registration

    Maybe something like this:

    Registration tab: H2:
    Please Login or Register  to view this content.
    Clas Blue E: D3:
    Please Login or Register  to view this content.
    The second formula is array formula entered with Ctrl+Shift+Enter. Drag it in E column as well
    Please Login or Register  to view this content.
    Drag it in G and H

    I've added a dropdown in E1 - Class Blue E. Therefore there is no need to create a new tab each time. You can simply change the dropdown value and the formulas will automatically update.
    Attached Files Attached Files

  4. #4
    Registered User
    Join Date
    03-11-2018
    Location
    Texas, USA
    MS-Off Ver
    2016
    Posts
    11

    Re: Link spreadsheets to auto populate class rosters from master registration

    I am not sure whether that is what I am looking for. I have never used Get&Transform, so I will need to research it and the steps to implement it.

  5. #5
    Registered User
    Join Date
    03-11-2018
    Location
    Texas, USA
    MS-Off Ver
    2016
    Posts
    11

    Re: Link spreadsheets to auto populate class rosters from master registration

    I am not sure whether that is what I am looking for. I have never used Get&Transform, so I will need to research it and the steps to implement it.

  6. #6
    Registered User
    Join Date
    03-11-2018
    Location
    Texas, USA
    MS-Off Ver
    2016
    Posts
    11

    Re: Link spreadsheets to auto populate class rosters from master registration

    Quote Originally Posted by PaulM100 View Post
    Maybe something like this:

    Registration tab: H2:
    Please Login or Register  to view this content.
    Clas Blue E: D3:
    Please Login or Register  to view this content.
    The second formula is array formula entered with Ctrl+Shift+Enter. Drag it in E column as well
    Please Login or Register  to view this content.
    Drag it in G and H

    I've added a dropdown in E1 - Class Blue E. Therefore there is no need to create a new tab each time. You can simply change the dropdown value and the formulas will automatically update.
    Sorry, this has gone way over my head. I don't understand the changes you have made to the master registration sheet. I added a name to the master registration sheet for Blue E and the class roster was updated. Then I added a name to the master registration sheet for Green E and the class roster wasn't updated. I tried to copy the formula in column H, but the class roster still wasn't updated. My wife and I will look at it again in the am when we are fresh, we are making some progress on the formula logic.
    Last edited by Perkybunch; 03-16-2018 at 10:00 PM.

  7. #7
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: Link spreadsheets to auto populate class rosters from master registration

    You've PowerQuery built-in with your version of Excel.

    If you want to know more:
    Getting Started with Get & Transform in Excel 2016 - Excel
    Last edited by sandy666; 03-17-2018 at 05:24 PM.

  8. #8
    Forum Expert PaulM100's Avatar
    Join Date
    10-09-2017
    Location
    UK
    MS-Off Ver
    Office 365
    Posts
    2,108

    Re: Link spreadsheets to auto populate class rosters from master registration

    As I said, there is a dropdown in the second tab, if you select it from there you have multiple choices. if you select another value, all of them will automatically be updated. but if you need new tabs for each class, then copy the formulas and over and change the references to the new sheet. also, first two formulas are array, so, after copying them over and changing the references you have to enter them with CTRL+SHIFT+ENTER instead of regular enter.

    In fact, add the INDEX formula in D3, change it, pres CTRL+SHIFT+ENTER, drag it in column E as well and down. It should automaticaly change the ranges. the same with the Lookup formula, add it in G3, press ENTER, drag it to right and down.

  9. #9
    Registered User
    Join Date
    03-11-2018
    Location
    Texas, USA
    MS-Off Ver
    2016
    Posts
    11

    Re: Link spreadsheets to auto populate class rosters from master registration

    Thanks Paul, we were able to use your directions to make it work. The assistance is much appreciated!
    Last edited by AliGW; 04-14-2018 at 01:23 AM. Reason: Unnecessary quotation removed.

  10. #10
    Registered User
    Join Date
    03-11-2018
    Location
    Texas, USA
    MS-Off Ver
    2016
    Posts
    11

    Re: Link spreadsheets to auto populate class rosters from master registration

    I am having a problem with the duplicated names, i.e., Sue, not being populated on the class roster. Is there a way to fix this? Thanks!

  11. #11
    Forum Contributor
    Join Date
    02-27-2004
    Location
    California, United States
    MS-Off Ver
    Excel 2016
    Posts
    315

    Re: Link spreadsheets to auto populate class rosters from master registration

    Do your class names have to have a separate letter after it? (i.e. blue e, yellow g) and do you have the same name classes with different letters (i.e. blue g, blue e, blue a)?

  12. #12
    Forum Contributor
    Join Date
    02-27-2004
    Location
    California, United States
    MS-Off Ver
    Excel 2016
    Posts
    315

    Re: Link spreadsheets to auto populate class rosters from master registration

    If your class names don't have to have a separate letter (different field) then this solution may work for you.

    The first thing I did was to create a name variable (Formulas>Name Manager) to count how many students you had registered. I called this variable StudentData.
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    The next thing I did was to create an ID field (I made up IDs of course) to eliminate the duplicate name factor (no students will have the same ID number right?) and assigned IDs to each student. I did this on the registration tab (and added the columns on the the class tabs).

    Following this, I used this array formula (enter with cntrl-shift-enter and then copy down) to bring in the students assigned to the different color classes (on the class tabs).
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    In the first INDEX statement with the StudentData variable, the 1 is the first column (on the Registration tab) - that is the ID number and that is what I pull into the class tabs. I match the color of the class (7th column is equal to Blue, Green, Yellow, whatever - you can also make this a cell reference by having a cell with your class color in it). You will see the StudentData variable used again after this... make sure it is also referring to column 1 (the ID). The b$2:b2 reference needs to be the column you are bringing the ID into and needs to be the row above the first row where you want the first ID entered (in this case, the first ID is in column B and row 3).

    I then used the INDEX/MATCH combination to match the ID number to the first name, last name, grade, etc...
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Registration!B:B is the first name, $B3 is the ID number to match and Registration!A:A is the ID number column you are matching to B3. You will notice the Registration!B:B changes depending on the data I want entered into the field.

    I found it odd that your Allergies and Notes fields caused a 0 to be entered if there was nothing in them - thus you will noticed I added an IF statement to check for an empty field first and if there was one, to enter nothing ("") and if there was something there, to enter that data.

    Also, there were a couple of class colors that had spaces after the word... those will have to be eliminated because a match counts every character and spaces count as a character.

    I have attached the spreadsheet with these formulas in them... hope this will work for you.
    Attached Files Attached Files

  13. #13
    Registered User
    Join Date
    03-11-2018
    Location
    Texas, USA
    MS-Off Ver
    2016
    Posts
    11

    Re: Link spreadsheets to auto populate class rosters from master registration

    Sorry, I need the class names to have separate letters. I have all my class rosters set up now, 39 total, so I don't want to go back and change everything. At this point, I will probably add periods to a name if I see a duplicates within the same class. Thanks for the suggestions though.

  14. #14
    Forum Contributor
    Join Date
    02-27-2004
    Location
    California, United States
    MS-Off Ver
    Excel 2016
    Posts
    315

    Re: Link spreadsheets to auto populate class rosters from master registration

    I’m glad you found a good solution. You should mark the thread solved now.

+ 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. Trying to keep track of rosters/stats/trades store separately and in a master file.
    By taylorsm in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 11-08-2017, 04:54 PM
  2. Creating Class Rosters by Grade
    By missbeachy in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 04-21-2016, 01:53 AM
  3. how to Auto populate a master sheet
    By Bigsteve323 in forum Excel General
    Replies: 0
    Last Post: 04-14-2016, 05:00 PM
  4. Auto populate my class spelling list with words from another sheet.
    By ghost- in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-18-2015, 09:23 AM
  5. Auto-populate from other sheets in a master, than auto total duplicates
    By Melyd in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 08-30-2013, 01:48 PM
  6. Class Rosters: How to populate automatically with a code...
    By HistoryTeacher in forum Excel General
    Replies: 3
    Last Post: 05-22-2012, 04:00 PM
  7. Replies: 5
    Last Post: 09-20-2010, 04:58 PM

Tags for this Thread

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