+ Reply to Thread
Results 1 to 4 of 4

Thread: Determining Whether a Worked Shift Was Morning, Afternoon or Night

  1. #1
    Valued Forum Contributor
    Join Date
    12-07-2004
    Posts
    598

    Determining Whether a Worked Shift Was Morning, Afternoon or Night

    Problem:

    We want to use the sign-in times from column A to determine whether a person was starting a morning, an afternoon, or a night shift.
    For times before 12:00, the formula should return \"Morning Shift\".
    For times between 12:00 and 16:00 the formula should return \"Afternoon Shift\".
    For times after 16:00, the formula should return \"Night Shift\".

    Solution:

    Use the IF and TIME functions as shown in the following formula:
    =IF(A2

  2. #2
    Registered User
    Join Date
    01-24-2007
    Posts
    1

    Exclamation Where's the rest of this?

    Where's the rest of the tip? I've been looking for this one tip for days and now that I finally find it, it's incomplete. Can the rest be posted up? Or what do I need to do to see the rest?

    Thanks

  3. #3
    "Eagle Eyed" Forum Moderator oldchippy's Avatar
    Join Date
    02-14-2005
    Location
    Worcester, UK
    MS-Off Ver
    Excel 2007 (Work) and 2007 (Home)
    Posts
    7,130
    You may have to buy the book to find the answer, it's on page 151, see link

    http://www.exceltip.com/pl-f1ff_contents

    or you could place your question in this forum?
    oldchippy
    -------------


    If you are happy with the help you have received, please click the blue scales icon in the blue bar of the post.

    Click here >>> Top Excel links for beginners to Experts

    Forum Rules >>>Please don't forget to read these

  4. #4
    Forum Moderator daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2007
    Posts
    10,062
    Don't know what the tip actually says but this is a fairly basic IF formula

    =IF(A2>=2/3,"Night",IF(A2>=0.5,"Afternoon","Morning"))&" Shift"

    ..or with LOOKUP

    =LOOKUP(HOUR(A2),{0,12,16},{"Morning","Afternoon","Night"})&" Shift"

+ 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.2.0