+ Reply to Thread
Results 1 to 4 of 4

Class Rosters: How to populate automatically with a code...

  1. #1
    Registered User
    Join Date
    05-22-2012
    Location
    Palm Springs, CA
    MS-Off Ver
    Excel 2007
    Posts
    4

    Class Rosters: How to populate automatically with a code...

    I have a list of 214 names in column A. Column B has a room number that students belong in next to each name. I need to create a list of names for each room number in columns C, D and E. When I put a number in column B next to the name of a student in column A how can I get the lists to populate automatically with student names in columns C, D & E? There must be a way!

  2. #2
    Forum Expert ben_hensel's Avatar
    Join Date
    01-26-2012
    Location
    Northeast USA
    MS-Off Ver
    Office 365
    Posts
    2,043

    Re: Class Rosters: How to populate automatically with a code...

    The fastest way is...

    Highlight all the values (or just highlight columns A & B).

    Then, one of two things:

    1) In the ribbon, go to the Data tab, and in the Sort & Filter tab, click Filter.

    2) Ctrl + Shift + L

    This will allow you to filter column A to only display selected values from column B--if you only pick one room number, it will display only the names in column A that match that number in column B.

    Then you could just copypasta from column A to C, D, and E. That wouldn't dynamically update with column A though....

    Because you have your index value to the right of the lookup value, VLOOKUP is not going to be useful in its default... and you want a bunch of values anyway so we'd have to do some kind of exclusion going down the column... anyway, I'm going to go play with excel for a bit, but for now, I know filtering will work.
    Last edited by ben_hensel; 05-22-2012 at 01:38 PM.

  3. #3
    Registered User
    Join Date
    05-22-2012
    Location
    Palm Springs, CA
    MS-Off Ver
    Excel 2007
    Posts
    4

    Re: Class Rosters: How to populate automatically with a code...

    Quote Originally Posted by ben_hensel View Post
    The fastest way is...

    Highlight all the values (or just highlight columns A & B).

    Then, one of two things:

    1) In the ribbon, go to the Data tab, and in the Sort & Filter tab, click Filter.

    2) Ctrl + Shift + L

    This will allow you to filter column A to only display selected values from column B--if you only pick one room number, it will display only the names in column A that match that number in column B.

    Then you could just copypasta from column A to C, D, and E. That wouldn't dynamically update with column A though....

    Because you have your index value to the right of the lookup value, VLOOKUP is not going to be useful in its default... and you want a bunch of values anyway so we'd have to do some kind of exclusion going down the column... anyway, I'm going to go play with excel for a bit, but for now, I know filtering will work.

    Thank you for your suggestion. I could not get VLOOOKUP to work and I also tried DGET functions. Ideally, I would like to create a template that would automatically distribute (copy) names to a room number at the top of each column (C,D,E) as they were entered into column A. Would VLOOKUP work if I switched the name and room number colums (A & B)?

  4. #4
    Forum Expert Cutter's Avatar
    Join Date
    05-24-2004
    Location
    Ontario,Canada
    MS-Off Ver
    Excel 2010
    Posts
    6,451

    Re: Class Rosters: How to populate automatically with a code...

    See if the attached is what you want
    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)

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