+ Reply to Thread
Results 1 to 9 of 9

Create a roster from a "database" worksheet that excludes dismissed students

  1. #1
    Registered User
    Join Date
    06-22-2017
    Location
    Kansas City, Missouri
    MS-Off Ver
    Excel 2016
    Posts
    6

    Create a roster from a "database" worksheet that excludes dismissed students

    I don't even know where to begin. I have a worksheet that lists all of our music students and all of their information. Each semester I need to create a new one, just for that semester, that includes new students and excludes dismissed students. Is there a way to:

    1) Create the semester roster more easily than copying the primary book and going through and deleting all of the dismissed students? some sort of Lookup or something?

    2)make the semester roster update automatically based on the primary workbook? For instance, Let's say little Mary's mom changes her phone number. I'd like to make that change in my primary workbook and have the semester roster automatically update with her new phone number.

    Eventually we will have a "real" database, but for now Excel will have to do.
    Attached Files Attached Files

  2. #2
    Forum Expert Logit's Avatar
    Join Date
    12-23-2012
    Location
    North Carolina
    MS-Off Ver
    Excel 2019 Professional Plus - 2007 Enterprise
    Posts
    7,442

    Re: Create a roster from a "database" worksheet that excludes dismissed students

    .
    Paste the below macro into a Routine Module and call/run from a CommanButton on Sheet Primary (see attached):

    Please Login or Register  to view this content.
    The macro looks for an X in Col B. The X indicates the listed student is no longer in the Music Class. When found, that entire row is deleted. Then the
    macro copies Sheet Primary to Sheet Semester beginning at Row 2.

    All you need do in the future is place an X in the cell/row for the students no longer in class.
    Attached Files Attached Files
    Last edited by Logit; 06-22-2017 at 10:32 PM.

  3. #3
    Registered User
    Join Date
    06-22-2017
    Location
    Kansas City, Missouri
    MS-Off Ver
    Excel 2016
    Posts
    6

    Re: Create a roster from a "database" worksheet that excludes dismissed students

    I have never worked with macros. I'll see if I can figure it out :-)

    Your sample works great! Thanks.

  4. #4
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 365 version 2501
    Posts
    19,034

    Re: Create a roster from a "database" worksheet that excludes dismissed students

    Hello TMarler and Welcome to Excel Forum.
    As a compliment to the fine VBA solution Logit supplied, here is a formula based solution.
    The array entered formula* that populates column A is:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    The formula that populates columns B:J is:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Column G is formatted as Date.
    Columns H:J have a conditional formatting rule applied that hides the zeros.
    *Array entered formulas are activated by simultaneously pressing the Ctrl, Shift and Enter keys while the cell is in edit mode.
    Let us know if you have any questions.
    Consider taking the time to add to the reputation of everybody that has taken the time to respond to your query.

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

    Re: Create a roster from a "database" worksheet that excludes dismissed students

    You can try with Pivot Table
    if you update source, right click on Pivot Table and select Refresh
    Attached Files Attached Files
    Last edited by sandy666; 06-25-2017 at 01:59 PM. Reason: file updated

  6. #6
    Registered User
    Join Date
    06-22-2017
    Location
    Kansas City, Missouri
    MS-Off Ver
    Excel 2016
    Posts
    6

    Re: Create a roster from a "database" worksheet that excludes dismissed students

    Thank you everyone for your help. I will work on it this afternoon. (Isn't it fun how there's always more than one way to do a thing?)

  7. #7
    Forum Expert Logit's Avatar
    Join Date
    12-23-2012
    Location
    North Carolina
    MS-Off Ver
    Excel 2019 Professional Plus - 2007 Enterprise
    Posts
    7,442

    Re: Create a roster from a "database" worksheet that excludes dismissed students

    You are welcome. Let us know how it turns out.

  8. #8
    Registered User
    Join Date
    06-22-2017
    Location
    Kansas City, Missouri
    MS-Off Ver
    Excel 2016
    Posts
    6

    Talking Re: Create a roster from a "database" worksheet that excludes dismissed students

    I couldn't figure out how to macro, the pivot table worked, but was a little clunky for what I really wanted (the actual worksheet is miles bigger than my sample.
    The array solution worked incredibly well for me!!

    Thank you again everybody for all of your incredible help!

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

    Re: Create a roster from a "database" worksheet that excludes dismissed students

    Thanks for the feedback

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED. Thanks.
    Last edited by sandy666; 06-28-2017 at 05:22 PM.

+ 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: 1
    Last Post: 03-21-2017, 06:01 PM
  2. [SOLVED] Average Formula that excludes specific "zeros"
    By The Man With No Name in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 09-23-2015, 01:34 PM
  3. How to create automated rotation based roster for students
    By sriharsha4 in forum Excel General
    Replies: 2
    Last Post: 08-26-2015, 01:35 AM
  4. Replies: 1
    Last Post: 08-15-2014, 06:00 AM
  5. Formula that excludes cells if next column reads "away"
    By mr63249 in forum Excel - New Users/Basics
    Replies: 9
    Last Post: 11-23-2008, 10:53 PM
  6. "Dynamic" worksheet/database: 1 with data and 1 for presentation
    By hege11 in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 01-13-2008, 04:43 PM
  7. [SOLVED] RANK function to GRADE "A","B" students.
    By all4excel in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 12-12-2007, 10:22 AM

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