+ Reply to Thread
Results 1 to 16 of 16

Daily planner from rota

  1. #1
    Registered User
    Join Date
    03-07-2016
    Location
    Jersey, C.I.
    MS-Off Ver
    2016
    Posts
    8

    Daily planner from rota

    I am trying to work out a formula for excel I know what I want it to do just can't seem to figure out the correct way of putting it. I think it's an "if" formula.
    I'm trying to create a daily planner for staff working from a rota so if the staff member is working it picks them up in the planner and if they're not it won't, also I have morning shifts and afternoon shifts so the formula would need to recognise the difference. Can anyone help?
    Attached Files Attached Files
    Last edited by SeanBigger; 03-07-2016 at 07:05 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
    28,215

    Re: Daily planner from rota

    Have a look on the Web as there are free Excel planners available.

  3. #3
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.84 (24041420))
    Posts
    8,751

    Re: Daily planner from rota

    Please upload a sample of your workbook to the forum, Make sure you have removed any private information, remember this is a public forum and so available to anyone
    Would like to see an example of your data and also a manual mock up of the expected results you want to achieve.

    To attach a file to your post,
    click "Go advanced" (next to quick post),
    scroll down until you see "manage Attachments",
    click that and select "add files" (top right corner).
    click "select files" find your file, click "open" click "upload" click 'done" bottom right. click "submit reply"

    Once the upload is completed the file name will appear below the input boxes in this window.
    You can then close the window to return to the new post screen.
    Wayne
    if my assistance has helped, and only if you wish to , there is an "* Add Reputation" on the left hand side - you can add to my reputation here

    If you have a solution to your thread - Please mark your thread solved do the following: >
    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

  4. #4
    Registered User
    Join Date
    03-07-2016
    Location
    Jersey, C.I.
    MS-Off Ver
    2016
    Posts
    8

    Re: Daily planner from rota

    File now added

  5. #5
    Registered User
    Join Date
    03-07-2016
    Location
    Jersey, C.I.
    MS-Off Ver
    2016
    Posts
    8

    Re: Daily planner from rota

    File now added

  6. #6
    Registered User
    Join Date
    03-07-2016
    Location
    Jersey, C.I.
    MS-Off Ver
    2016
    Posts
    8

    Re: Daily planner from rota

    This ones better
    Attached Files Attached Files

  7. #7
    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
    28,215

    Re: Daily planner from rota

    More information needed:

    Start/end times of your morning/afternoon shifts

    Date on your Daily Planner PLUS Week number to determine sheet to extract data from.

    Who are managers? Entries in rows 4 & 5 ?

    Assume first table is AM and Second PM on Daily Planner

    Are "breaks" fixed times?
    Last edited by JohnTopley; 03-07-2016 at 07:25 AM.

  8. #8
    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
    28,215

    Re: Daily planner from rota

    ....

    Will there be more than one Daily planner e.g. one for each day of the week?

    Or a week's planning in one sheet?

    Looking more like a VBA (Macro) solution.

  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
    28,215

    Re: Daily planner from rota

    See attached as "prototype" VBA solution: logic needed for assigning to correct shifts as it currently puts everything in AM shift. I have modified some of the sheets.

    Please Login or Register  to view this content.
    Attached Files Attached Files

  10. #10
    Registered User
    Join Date
    03-07-2016
    Location
    Jersey, C.I.
    MS-Off Ver
    2016
    Posts
    8

    Re: Daily planner from rota

    This is great and in normal circumstances would work brilliantly. Is there any way this can be done with a non VBA/Macro option as going to be using in google sheets and it wont accept macros or VBA.

  11. #11
    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
    28,215

    Re: Daily planner from rota

    See the attached: sheets "Any Week" and "Planner Week 1 (2)"

    In "Any Week" I have taken the liberty of changing the layout and included a dropdown for "Position". There is a named range in Sheet2 called "Positions"

    In "Planner Week 1 (2)":

    Again slightly modified table:

    in A6

    =IFERROR(INDEX('Any Week'!$B$4:$B$52,SMALL(IF(INDEX('Any Week'!$H$4:$AB$52,,MATCH($B$3,'Any Week'!$I$2:$AB$2,0))>0,ROW($A$4:$A$50)-ROW($A$4)+1,""),ROWS($A$4:A4))),"")

    Enter with Ctrl+Shift+Enter (array formula)


    in B6

    =IFERROR(VLOOKUP($A6,'Any Week'!$B$4:$C$50,2,0),"")

    in C6

    =IFERROR(VLOOKUP($A6,'Any Week'!$B$4:$AB$52,MATCH($B$3,'Any Week'!$B$2:$AB$2,0)-1,0),"")

    in D6

    =IFERROR(VLOOKUP($A6,'Any Week'!$B$4:$AB$52,MATCH($B$3,'Any Week'!$B$2:$AB$2,0),0),"")

    Copy all formulas down the columns


    This simplification hopefully will make it Google compatible.
    Attached Files Attached Files

  12. #12
    Registered User
    Join Date
    03-07-2016
    Location
    Jersey, C.I.
    MS-Off Ver
    2016
    Posts
    8

    Re: Daily planner from rota

    This is excellent I'm now trying to create a 53 week rota with individual sheets for each week. Do I need a separate planner for each week or can there just be on planner for all. I have copied the two sheets into a separate workbook and am now having difficulty in getting it to work. please see attached
    Attached Files Attached Files

  13. #13
    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
    28,215

    Re: Daily planner from rota

    Hello again! I thought this had died!

    See the attached which has the following changes:

    A blank sheet called "Rota WK n": this a "dummy" and does not need to be completed.

    A sheet called "Planner Template" which has all the formulae inserted.

    For a new weekly plan:

    Copy the "Planner Template" and rename as "Planner Wk n" where n is the week number. Change the Week in B5 and then do a "Find/Replace" of "Rota WK n" with "Rota Wk 5" if you are doing week 5. (Hence the need for the dummy "Rota Wk n" sheet to avoid Excel looking elsewhere for "Rota Wk n").

    "Planner WK 2" has already been set up.

    Re a yearly planner: yes that is possible but it will obviously need new formulae: and I haven't investigated what that involves.
    Attached Files Attached Files
    Last edited by JohnTopley; 04-14-2016 at 09:14 AM.

  14. #14
    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
    28,215

    Re: Daily planner from rota

    The attached has "Planner Wk n" based on "Year Rota".

    Each week is a block of 30 columns: there are two weeks in the sheet.

    Change week number ( 1 or 2) and dates to get results.

    In A5

    =IFERROR(VLOOKUP($B5,OFFSET('Year Rota'!$B$5,,($B$1-1)*30,50,2),2,0),"")

    in B5

    =IFERROR(INDEX(OFFSET('Year Rota'!$B$5,0,($B$1-1)*30,50,1),SMALL(IF(INDEX(OFFSET('Year Rota'!$H$5,,($B$1-1)*30,50,22),,MATCH($B$2,OFFSET('Year Rota'!$I$3,0,($B$1-1)*30,1,21),0))>0,ROW($B$5:$B$50)-ROW($B$5)+1,""),ROWS($B$5:B5))),"")

    in C5

    =IFERROR(VLOOKUP($B5,OFFSET('Year Rota'!$B$5,,($B$1-1)*30,50,21),MATCH($B$2,OFFSET('Year Rota'!$B$3,,($B$1-1)*30,1,21),0)-1,FALSE),"")

    in D5

    =IFERROR(VLOOKUP($B5,OFFSET('Year Rota'!$B$5,,($B$1-1)*30,50,21),MATCH($B$2,OFFSET('Year Rota'!$B$3,,($B$1-1)*30,1,21),0),FALSE),"")
    Attached Files Attached Files

  15. #15
    Registered User
    Join Date
    03-07-2016
    Location
    Jersey, C.I.
    MS-Off Ver
    2016
    Posts
    8

    Re: Daily planner from rota

    Thanks for all your help so far!!! So this still won't die!! I've got a template sheet of planner and real sheet of planner the template works fine but the real one will only show data for every other day when entering the date my eyes are going blurry from checking formulas to make sure theyre all correct which they are so i'm a little confused to say the least.
    I attach the file I hope you can help to put this to bed once and for all!!
    Attached Files Attached Files

  16. #16
    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
    28,215

    Re: Daily planner from rota

    The problem was the inconsistent ranges in this formula:

    =IFERROR(INDEX('Any Week'!$B$4:$B$52,SMALL(IF(INDEX('Any Week'!$H$4:$AB$52,,MATCH($B$2,'Any Week'!$I$2:$AB$2,0))>0,ROW($B$4:$B$52)-ROW($B$4)+1,""),ROWS($B4:B$4))),"")

    The above is the correct one.

    In you your formula the ROW ranges were $B$3:$B$38 / B3 / $B$3:B3
    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. Replies: 0
    Last Post: 04-07-2015, 11:39 PM
  2. Yearly and daily planner help
    By Matt6564 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 08-29-2014, 06:46 AM
  3. Creating Dates for a Daily Planner
    By sdunbar in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-30-2012, 01:15 AM
  4. Daily Planner that tracks client hours
    By 1981Jamie in forum Excel General
    Replies: 1
    Last Post: 02-05-2012, 02:33 AM
  5. [SOLVED] is a daily planner best in Word or Excel?
    By theresa in forum Excel General
    Replies: 1
    Last Post: 04-20-2006, 11:10 AM
  6. [SOLVED] Rota's and Daily Shift Pattern's - Help !!!
    By Scott Cheesman in forum Excel General
    Replies: 3
    Last Post: 03-31-2005, 10:06 PM
  7. [SOLVED] How do I create an hourly daily planner?
    By zed in forum Excel - New Users/Basics
    Replies: 2
    Last Post: 03-31-2005, 01:11 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