FormulaCraft

How to sum hours worked from a timesheet in Excel and Google Sheets

Topic:SUM & aggregation

Heads up: Excel and Google Sheets do this differently.

Excel
=SUM(B2:B6)
Google Sheets
=SUM(B2:B6)

Verified example

Computed by a real spreadsheet engine on the sample data below.

DateHours WorkedNotes
Mon8
Tue7.5
Wed9
Thu8

=SUM(B2:B6)32.5

Try it with your data

Edit the grid or formula, then run it through a real spreadsheet engine — no signup.

Sample data — click any cell to edit

Runs server-side · free · no signup

Step by step

  1. 1Enter start times in column A and end times in column B. In column C calculate hours per day: =B2-A2.
  2. 2If shifts can cross midnight, use: =MOD(B2-A2,1) to handle overnight correctly.
  3. 3In C7 (below the data) enter =SUM(C2:C6) to total all hours.
  4. 4Format C7 as [h]:mm in Excel (Ctrl+1 > Custom > [h]:mm) or Duration in Google Sheets (Format > Number > Duration) so values over 24 hours display correctly.

Tips

Need the Google Sheets version instead? Open Sheets variant in workspace →

Working on a sheet you inherited? Run the Auditor on the whole file first — it flags every #REF!, #N/A, broken column pattern, and inconsistent formula in seconds, free, no signup.

Frequently asked

Why does my total show 1:30 when I expect 25:30?

The cell is using a standard Time format which resets at 24 hours. Change it to [h]:mm in Excel or Duration in Sheets.

How do I convert the total hours to a decimal for pay calculations?

Multiply the time value by 24: =SUM(C2:C6)*24. Format this cell as Number, not Time.

More on SUM & aggregation

See all →

Formulas used

Related tasks

Written and reviewed by FormulaCraft Team. Each formula on this page is run through our verification engine before publishing.

Last reviewed: