+ Reply to Thread
Results 1 to 7 of 7

shift help

  1. #1
    Forum Contributor
    Join Date
    01-21-2017
    Location
    England
    MS-Off Ver
    2007
    Posts
    409

    shift help

    Hi I have this document where column A is the persons name and the columns B-E represent what job they do

    What I want to be able to do is put a persons name in I4 and another in J4 and if the can both same job (i.e CT) I would like k4 come up with "error".

    shift .jpg

    Note that some people can do more than one job.

    Many thanks
    Last edited by Throughstream; 03-05-2017 at 06:44 PM.

  2. #2
    Forum Expert
    Join Date
    08-12-2012
    Location
    Sydney, Australia
    MS-Off Ver
    Excel 2010
    Posts
    5,636

    Re: shift help

    Attach a sample workbook.
    No one likes to data entry especially when trying to help someone else

    Q:
    so p5 and p6 wont trigger error? because one on CT and other on cardiac right?
    meaning any person with 2 job types will automatically not trigger error?
    is this correct?
    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.

  3. #3
    Forum Contributor
    Join Date
    01-21-2017
    Location
    England
    MS-Off Ver
    2007
    Posts
    409

    Re: shift help

    Hopefully that uploaded
    Attached Files Attached Files

  4. #4
    Forum Contributor
    Join Date
    01-21-2017
    Location
    England
    MS-Off Ver
    2007
    Posts
    409

    Re: shift help

    Quote Originally Posted by humdingaling View Post
    Attach a sample workbook.
    No one likes to data entry especially when trying to help someone else

    Q:
    so p5 and p6 wont trigger error? because one on CT and other on cardiac right?
    meaning any person with 2 job types will automatically not trigger error?
    is this correct?
    Hi yes they would trigger the 'error' as they can do either cardiac or ct so they can't be with anyone that could do cardiac or ct or both. Some people do nothing so they could do with anyone. Hope that makes sence, I've attached a sampled above. The idea behind this is for allocating night shifts, I can't have two people away from the department that can do the same job area as they need to be in during the day.

    Is it possible as a formulae rather than a macro

    Cheers, any help is much appriciated

    Dave
    Last edited by Throughstream; 03-05-2017 at 08:02 PM.

  5. #5
    Forum Expert
    Join Date
    08-12-2012
    Location
    Sydney, Australia
    MS-Off Ver
    Excel 2010
    Posts
    5,636

    Re: shift help

    using named ranges
    Shift1 =OFFSET(Sheet1!$B$1,MATCH(Sheet1!$H$4,Sheet1!$A$2:$A$37,0),0,1,4)
    Shift2 =OFFSET(Sheet1!$B$1,MATCH(Sheet1!$I$4,Sheet1!$A$2:$A$37,0),0,1,4)

    Formula to go into J4
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    From testing seems to work

    ps if you enter something into shift 1 or 2 that doesnt exist...Error = N
    dont know if this is going to be an issue or not.
    you can change input with DV cells if this an issue

    that would be much easier than trying to fiddle with the formula
    Attached Files Attached Files
    Last edited by humdingaling; 03-05-2017 at 09:23 PM.

  6. #6
    Forum Contributor
    Join Date
    01-21-2017
    Location
    England
    MS-Off Ver
    2007
    Posts
    409

    Re: shift help

    Hi that's perfect nice one

  7. #7
    Forum Expert
    Join Date
    08-12-2012
    Location
    Sydney, Australia
    MS-Off Ver
    Excel 2010
    Posts
    5,636

    Re: shift help

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED. Thanks.

+ 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: 4
    Last Post: 04-27-2021, 11:49 AM
  2. Caculating # of Day Shift Hrs & Night Shift Hrs of a Given Shift
    By DaKhoda in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 04-29-2014, 08:36 PM
  3. [SOLVED] If criteria met: delete cell and shift to the left but shift only over a certain range
    By olivierpbeland in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 11-11-2013, 07:44 AM
  4. Shift Rota/Calendar 5 crews Rotating Shift
    By Flynn Rider in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 10-07-2013, 08:03 AM
  5. Need Help on Time Sheet Formula (Day Shift OK/Night Shift=Problem)
    By jomapac in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 05-18-2013, 02:26 AM
  6. Replies: 4
    Last Post: 02-06-2013, 04:21 AM
  7. Calculating Hours Worked from Shift Begin and Shift End
    By lukeflegg in forum Excel General
    Replies: 5
    Last Post: 08-12-2011, 03:25 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