To summarize time in Excel, use the SUM function to add your time entries and then apply the [h]:mm:ss custom number format to the total cell. This prevents Excel from resetting the clock to zero every time the total reaches 24 hours, allowing you to display cumulative totals like 35 or 100 hours.

What You'll Need

  • Microsoft Excel installed on your computer.
  • A dataset containing time durations (e.g., hours worked per day) or timestamps.
  • Data entered in a recognized time format (e.g., HH:MM or HH:MM:SS).

Step-by-Step

  1. Enter Your Time Data: Input your time entries into a column. Ensure you use a colon to separate hours and minutes (e.g., enter 8:30 for eight hours and thirty minutes). If you enter "8.30", Excel treats it as a decimal number rather than a time value, and the summary will be incorrect.
  2. Select the Total Cell: Click on the empty cell where you want the summarized total to appear (usually at the bottom of your time column).
  3. Apply the SUM Function: Type =SUM(, then click and drag your mouse to highlight the range of cells containing your time data, close the parenthesis ), and press Enter. For example: =SUM(A2:A10).
  4. Open the Format Cells Menu: Right-click the cell containing the total and select Format Cells... from the context menu. Alternatively, you can press Ctrl + 1 on your keyboard.
  5. Choose Custom Formatting: In the Format Cells dialog box, go to the Number tab. In the Category list on the left, select Custom.
  6. Enter the Duration Code: In the Type text box, delete any existing text and type exactly [h]:mm:ss (or [h]:mm if you do not need seconds). The square brackets around the "h" tell Excel to calculate total elapsed time rather than the time of day.
  7. Save Changes: Click OK. Your total will now correctly display the cumulative hours, even if they exceed 24.

Common Mistakes

  • Using Decimals Instead of Colons: Entering 8.5 for eight and a half hours is a common error. Excel sees 8.5 as a number, not a time. To summarize time, always use the HH:MM format.
  • Ignoring the 24-Hour Reset: By default, Excel uses a "Time of Day" format. If your total is 26 hours, Excel will show "2:00" because it subtracts the full 24-hour day. You must use the [h] format to see the actual total.
  • Mixing Date-Times with Durations: Trying to sum a column that contains both a date and a time (e.g., 12/01/2026 08:00) can lead to confusing results if the formatting is not handled specifically for durations.

Tips

  • Quick Formatting: If you have many total cells, you can use the Format Painter (paintbrush icon on the Home tab) to copy the [h]:mm formatting from one cell to others.
  • Converting Time to Decimals: If you need to multiply a total time by an hourly rate (e.g., Total Hours x $20), you must convert the time to a decimal first. Multiply the total time cell by 24 and change the cell format to Number or Currency.
  • Using AutoSum: Instead of typing the formula, highlight your time range and the empty cell below it, then click the AutoSum button on the Home tab.

Troubleshooting

If your total does not seem to be calculating correctly, try these steps in order:

  • Check for Text Formatting: If the SUM result is 0 or ignores certain cells, your "time" might actually be stored as text. Select the cells; if they are aligned to the left by default, they are text. Re-type them using colons or use the Text to Columns feature to convert them to numbers.
  • Verify the Format Code: Ensure you used square brackets [h] and not regular parentheses (h). Regular parentheses are not recognized as a duration command.
  • Check for Hidden Rows: If you are using a Filter, the SUM function still adds hidden rows. Use the SUBTOTAL(109, range) function instead of SUM to only summarize the visible filtered rows.

Frequently Asked Questions

Why does my total reset to 0 after 24 hours?

Excel defaults to a time-of-day clock. Once the sum hits 24, it starts over at zero. Applying the [h]:mm custom format tells Excel to treat the value as a duration rather than a clock time.

How do I sum time that crosses midnight?

If you are calculating the difference between a start time (e.g., 10 PM) and an end time (e.g., 6 AM), use the formula =B2-A2+(A2>B2). This adds one full day (1) to the calculation if the start time is greater than the end time.

Can I summarize time using a Pivot Table?

Yes. After creating the Pivot Table and adding the time field to the "Values" area, the total will likely appear as a count or a decimal. Right-click the value, choose Value Field Settings, ensure it is set to Sum, and then apply the [h]:mm custom format to the cells.

How do I enter 150 hours in a single cell?

Simply type 150:00 into the cell. Excel will recognize this as 150 hours. If it displays as a strange date or a small number of hours, apply the [h]:mm custom format to that cell.

What is the difference between h and [h]?

The h format displays the hour of the day (0-23). The [h] format displays the total cumulative hours, allowing the number to go above 24.