+ Reply to Thread
Results 1 to 3 of 3

Need Help Calculating Total Hours in Timesheet

  1. #1
    Registered User
    Join Date
    01-23-2018
    Location
    California
    MS-Off Ver
    2016
    Posts
    1

    Question Need Help Calculating Total Hours in Timesheet

    We are trying to calculate the total number of on-duty hours on a time sheet (attached), where several breaks are taken during each shift.

    We found a formula that works for the first four columns, but need to expand it to more columns:

    =IFERROR(IF(COUNT(Table1[@[Start 1]:[Stop 2]])=4,(IF([@[Stop 2]]<[@[Start 1]],1,0)+[@[Stop 2]])-[@[Start 2]]+[@[Stop 1]]-[@[Start 1]],IF(AND(LEN([@[Start 1]])<>0,LEN([@[Stop 2]])<>0),(IF([@[Stop 2]]<[@[Start 1]],1,0)+[@[Stop 2]])-[@[Start 1]],0))*24,0)

    It is important that hours carrying over to the next day also get counted properly (i.e. 11:00pm - 1:30 am).

    Any ideas would be appreciated.
    Attached Files Attached Files
    Last edited by unkellsam; 01-23-2018 at 04:57 PM.

  2. #2
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,598

    Re: Need Help Calculating Total Hours in Timesheet

    Just use helper columns and subtract start from stop for each segment:
    Please Login or Register  to view this content.
    Hide the helper columns
    Attached Files Attached Files
    Ben Van Johnson

  3. #3
    Forum Expert
    Join Date
    06-05-2017
    Location
    Brazil
    MS-Off Ver
    Microsoft 365 Version 2404
    Posts
    1,250

    Re: Need Help Calculating Total Hours in Timesheet

    Try this in L2 and copy down:

    Formula: copy to clipboard
    Please Login or Register  to view this content.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Calculating Regular Hours and OT in Timesheet
    By z0rd in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 12-19-2013, 11:27 AM
  2. Need formula for calculating hours in timesheet
    By alannanoelle in forum Excel Formulas & Functions
    Replies: 13
    Last Post: 03-25-2013, 02:02 PM
  3. Calculating overtime hours on a timesheet
    By tiffany04530 in forum Excel General
    Replies: 8
    Last Post: 12-01-2012, 04:50 AM
  4. Replies: 5
    Last Post: 01-21-2012, 01:35 AM
  5. Timesheet formula for calculating ordinary hours and overtime hours.
    By zoen in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 12-18-2011, 04:23 AM
  6. Timesheet Total hours error
    By fun123 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 05-25-2009, 04:34 AM
  7. [SOLVED] Calculating hours for a timesheet
    By Niq in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 02-27-2005, 07:06 PM

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