+ Reply to Thread
Results 1 to 7 of 7

Formula Query for Staff Rota

  1. #1
    Registered User
    Join Date
    07-18-2013
    Location
    Liverpool
    MS-Off Ver
    Excel 2010
    Posts
    28

    Formula Query for Staff Rota

    Hi

    I wonder if someone could help me. I have compiled a staff rota from a website tutorial but have personalised it so I can use at our care home using a series of drop down boxes for each shift on each cell. What I would like is that so not to put someone on a night shift then a day the next day Excel alerts me (comes up red etc) so I can amend it as no one can physically work a night shift then a day shift the next day! This is a common error when doing the rotas and this would be great if someone could provide a solution.

    Rota attached.

    Thanks in advance

    Bigtiger
    Attached Files Attached Files

  2. #2
    Forum Expert RobertMika's Avatar
    Join Date
    06-22-2009
    Location
    Haverhill, UK
    MS-Off Ver
    Excel 2003-13
    Posts
    1,530

    Re: Formula Query for Staff Rota

    This is formula for CF:
    =OR(AND(LEFT(B6,1)="N",LEFT(C$6,1)="N"),AND(LEFT(B6,1)="d",LEFT(C6,1)="d"))
    Rota (REVISED).xlsx
    If you are http://www.excelforum.com/image.php?type=sigpic&userid=125481&dateline=1392355029happy with the results, please add to the contributor's
    reputation by clicking the reputation icon (star icon).




    If you are satisfied with the solution(s) provided, please mark your thread as Solved.
    Select Thread Tools-> Mark thread as Solved.
    To undo, select Thread Tools-> Mark thread as Unsolved.
    http://www.excelaris.co.uk

  3. #3
    Registered User
    Join Date
    07-18-2013
    Location
    Liverpool
    MS-Off Ver
    Excel 2010
    Posts
    28

    Re: Formula Query for Staff Rota

    Hi, thanks for helping me with this. Unfortunately when I put in a night shift then a day the next day it doesn't come up red. On therota you kindly sent back there were two day shifts highlighted red instead ... or am I reading this wrong?

    Regards

    Bigtiger

  4. #4
    Forum Expert RobertMika's Avatar
    Join Date
    06-22-2009
    Location
    Haverhill, UK
    MS-Off Ver
    Excel 2003-13
    Posts
    1,530

    Re: Formula Query for Staff Rota

    That's the correct format in B6 then copy to ohter cells:
    =OR(AND(LEFT(B6,1)="N",LEFT(C6,1)="D"),AND(LEFT(B6,1)="D",LEFT(A6,1)="N"),AND(LEFT(B6,1)="N",LEFT(A6,1)="D"),AND(LEFT(D6,1)="D",LEFT(C6,1)="N")

  5. #5
    Registered User
    Join Date
    07-18-2013
    Location
    Liverpool
    MS-Off Ver
    Excel 2010
    Posts
    28

    Re: Formula Query for Staff Rota

    Forgive me but I do not understand what you mean. What my rota needs is, if I say put a night shift in on a Monday then a day shift on a Tuesday then that day shift would come up red to alert me that I cant put this person on these two shifts as they have just done a night shift. At the moment it is highlighted red only when I put in consecutive day shifts.

    I hope that makes sense

    Regards

    Bigtiger :-)

  6. #6
    Forum Expert RobertMika's Avatar
    Join Date
    06-22-2009
    Location
    Haverhill, UK
    MS-Off Ver
    Excel 2003-13
    Posts
    1,530

    Re: Formula Query for Staff Rota

    Rota v1.xlsx
    Try this

  7. #7
    Registered User
    Join Date
    07-18-2013
    Location
    Liverpool
    MS-Off Ver
    Excel 2010
    Posts
    28

    Re: Formula Query for Staff Rota

    Thank you so much. Just one slight thing, it also highlights red when I put in a day shift before a night shift. Its just the night before the day that needs to be highlighted red.

    Thanks again

    Bigtiger

+ 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. [SOLVED] Formula for male and female staff on rota
    By bigtiger1 in forum Excel Formulas & Functions
    Replies: 16
    Last Post: 08-06-2013, 07:03 AM
  2. [SOLVED] A formula to work out hours on a staff rota
    By bigtiger1 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 07-30-2013, 07:23 PM
  3. Staff Rota
    By parkey5 in forum Excel General
    Replies: 5
    Last Post: 07-14-2013, 04:16 AM
  4. Replies: 0
    Last Post: 06-12-2013, 03:33 PM
  5. Staff rota
    By goofy14you in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-12-2007, 04:13 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