+ Reply to Thread
Results 1 to 4 of 4

Auto populate data for Roster

  1. #1
    Forum Contributor
    Join Date
    05-07-2007
    Location
    Singapore
    MS-Off Ver
    2006/2016
    Posts
    174

    Post Auto populate data for Roster

    Based on my example table, i need a way to extract the data from the roster, so that i would be able to automatically populate the yellow areas of the 'AMPM' sheet with the names of the people working the respective shift.

    An example of a desired outcome is also included

    Thanks for the help in advance!
    Attached Files Attached Files
    Last edited by lordfa9; 04-17-2010 at 10:27 PM.

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Auto populate data for Roster

    In A4 of AMPM sheet:

    Please Login or Register  to view this content.
    confirmed with CTRL+SHIFT+ENTER not just ENTER, then copied down and across the top table.

    in A12:

    Please Login or Register  to view this content.

    confirmed with CTRL+SHIFT+ENTER not just ENTER, then copied down and across the bottom table.
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  3. #3
    Forum Contributor
    Join Date
    05-07-2007
    Location
    Singapore
    MS-Off Ver
    2006/2016
    Posts
    174

    Re: Auto populate data for Roster

    Quote Originally Posted by NBVC View Post
    In A4 of AMPM sheet:

    Please Login or Register  to view this content.
    confirmed with CTRL+SHIFT+ENTER not just ENTER, then copied down and across the top table.

    in A12:

    Please Login or Register  to view this content.

    confirmed with CTRL+SHIFT+ENTER not just ENTER, then copied down and across the bottom table.
    ok i'm gonna try to dissect this:

    Please Login or Register  to view this content.
    this is the day (in this case, Monday) along with the shift type? So if i want wednesday it would be ('Daily Roster'!C$2:C$X, "AM")

    Please Login or Register  to view this content.
    I assume this part is where the names are?

    also would X in the above 2 examples be the last populated row?

    Please Login or Register  to view this content.
    not sure what the rest of this means (looks like a way to check the next available row) but i assume the only thing i need to change is the X value right?
    Last edited by lordfa9; 03-29-2010 at 09:16 AM. Reason: trying to get the formatting right >.<

  4. #4
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Auto populate data for Roster

    Yes, all you should need to do is replace the X with last row populated in the lookup table.

    Then confirm the formula with CTRL+SHIFT+ENTER keys hit all together... then copy down and across.

    Here is an explanation I gave a while back on this formula construct:

    http://www.excelforum.com/excel-work...-question.html

    Note though.. this is an array formula and can be resource intensive, if it is used in many cells of your spreadsheet, or if the lookup table is very large.

    In those cases, there are alternatives, but they would involve use of helper columns to reduce the workload....
    Last edited by NBVC; 03-29-2010 at 09:20 AM.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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