Time Summation in Excel: Step-by-Step Guide
In this article
To sum time in Excel, enter your times in a column using the h:mm or [h]:mm format, then use a simple =SUM() formula over that range. The key is to apply a custom time format to the result cell so Excel shows total hours instead of rolling over at 24 hours. That is the whole trick: the math is easy, the formatting is what people miss.
What You'll Need
- Excel for Windows, Mac, or Excel for the web (the steps below work across all of them; menu labels can differ slightly by version, device, or region).
- Your time values entered in a consistent format, such as 8:30, 1:15, or 45:00.
- A cell for the total, formatted as [h]:mm so it can exceed 24 hours.
Step-by-Step
- Enter times consistently. Type times as hours:minutes, for example 8:30 for eight and a half hours, or 1:15 for one hour fifteen minutes. Excel reads a colon as a time separator. If you type 8.30, Excel treats it as a decimal number, not a time.
- Keep each entry in its own cell. Put start and end times in separate columns if you are calculating durations, or put each duration in its own row if you are adding a list. Do not combine text like "8h 30m" in a cell you plan to sum; Excel will treat it as text and ignore it.
- Select the cell where the total should appear. Click an empty cell below or beside your list.
- Type the SUM formula. Enter =SUM(A2:A10) and press Enter, replacing A2:A10 with the actual range of your time cells. You can also type =SUM( and then drag over the cells with the mouse, then close the parenthesis and press Enter.
- Format the total cell as time. Right-click the total cell, choose Format Cells, go to the Number tab, select Custom, and type [h]:mm in the Type box. Click OK. The square brackets tell Excel to keep counting past 24 hours instead of resetting to zero.
- Check the result. If your entries add up to 30 hours, the cell should show 30:00 with the [h]:mm format. If it shows 6:00, the format is still the default h:mm, which wraps at 24 hours. Reapply the custom format.
- For elapsed time between a start and end time, subtract first. If A2 is the start time and B2 is the end time, enter =B2-A2 in C2, then format C2 as [h]:mm. Copy the formula down the column, then sum the C column with =SUM(C2:C10).
- Handle overnight shifts. If an end time is earlier than the start time, the shift crossed midnight. Use =MOD(B2-A2,1) instead of plain subtraction, then format the result as [h]:mm. MOD keeps the result positive.
- Convert to decimal hours if you need to multiply by a rate. If you pay or bill by the hour, put =SUM(A2:A10)*24 in a cell formatted as a regular number (not time) to get total hours as a decimal, such as 30.5. Multiply that by your hourly rate.
- Save the workbook. Press Ctrl+S (Cmd+S on Mac) so your formatting and formulas are kept.
Common Mistakes
- Leaving the total in the default time format. Excel's default h:mm format rolls over at 24 hours, so 26 hours displays as 2:00. Always apply [h]:mm to totals that may exceed a day.
- Typing times as decimals. Entering 8.5 means eight and a half (a number), not 8:30 (a time). Use a colon for time values.
- Mixing text and time. Cells containing "8 hrs" or an apostrophe at the start are text and are ignored by SUM. Check that entries are right-aligned by default; text is usually left-aligned.
- Forgetting that a full day equals 1. In Excel, one hour is 1/24 of a day. That is why multiplying a time total by 24 converts it to decimal hours.
- Subtracting without MOD for overnight shifts. Plain subtraction gives a negative time, which Excel displays as ####### in the default 1900 date system. Use MOD as shown above.
Tips
- Use the [h]:mm:ss format if you need seconds in the total.
- Apply the custom format to the whole column before you start entering data, so every new row inherits it.
- Use =SUM(A:A) only if the column contains nothing but the times you want to add; headers and notes will be ignored, but stray numbers will not.
- To total time across several sheets, use =SUM(Sheet1!A2:A10,Sheet2!A2:A10) and format the result as [h]:mm.
- If you need to round to the nearest quarter hour for billing, use =MROUND(SUM(A2:A10)*24,0.25) and format as a number.
Troubleshooting
- The total shows a small number like 6:00 instead of 30:00. The cell is formatted as h:mm. Right-click, Format Cells, Custom, and enter [h]:mm.
- The total shows 0:00. Your time cells are probably stored as text. Select them, use Data > Text to Columns and click Finish, or retype them with a colon. Then recheck the SUM formula.
- The total shows #######. The column is too narrow, or the result is a negative time. Widen the column; if it is negative, check for an end time earlier than a start time and switch to MOD.
- SUM ignores some cells. Those cells contain text, spaces, or an apostrophe prefix. Clear the formatting and retype the values.
- The formula returns a date instead of a time. The cell picked up a date format. Reapply [h]:mm in Format Cells.
- Still not working? Press Ctrl+Z to undo the last change, save a copy of the workbook, and rebuild the formula in a fresh cell to isolate the problem. If the file came from another system, check whether times were imported as text.
Frequently Asked Questions
Why does Excel show 2:00 when I add 26 hours?
Because the cell uses the default h:mm format, which resets every 24 hours. Apply the custom format [h]:mm to see the full total.
How do I add hours and minutes that are typed as text?
Convert them to real time values first. Select the cells, open Data > Text to Columns, and click Finish, or retype each entry with a colon. Then sum as normal.
How do I total time across multiple days or shifts?
Calculate each shift's duration with =B2-A2 (or =MOD(B2-A2,1) for overnight), format those cells as [h]:mm, and sum the duration column.
How do I convert a time total to decimal hours for payroll?
Multiply the time total by 24 and format the result as a number. For example, =SUM(A2:A10)*24 gives 30.5 for 30 hours 30 minutes.
Can I sum times over 24 hours in Excel for the web?
Yes. The same SUM formula and the same [h]:mm custom format work in Excel for the web.
Why do I get a negative time or a series of hash marks?
An end time is earlier than its start time, so the subtraction goes negative. Use =MOD(end-start,1) to handle shifts that cross midnight.