+ Reply to Thread
Results 1 to 8 of 8

Double over time formula help?

  1. #1
    Registered User
    Join Date
    11-07-2011
    Location
    Metro Vancouver
    MS-Off Ver
    Excel 2007
    Posts
    5

    Question Double over time formula help?

    Hi so I'm an intermediate level excel user and I have to calculate double over time >>>

    The formula I have right now is to calculate over time after 8 hours

    D1 is starting time and E1 is ending time (24 hour clock)

    =IF((E1-D1+(E1<D1))*24>8, (E1-D1+(E1<D1))*24-8,0)

    I have to make this DOUBLE over time, and I'm having a lot of trouble...

    Any suggestions?

  2. #2
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2016
    Posts
    14,675

    Re: Double over time formula help?

    The formula you quoted calculates the overtime hours - what do you need to do differently - examples always help.........
    Audere est facere

  3. #3
    Registered User
    Join Date
    11-07-2011
    Location
    Metro Vancouver
    MS-Off Ver
    Excel 2007
    Posts
    5

    Re: Double over time formula help?

    hmm so right now that formula calculates regular over time

    =IF((E1-D1+(E1<D1))*24>8, (E1-D1+(E1<D1))*24-8,0)

    so start time 12:00 (cell D1) | end time 9:30 (cell E1) | over time = 1.5 hours


    I need it to be doubled...

    start time 12:00 (cell D1) | end time 9:30 (cell E1) | over time = 3 hours (double over time)


    Sorry does that make more sense?

  4. #4
    Registered User
    Join Date
    11-07-2011
    Location
    Metro Vancouver
    MS-Off Ver
    Excel 2007
    Posts
    5

    Re: Double over time formula help?

    sorry its in 24 hour time so

    so start time 12:00 (cell D1) | end time 21:30 (cell E1) | over time = 1.5 hours

  5. #5
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2016
    Posts
    14,675

    Re: Double over time formula help?

    Just multiplying the whole thing by 2 should do it

    =IF((E1-D1+(E1<D1))*24>8, (E1-D1+(E1<D1))*24-8,0)*2

    or this version should give the same result

    =MAX(MOD(E1-D1,1)*24-8,0)*2

  6. #6
    Registered User
    Join Date
    11-07-2011
    Location
    Metro Vancouver
    MS-Off Ver
    Excel 2007
    Posts
    5

    Re: Double over time formula help?

    It is giving me a value of 0:00...

    I will attach a worksheet maybe it will give you a better idea
    Attached Files Attached Files

  7. #7
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2016
    Posts
    14,675

    Re: Double over time formula help?

    It works for me.....

    either this formula

    =IF((E2-D2+(E2<D2))*24>8, (E2-D2+(E2<D2))*24-8,0)*2

    or this one

    =MAX(MOD(E2-D2,1)*24-8,0)*2

    either way format cell to show number and you should see 3.0

  8. #8
    Registered User
    Join Date
    11-07-2011
    Location
    Metro Vancouver
    MS-Off Ver
    Excel 2007
    Posts
    5

    Re: Double over time formula help?

    huh weird... it works now lol

    THANK YOU THANK YOU THANK YOU :D

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

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