+ Reply to Thread
Results 1 to 5 of 5

Roster Format: Populating an area from a list of Weeks...

Hybrid View

  1. #1
    Registered User
    Join Date
    11-09-2019
    Location
    Australia
    MS-Off Ver
    Microsoft 365 MSO.
    Posts
    5

    Question Roster Format: Populating an area from a list of Weeks...

    So... I'm still learning A LOT about functions and formulas and all that and it's amazing and love it...

    However the one thing I want to do to make a pre-made Managers Schedule simplified for printing isn't quite going anywhere.

    Long story short (I have some notes in the file) - I've understood I needed neat data in columns generally to make lists easier, which count the Period/Week headers I have out (it took me ages to realise trying to remove the blank cells from the list were going to work at all with this setup). I've created a sheet that can be hidden to counter that issue, easy done. But now it's matching the Period - Week # to the potential VLOOKUP or MATCH or INDEX or all of the above, that I'm struggling with.

    So question is... Is it doable and I just need the dozens of explanations I've read on here and tried over and over to be explained in a more simpler term... Or if I want to have the list provide me with the week selected's information, I need to use the hidden sheet to store a heap of information and then send it over to the page to populate the correct info where needed?

    If it is the latter, what is the best way of doing it so that the functions and formulas required won't be slow in retrieving the information and "lag" for the lack of a better term right now on any computer it's worked on. Tables? Certain functions? Any information helps!
    Cheers in advance,
    Wayne
    Attached Files Attached Files

  2. #2
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 365 version 2501
    Posts
    18,820

    Re: Roster Format: Populating an area from a list of Weeks...

    A good data set up will make this easier.
    The transpose table was produced by copying A7:O11, selecting cell Q15 and then pasting transpose.
    The PQTable (green [Dates]:[Assignment]) was produced using Get & Transform > Unpivot other columns
    The Week column is populated using: =NETWORKDAYS.INTL(DATE(YEAR([@Dates])-(NETWORKDAYS.INTL(DATE(YEAR([@Dates]),7,1),[@Dates],"0111111")<1),7,1),[@Dates],"0111111")
    The Quarter column is populated using: =ROUNDUP([@Week]/13,0)
    The Year column is populated using: =IF(MONTH([@Dates])>7,YEAR([@Dates]),YEAR([@Dates])-1)
    After the table is set up it may be appended like any other table (select the last cell in the Year column and press the Tab key).
    On the Printable sheet, I suggest typing the week number (cell B4) as opposed to a long drop down
    Cell D5 is populated using: =INDEX(PQTable[Dates],MATCH(B4,PQTable[Week],0))
    Cells E5:J5 are populated using: =D5+1
    Cell D2 is populated using: ="Quarter "&INDEX(PQTable[Quarter],MATCH(D5,PQTable[Dates],0))&" - "&INDEX(PQTable[Year],MATCH(D5,PQTable[Dates],0))
    Cell D3 is populated using: ="Week "&B4
    Cells D7:J11 are populated using:
    Formula: copy to clipboard
    =INDEX(PQTable[Assignment],AGGREGATE(15,6,(ROW(PQTable[Assignment])-ROW(PQTable[[#Headers],[Assignment]]))/(PQTable[Dates]=D$5)/(PQTable[Position]=$C7),1))

    Let us know if you have any questions.
    Attached Files Attached Files
    Consider taking the time to add to the reputation of everybody that has taken the time to respond to your query.

  3. #3
    Forum Expert
    Join Date
    09-30-2019
    Location
    Chiangmai, Thailand
    MS-Off Ver
    Office 2016, Excel 2019
    Posts
    1,234

    Re: Roster Format: Populating an area from a list of Weeks...

    I've rebuild your hidden sheet with INDEX and fix interval of column for each period

    I7
    =INDEX('2020; Jan-June'!$3:$3,1,Hidden2!$H7)
    while H7 = 5 (or E column in your data sheet) and increment by 7 in each row

    Then create a list for drop down in
    C7
    =MID(CELL("Filename",A1),FIND("]",CELL("Filename",A1))+1,100)&"!"&SUBSTITUTE(CELL("Address",$I$7)&":"&CELL("Address",OFFSET($I$7,-1+COUNTA(I:I)-COUNTIF(I:I,0),,)),"$","")
    This will be use via INDIRECT in Data validation.

    The rest is build a table for your printable (new) sheet as a table.


    Regards.
    Attached Files Attached Files

  4. #4
    Registered User
    Join Date
    11-09-2019
    Location
    Australia
    MS-Off Ver
    Microsoft 365 MSO.
    Posts
    5

    Wink Re: Roster Format: Populating an area from a list of Weeks...

    Hey JeteMc and Menem,

    Thanks a heap to both of you!!!

    I think my biggest issue - being new to formulas and functions that aren't as basic as an = sign or a =Sum here or there - is that I had no idea how to really start it all off, so thank you both for giving me the tools/formulas/ideas to progress!

    So far from what I've looked at, both will be amazing assistance in me getting this done this year instead of what I thought would be in three if I was trying to do it myself!

    [LIST][*]Menem - The little I've toyed with it, so far looks workable, thanks a heap for the help!

    [*]JeteMc - I have spent a good hour or so going through your steps on how you used Power Query for the PQTable, it was the first time I'd ever touched that and although I wasn't able to successfully recreate that table knowing all it's steps, I'm happy to have tried!

    Your setup is great too, but unless I missed something, it's not a automated formula . Those tables prevent the selected print week from updating if there's a change of shifts, or whatever else may happen.

    After re-reading my initial post here, I apologise for not being clearer on that part too, as it's an important detail. Either way, I have learnt a lot from my play with the Get & Transform or "Get Data" as it says on my Excel. Thank you again!

  5. #5
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 365 version 2501
    Posts
    18,820

    Re: Roster Format: Populating an area from a list of Weeks...

    I don't know how far along you are in the process, but I was basically setting this up for you as if you had just started.
    I have cleaned up the file a bit so that you would just need to continue inputting date, position and assignment into the InputTable starting with row 72.
    The one thing that may need to be done is to find a way to calculate "Period" (I don't follow how that works).
    That said I am happy that menem's solution works for your purposes. Thank You for the feedback and for marking the thread as 'Solved'. I hope that you have a blessed day.
    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)

Similar Threads

  1. Auto populating calendar via an adjustable roster
    By BlueSmoke in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 11-24-2017, 08:14 AM
  2. Populating roster from worksheets
    By reynastus2 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-11-2014, 10:21 PM
  3. Assistance in auto populating a roster from another excel document.
    By recoil55 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 09-24-2014, 06:31 PM
  4. Populating dates from set roster patterns
    By mtracy89 in forum Excel General
    Replies: 0
    Last Post: 02-16-2014, 07:36 PM
  5. Replies: 2
    Last Post: 12-08-2011, 08:02 PM
  6. Populating roster based on multiple conditions
    By kakron21 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 05-02-2011, 03:31 AM
  7. [SOLVED] Populating list box with number format data
    By Francis Brown in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 12-12-2005, 08:10 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