Consulting

Results 1 to 5 of 5

Thread: Time Elapsed

  1. #1
    VBAX Contributor
    Joined
    Dec 2006
    Posts
    193
    Location

    Time Elapsed

    I am working on a shift roster and need help with a formula to determine the following:
    A person starts work at 15:00 hrs (3pm) and works untill 23:00 (11pm ),all hours worked after 18:00 ( 6pm) attract a night shift allowance.I can do the formula to give me total Hrs worked but not the formula to tell me how many Hrs worked after 18:00 (6pm)

    Any pointers
    Thks

  2. #2
    Distinguished Lord of VBAX VBAX Grand Master Bob Phillips's Avatar
    Joined
    Apr 2005
    Posts
    25,453
    Location
    =MAX(B17-"18:00:00",0)*24
    ____________________________________________
    Nihil simul inventum est et perfectum

    Abusus non tollit usum

    Last night I dreamed of a small consolation enjoyed only by the blind: Nobody knows the trouble I've not seen!
    James Thurber

  3. #3
    VBAX Contributor
    Joined
    Aug 2006
    Location
    Hampshire, UK
    Posts
    140
    Location
    Perhaps:

    =MAX(0,A1-"18:00:00")

    where A1 contains the finish time. Format this formula cell as time ie hh:mm.

    Richard

  4. #4
    VBAX Master stanl's Avatar
    Joined
    Jan 2005
    Posts
    1,141
    Location
    does this help?

    http://www.mvps.org/dmcritchie/excel/elapsed.htm

    without knowing how you have your times set up, it is difficult to give a direct answer. .02

  5. #5

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •