Smart Systems for Home

Plain how-to guides for smart home, security and home Wi-Fi

How to Add Time in Excel: Simple Summing and Formatting

· 4 min read · Home Tech

In this article
  1. What You'll Need
  2. Step-by-Step
  3. Common Mistakes
  4. Tips
  5. Troubleshooting
  6. Frequently Asked Questions

To add time in Excel, use the SUM function (e.g., =SUM(A1:A10)) and apply the custom number format [h]:mm to the result cell. This prevents Excel from resetting the clock to zero every time the total reaches 24 hours, allowing you to track cumulative durations like total project hours or payroll.

Excel treats time as a fraction of a 24-hour day. For example, 12 hours is stored as 0.5. Because of this logic, standard time formatting often "rolls over" after 24 hours, showing only the remainder. By using a specific bracketed format, you tell Excel to display the total elapsed time rather than the time of day.

What You'll Need

  • Microsoft Excel (Desktop, Web, or Mobile version)
  • A dataset of time durations or timestamps

Step-by-Step

  1. Enter your time data: Type your hours and minutes into cells using the HH:MM format (e.g., 08:30 for eight hours and thirty minutes). Ensure you use a colon to separate hours from minutes so Excel recognizes the entry as a "Time" value rather than text.
  2. Select the total cell: Click on the empty cell where you want the sum of your time to appear.
  3. Enter the SUM formula: Type =SUM(, then click and drag to select the range of cells containing your time entries, and close the parenthesis. For example: =SUM(B2:B10). Press Enter.
  4. Open the Format Cells menu: If the result looks incorrect (e.g., it shows 2:00 instead of 26:00), right-click the result cell and select Format Cells... (On some versions, you can also find this in the Home tab under the Number group dropdown).
  5. Choose Custom Formatting: In the Format Cells dialog box, go to the Number tab. In the list on the left, select Custom.
  6. Apply the cumulative code: In the "Type" input box, delete the existing text and type exactly: [h]:mm. The square brackets tell Excel to accumulate hours beyond 24.
  7. Confirm and Save: Click OK. Your cell will now display the true total of all added time.

Common Mistakes

  • Entering time as decimals: Entering "8.5" instead of "8:30" tells Excel you mean 8.5 days, not 8.5 hours. Always use the colon for time durations.
  • Ignoring the 24-hour rollover: The most common error is using the standard "Time" format. If your total is 25 hours, a standard format will display "1:00" because it views the time as 1:00 AM the following day.
  • Mixing formats: Combining cells formatted as "Time" with cells formatted as "General" or "Text" can lead to #VALUE! errors or incorrect sums.

Tips

  • Adding minutes specifically: If you only have a list of minutes (e.g., 45, 30, 60) and want to sum them into hours, sum the minutes first, then divide the total by 1440 (the number of minutes in a day) and apply the [h]:mm format.
  • Quick entry: Use the keyboard shortcut Ctrl + Shift + : (colon) to quickly insert the current system time into a cell.
  • Adding a fixed amount of time: To add a specific number of hours to a timestamp, use the TIME function. For example, to add 2 hours to cell A1, use =A1 + TIME(2,0,0).

Troubleshooting

If your formula is not working as expected, try these steps in order:

  1. Check for "Text" formatting: If the SUM result is 0 despite having numbers in the cells, your time entries might be stored as text. Select the cells, look at the Number format dropdown in the Home tab, and change it to "Time." You may need to double-click into the cell and press Enter to "refresh" the value.
  2. Verify the Colon: Ensure every entry uses a colon (:) and not a period (.) or comma (,). Excel will not recognize "8.30" as a time value.
  3. Check for Hidden Rows: If you are using a Filter, the SUM function still adds hidden rows. Use the SUBTOTAL(109, range) function instead to sum only the visible filtered time entries.
  4. Clear Formatting: If the cell displays a series of hashtags (#######), the column is likely too narrow to display the result. Widen the column by double-clicking the boundary between the column letters at the top.

Frequently Asked Questions

Why does my total reset to zero after 24 hours?

Excel's default time formats are designed for "Time of Day" (clock time). Once the sum reaches 24:00, it starts over at 0:00. Using the [h]:mm custom format disables this rollover and shows total elapsed hours.

How do I add time if my data is in "Hours.Minutes" format (like 8.30)?

Excel cannot sum "8.30" as time because it sees it as a decimal number. You must either convert those entries to 8:30 or use a complex formula to separate the integer from the decimal, convert the decimal to minutes, and then sum them.

Can I add time across different dates?

Yes. If your cells contain both date and time (e.g., 2026-12-01 08:00), the SUM function will still work. However, you should use a Date/Time format to ensure the result is readable.

How do I subtract time in Excel?

Subtraction works exactly like addition. Use the formula =End_Time - Start_Time. If the result is a negative time value, Excel will display a string of hashtags (#######) because it cannot display negative time by default.

What is the difference between h:mm and [h]:mm?

The h:mm format is for the time of day (0-23 hours). The [h]:mm format is for duration, allowing the hour count to go indefinitely (e.g., 150:30).