Adding up time in Excel is a common task for tracking hours worked, project durations, or event timings. The basic method is to select the cells containing the times and use the SUM function, but because Excel stores times as fractions of a day, you often need to format the result as [h]:mm to see totals beyond 24 hours. This guide walks you through the correct steps, common pitfalls, and troubleshooting tips.
What You’ll Need
- A computer with Microsoft Excel (Microsoft 365, Excel 2021, 2019, or earlier) – the steps are the same for Windows, Mac, and Excel for the web unless noted.
- A spreadsheet containing time values in a recognizable time format (e.g., 9:30 AM, 14:45, 1:15:30).
- Basic familiarity with selecting cells and entering formulas.
Step-by-Step
- Enter your times correctly. Type times using a colon between hours and minutes (e.g.,
8:30for 8 hours 30 minutes, or8:30 AM). Excel automatically recognizes these as time values. Avoid typing “8.5” for 8 hours 30 minutes – that is a decimal, not a time. - Select the cell where you want the total. Click an empty cell, for example, directly below your list of times.
- Use the SUM function. Type
=SUM(and then select the range of cells containing your times. For example, if your times are in cells A2 through A10, type=SUM(A2:A10)and press Enter. Alternatively, use the AutoSum button on the Home tab (in the Editing group) – it will guess the range and insert the SUM formula. - Check the result. If the total is less than 24 hours, you’ll see a time like 6:30. If the total exceeds 24 hours, you might see a date-like value (e.g., 1/1/1900 6:30) or a number like 1.27 – that means you need to format the cell.
- Format the result to show more than 24 hours. Right-click the cell with the total, choose Format Cells (or press
Ctrl+1on Windows,Cmd+1on Mac). In the Format Cells dialog, go to the Number tab, select Custom under Category, and type[h]:mmin the Type box. This format displays total hours, even beyond 24. Click OK. - If you have seconds, use
[h]:mm:ss. For times that include seconds, type[h]:mm:ssin the Type box to show total hours, minutes, and seconds. - Add times that are not in a single range. If your times are scattered across non-adjacent cells, you can sum them individually: type
=SUM(A2, A5, A7)or use the plus sign:=A2+A5+A7. - Use the SUM function with named ranges or tables. If your data is in an Excel Table, you can use structured references like
=SUM(Table1[Time])– this automatically updates when you add rows.
Common Mistakes
- Forgetting to format the result. The most common error is not applying the
[h]:mmcustom format, so totals over 24 hours display incorrectly (e.g., 1/1/1900 6:30). - Using text instead of time values. If you type times with spaces or apostrophes (e.g., ‘8:30), Excel treats them as text, and SUM ignores them. Check that cells are aligned right (time values are right-aligned by default).
- Entering times as decimals. Typing 8.5 for 8 hours 30 minutes will sum as a number (8.5), not as time. Always use a colon.
- Summing across midnight incorrectly. If you have times that cross midnight (e.g., 11:00 PM and 2:00 AM), a simple SUM will treat the 2:00 AM as 2:00 on the same day, not the next day. Use date-time values or add 1 to the later time if needed.
- Using the wrong format for negative times. If your total is negative (e.g., subtracting time), Excel displays ##### unless you switch to the 1904 date system (File > Options > Advanced > “Use 1904 date system”).
Tips
- Use the AutoSum button. Select the cell below your time list and click Home > AutoSum (Σ). Excel will insert the SUM formula and highlight the range – press Enter to accept.
- Format before you sum. Pre-format the total cell with
[h]:mmto avoid surprises later. - Use the status bar for a quick check. Select multiple time cells, and look at the status bar at the bottom – it shows the sum (e.g., “Sum: 6:30”) without any formulas.
- Convert to decimal hours if needed. To get total hours as a number (e.g., 8.5), multiply the time total by 24:
=SUM(A2:A10)*24and format the cell as Number. - For payroll, consider using a time-tracking template. Excel has built-in templates for timesheets that already have the correct formatting.
Troubleshooting
My total shows a number like 1.27 instead of a time. This means the cell is formatted as General or Number. Apply the custom format [h]:mm as described in Step 5.
My total shows #####. This usually means the column is too narrow to display the time. Drag the column boundary to widen it, or change the format to a shorter one like [h]:mm.
The SUM function returns 0. Check if your “times” are actually text. Select a cell with a time, look at the formula bar – if it shows a left-aligned text, re-enter the time with a colon. You can also use =VALUE(A2) to convert text to time, but it’s better to fix the source data.
My total is off by a few minutes. Ensure all cells are truly time values. Sometimes, times entered as decimals (e.g., 8.5) are mixed in with time values. Select the range and check the Number Format – if any are General, convert them.
I get a date like 1/1/1900 6:30. That is the default display for times over 24 hours. Apply the [h]:mm custom format to fix it.
I need to add times that cross midnight. Use full date-time values (e.g., 11/1/2023 11:00 PM and 11/2/2023 2:00 AM) and sum them. Or, if you only have times, add 1 to the end time if it’s on the next day: =A2 + IF(B2<=A2, B2+1, B2) – but that’s for subtracting, not adding. For adding a list, ensure each time is from the same day.
Frequently Asked Questions
Q: How do I add up hours and minutes in Excel?
A: Use the SUM function on a range of time cells (e.g., =SUM(A2:A10)) and format the result as [h]:mm to show total hours and minutes.
Q: Why does my time total show as a decimal number?
A: Because Excel stores times as fractions of a day (e.g., 0.5 = 12:00 PM). When you sum them, the result is a decimal. Formatting the cell as Time or Custom [h]:mm displays it as hours and minutes.
Q: Can I add times that exceed 24 hours?
A: Yes. Use the SUM function and format the result with the custom format [h]:mm (or [h]:mm:ss). The square brackets allow hours to exceed 24.
Q: How do I add up time in Excel when the times are in different cells?
A: Use the SUM function with a range, or list individual cells separated by commas: =SUM(A2, A5, A7).
Q: What if my times are in AM/PM format?
A: Excel handles AM/PM automatically. Just type times like 8:30 AM or 2:45 PM. The SUM function works the same.
Q: How do I convert a time total to decimal hours?
A: Multiply the time total by 24 and format the result as a number. For example, if your total is in cell A10, use =A10*24 to get hours as a decimal (e.g., 8.5 for 8 hours 30 minutes).
Related
- Excel Time Picker: Ways to Choose a Time
- How to Make a Time Schedule in Google Sheets: Step by Step
- Excel Time From Datetime: Extract the Time Value
Try it: the Date Difference Calculator: days, months, years and weekdays between two dates, with the DATEDIF formulas.
More in How-to basics
- Excel Strikethrough Shortcut: Fast Ways to Cross Out TextIn Excel for Microsoft 365 on Windows, select the cell or range and press Ctrl+5 to apply strikethrough;…
- How to Limit a Range in Google SheetsTo limit who can change cells in Google Sheets, select the cells, open Data > Protect sheets and…
- How to Change the Background View in Outlook on Any DeviceTo change Outlook’s appearance, open its appearance or theme settings and choose a light, dark, or colored theme;…
- Dynamically Resize an Excel Table as You Add New DataTo make an Excel table grow as you add data, enter or paste new records directly in the…
- How to Create a Lesson Plan Template in WordCreate a reusable lesson plan template in Word by laying out the information you need, organizing it with…
- Generate 6 Digit Random Number in JavaThe simplest way to generate a 6-digit random number in Java is int num = 100000 + random.nextInt(900000);…
Sources: Function behaviour and menu paths: Microsoft Support documentation for Excel. Method & sources
Spotted an error in this guide? Let us know.