Forum Discussion

danazee's avatar
danazee
Copper Contributor
Mar 04, 2023
Solved

How to Calculate Total Hours Worked

I want to create a spreadsheet where my staff enters the time they worked on individual tasks (note: I don't need start and end time, just total time on each task) and keep a running total of hours w...
  • SnowMan55's avatar
    Mar 04, 2023

    danazee 

    Attached is one example of how that might be accomplished. The SUMIFS function is the workhorse here.  I'll assume that your version of Excel supports it. The function supports two or more selection criteria per usage; I needed only two criteria in each usage here.

     

    The Log1 worksheet is the log of employee work. The Summary1 worksheet is what a manager might more likely view. I used the custom format [h]:mm;@ for elapsed times and total times, assuming that you are not measuring those values to the second.

     

    Fancier formulas could accomplish this without the need to reserve a column for the Week. But the Week column does not need to be visible for this to work.

     

    I added conditional formatting to highlight the switch between consecutive days. Multiple formatting rules could instead be used to assign specific colors to different days of the week.

     

    This implementation does not use an Excel table, which might be a good alternative, particularly if you're going to keep a very long log of employee work (before switching to another worksheet or workbook).

Resources