Calculation Issues

How to Add Time Periods and Display Weekly Totals Over 24 Hours in Excel

Jason MillerJason Miller Oct 29, 2026 869 views

Question details

The user needs to sum daily time values to calculate weekly totals and display cumulative hours correctly when the total exceeds the standard 24-hour limit.

How to Add Time Periods and Display Weekly Totals in Excel
Product
Microsoft Excel
Device & OS
not provided
Scenario
Calculating cumulative weekly worked hours or total elapsed time based on a list of daily time entries.
Observed behavior
Standard time formatting resets the hour count to zero after reaching 24 hours, failing to show the correct cumulative weekly total.
Before you start

Ensure that all the daily time values you are trying to sum are recognized as numeric time entries in Excel, rather than text strings.

Solution 1Recommended

Sum Daily Times and Apply a Custom Cumulative Format

Use the SUM function combined with a bracketed custom time format to prevent Excel from resetting the hour count after 24.

By default, Excel interprets time as a time of day, meaning anything past 23:59 rolls over to a new day. Placing brackets around the hour in your custom format forces Excel to display elapsed or cumulative time.

1
Enter the SUM function

Select the cell where you want the weekly total to appear and enter the formula =SUM(H296:H304), replacing the range with your actual daily time totals.

2
Open the Format Cells dialog

Right-click the cell containing your sum and select "Format Cells" from the context menu.

3
Select Custom Formatting

Go to the "Number" tab and select "Custom" from the list of categories on the left.

4
Apply the cumulative time format

In the "Type" input box, enter [h]:mm or [h]:mm;@. The square brackets instruct Excel to display hours cumulatively.

5
Confirm and save

Click "OK" to apply the formatting. The cell will now properly display totals that exceed 24 hours.

Sum Daily Times and Apply a Custom Cumulative Format
Understanding Excel Time Values: In Excel's internal system, 1 whole integer equals exactly 24 hours. If you see a decimal like 1.5, it represents 36 hours. The [h] format converts these days back into pure hours.

Easily Calculate Weekly Time Totals with WPS Office

WPS Spreadsheet provides robust formula calculation and complete support for custom number formatting. You can seamlessly sum time entries and track cumulative hours over 24 hours without compatibility issues.

  1. 1. Open your spreadsheet: Launch WPS Spreadsheet and open the timesheet workbook.
  2. 2. Sum your time entries: Select your total cell and type your SUM formula, for example =SUM(B2:B8).
  3. 3. Format the total cell: Right-click the total cell, select "Format Cells", and navigate to "Custom" under the Number tab.
  4. 4. Apply cumulative brackets: Type [h]:mm into the Type field and click "OK" to display your total accumulated hours.
Fully compatible with Microsoft Excel formulas and custom number formats like [h]:mm.Completely free and lightweight office suite for Windows, Mac, and Linux.Familiar user interface with zero learning curve for existing Excel users.
microsoft office alternative - wps office

Frequently Asked Questions

Why does my Excel time sum reset to zero after 24 hours?

By default, Excel applies a "Time of Day" format (like a clock). Once the total hits 24 hours, it rolls over to a new day and starts the clock from 0:00. You must use the custom format [h]:mm to tell Excel to show cumulative, elapsed hours instead of a clock time.

Can I format cumulative time totals to show seconds as well?

Yes, you can easily include seconds in your total by modifying the custom format. Enter [h]:mm:ss in the Custom Format Type box to display hours, minutes, and seconds cumulatively.

How do I multiply my total time hours by an hourly wage?

Because Excel stores time as a fraction of a day (where 24 hours = 1), you cannot multiply the time cell directly by the wage. First, multiply the total time cell by 24 to convert it into a standard decimal number, then multiply that result by your hourly rate. For example: =(A1*24)*Hourly_Wage.

What if I need to subtract a lunch break from the daily total?

You can subtract break times using standard math formulas as long as all entries are formatted as time. Use a formula like =End_Time - Start_Time - Break_Time to get the net daily hours before summing them for the week.