+ Reply to Thread
Results 1 to 9 of 9

Help - Public School Parent ...class list question

  1. #1
    Registered User
    Join Date
    06-13-2016
    Location
    New York
    MS-Off Ver
    2010
    Posts
    3

    Help - Public School Parent ...class list question

    Greetings Everyone -

    I have spent time on youtube watching videos and still can't quite get to the last step / formula that I need. My guess is that it is some sort of embedded Lookup functionality. Here goes.

    I have a Master Sheet that includes each student name and contact info (first, last, parent name, email, adddress, etc.) There is also a column for Teacher. I need to generate individual Class Lists/ Sheets for each teacher. I need a formula on each class list page that goes to the Master, picks up all students related to the teacher name (at the top of the sheet) and also returns all of the contact info. The Master Sheet should be the only input sheet. Classes I would like to be locked and printed only. Yes - the screams for a database but we are a public school with 15 or so people on the PTA board who need to be able to enter and change data on the Master. We also dont have the money to invest in building a database.

    The goal is to fill out each individual Class Sheet (1-206, 1-207, 1-208, etc) with all contact info for children with the same teacher. Traditional Lookup function only returns the first student.
    Ideally, the Master Student List is the only thing that changes and the Class Sheets are locked and not able to be changed manually. I need capacity for up to 35 students in each class, although some are as small as 20
    The Master Student list is a moving list (addition and deletion of rows, changing grade numbers to move up each year, teacher name changes), etc
    There are 28 classes with 750 student entries. The model currently uses a pivot table and then you have to create new sheets for each class everytime a change is made. Not ideal

    Any help would be greatly appreciated.
    Thanks
    Erin
    Attached Files Attached Files
    Last edited by erinp1; 06-15-2016 at 09:08 AM.

  2. #2
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    30,881

    Re: Help - Public School Parent ...class list question

    Please post a sample Excel file (not image) so we have some data to work with.

    To upload a file click "Go Advanced" then scroll down to "Manage Attachments".

  3. #3
    Registered User
    Join Date
    12-22-2015
    Location
    Huntsville, AL
    MS-Off Ver
    2007
    Posts
    92

    Re: Help - Public School Parent ...class list question

    What about something like this? I made your master student list a table and then from that put a pivot table in the sheet 1-206. You could then do the same for each class and teacher. As you update the master student list, all you have to do is "refresh all pivot tables" and then all the list will update based on the master student list.
    Attached Files Attached Files

  4. #4
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    30,881

    Re: Help - Public School Parent ...class list question

    Try

    in A6

    =IFERROR(INDEX('MASTER STUDENT LIST'!F$3:F$500,SMALL(IF(('MASTER STUDENT LIST'!$C$3:$C$500=$B$2)*('MASTER STUDENT LIST'!$D$3:$D$500=$C$2),ROW($A$3:$A$500)-ROW($A$3)+1,""),ROWS($A$3:A3))),"")

    Enter with Ctrl+Shift+Enter

    Copy across and down

    I put Class in B2 and teacher in C2 (of "1-206" tab)
    Attached Files Attached Files
    Last edited by JohnTopley; 06-15-2016 at 10:37 AM.

  5. #5
    Registered User
    Join Date
    06-13-2016
    Location
    New York
    MS-Off Ver
    2010
    Posts
    3

    Re: Help - Public School Parent ...class list question

    Hi John -

    THis is super helpful. I have spent a bit of time on YouTube trying to understand the methodology behind the formula. I inserted rows in the Master sheet in order to accommodate more students. That changed the Master Sheet Index range accordingly. I seem to be running into problems in the outer grades (bottom of the spreadsheet). Check out the 5th grade classrooms....
    Thanks for any help in advance
    Erin
    Attached Files Attached Files

  6. #6
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    30,881

    Re: Help - Public School Parent ...class list question

    Two points:

    You have a different formula (ranges) for each year: you only need one formula with maximum likely range in "MASTER STUDENT LIST"

    And the ROW($A$3:$A$471) must the same range as F$3:F$1113

    =IFERROR(INDEX('MASTER STUDENT LIST'!F$3:F$1113,SMALL(IF(('MASTER STUDENT LIST'!$C$3:$C$1113=$B$2)*('MASTER STUDENT LIST'!
    $D$3:$D$1113=$C$2),ROW($A$3:$A$471)-ROW($A$3)+1,""),ROWS($A$3:A3))),"")

    so with a likely maximum of (say) 3000 students set formula as:

    =IFERROR(INDEX('MASTER STUDENT LIST'!F$3:F$3000,SMALL(IF(('MASTER STUDENT LIST'!$C$3:$C$3000=$B$2)*('MASTER STUDENT LIST'!
    $D$3:$D$3000=$C$2),ROW($A$3:$A$3000)-ROW($A$3)+1,""),ROWS($A$3:A3))),"")

    Use this same formula in EVERY sheet.

    Obviously change 3000 to what you consider to be your maximum.
    Last edited by JohnTopley; 06-17-2016 at 02:39 PM.

  7. #7
    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
    53,048

    Re: Help - Public School Parent ...class list question

    You missed adjusting the ROW range...
    ROW($A$3:$A$913)

    You could also just take them down to 1000, it's a nice round number and easy to "spot"

    edit: lol echo, John meat me to it - on both suggestions
    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

  8. #8
    Registered User
    Join Date
    06-13-2016
    Location
    New York
    MS-Off Ver
    2010
    Posts
    3

    Re: Help - Public School Parent ...class list question

    Me again!

    So I thought I was golden. Then I started manipulating the Master Student List (changing students from K to 1, deleting students, etc). Now when I begin to enter the Room for each student, they are no longer appearing in the Class spreadsheet. I didn't understand the comment about adjusting the Row range. I think i did that but wasn't sure because it looked like you wanted four ranges to be consistent. Is there a specific way that I need to be aware of changes to the Master?

    I'm also stumped by Class 1-206. It won't let me utilize the link for the teacher and Name at the top of the sheet.

    Again , super appreciate the help.

    #stayathomemominoverherhead!

    Thanks again
    Erin
    Attached Files Attached Files

  9. #9
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    30,881

    Re: Help - Public School Parent ...class list question

    in D3 of MASTER SUDENT LIST

    =IFERROR(VLOOKUP(C4,'Room Teacher MASTER'!$A$3:$B$30,2,FALSE),"")

    copy down

    to remove #N/A errors

    With 1-206 cells are formatted as TEXT: change to GENERAL.

+ 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] VBA to to create a list of product variations based on list of parent products
    By irruzzz in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 05-12-2016, 08:27 AM
  2. Advice- Parent Class "Has a" Dynamic Number of Other Class
    By Kalithro in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 03-22-2016, 04:56 AM
  3. [SOLVED] Auto update of indirect list when parent validation list is re-selected.
    By xtremca in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 09-23-2015, 10:15 AM
  4. [SOLVED] DATA VALIDATION CONTROL BOTH WAYS PARENT LIST Vs CHILD LIST
    By abuharvey in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 04-02-2015, 03:51 AM
  5. [SOLVED] Class Newbie question #2 - Check if Class already loaded/set?
    By mc84excel in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 04-16-2014, 06:59 PM
  6. How do I get rid of public variables in my class?
    By foxguy in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 10-11-2011, 04:24 PM
  7. How to add a public subroutine to a class module
    By keithb in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-19-2005, 04:40 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