+ Reply to Thread
Results 1 to 5 of 5

Calculate Time worked

  1. #1
    Registered User
    Join Date
    01-08-2013
    Location
    Alaska, USA
    MS-Off Ver
    Excel 2010
    Posts
    2

    Calculate Time worked

    I know this question is all over excel forums but I couldn't quite find one for my needs. I am looking to see how much time was worked (or missed more importantly) that includes times for lunch. Most formulas i've found assume there is a fixed time for lunch. Below is an example of data I would be using.


    Start 7:38 AM
    Lunch Start 11:30 AM
    Lunch End 1:05 PM
    End 4:30 PM
    Last edited by jswanson1; 01-11-2013 at 09:58 PM.

  2. #2
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    25,426

    Re: Calculate Time worked

    Assuming those times are in cells A2 to D2, you can use this:

    =(D2-C2+B2-A2)*24

    Format the cell as number with 2 dp, and the answer will be in hours.

    Hope this helps.

    Pete

  3. #3
    Forum Expert Kevin UK's Avatar
    Join Date
    12-07-2010
    Location
    Radstock, Somerset
    MS-Off Ver
    365
    Posts
    1,922

    Re: Calculate Time worked

    Hi jswanson1

    Assuming your data is in A1:D2. In E2.

    1. For time: =MOD((D2-C2)+(B2-A2),1) format cells as [h]:mm. The MOD is if the times are span 2 days ie: Start 18:00 & Finish 07:00
    2. For decimal time: =MOD((D2-C2)+(B2-A2),1)*24, format cells as number & 2 decimal places.
    Regards Kevin


    Merged Cells (They are the work of the devil!!!)

  4. #4
    Registered User
    Join Date
    01-08-2013
    Location
    Alaska, USA
    MS-Off Ver
    Excel 2010
    Posts
    2

    Re: Calculate Time worked

    Wow thank you guys! If I would have known how quick the response was I wouldn't have dinked around with it until 4:58 on a Friday!

  5. #5
    Forum Expert Kevin UK's Avatar
    Join Date
    12-07-2010
    Location
    Radstock, Somerset
    MS-Off Ver
    365
    Posts
    1,922

    Re: Calculate Time worked

    Hi jswanson1

    Thanks for the feed back.

+ 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.6.0 RC 1