+ Reply to Thread
Results 1 to 7 of 7

Formula to calculate hours worked

  1. #1
    Forum Contributor
    Join Date
    06-23-2005
    Posts
    253

    Formula to calculate hours worked

    Need formula for cell D4 that returns the hours (in whole hours & decimal of hours) by subtracting cell B4 (end time) from cell A4 (start time) both of which are formatted Time (1:30 PM) and subtracting cell C4 (Lunch time). For Example:

    _|___A____|____B___|___C__|___D___
    3|StartTime|End Time | Lunch_|Hrs Wkd
    4|_8:00 AM| 5:00 PM_|__1.25_|__7.75

    Thanks a lot. mikeburg

  2. #2
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678
    =(B1 - A1 - "1:15") * 24

  3. #3
    Forum Contributor
    Join Date
    06-23-2005
    Posts
    253
    Thanks for your help. However, with the formula, I get the answer 1.15 instead of 7.75. Do I need to format cell D4 any particular way that may change the result? mikeburg

  4. #4
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678
    Nope.

    Can you post an example workbook?

  5. #5
    Forum Contributor
    Join Date
    01-05-2004
    Location
    Helsinki, Finland
    Posts
    100
    How about

    =24*(B4-A4-C4/24) and format D4 as General?

    - Asser

  6. #6
    Registered User
    Join Date
    04-18-2008
    Posts
    80
    how about =((B2-A2)-C2)*24 and format D2 as general, C2 as custom h:mm, and A2 & B2 as time 1:30PM
    Last edited by TIPPYS; 05-05-2008 at 04:19 PM.

  7. #7
    Forum Contributor
    Join Date
    06-23-2005
    Posts
    253
    it works! thanks a million mikeburg

+ 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