Adding time in Excel is done by entering times as time values and then using the SUM function or the plus operator. The key is that Excel stores times as fractions of a day, so 12:00 PM is stored as 0.5. To get a correct total that displays as hours and minutes (like 25:30), you must apply a custom number format like [h]:mm to the result cell. This guide walks you through the exact steps for adding a few times, adding a column of times, and handling times that cross midnight.
What You’ll Need
- Microsoft Excel (Microsoft 365, Excel 2021, or any recent version; steps are the same on Mac and Excel for the web unless noted).
- Times entered in cells using a time format (for example, type
6:30for 6:30 AM or6:30 PM). - An empty cell where you want the total to appear.
Step-by-Step
Method 1: Add Two or More Specific Times
- Click a cell and type a time, for example
8:30(Excel assumes AM). Press Enter. - Click the next cell and type another time, for example
5:45(5:45 AM). Press Enter. - To add them, click an empty cell and type
=A2+B2(assuming your times are in A2 and B2). Press Enter. - Excel will show a result like
2:15 PM(14:15). That’s correct for a single day, but if the total exceeds 24 hours, it will wrap around. To fix that, go to the next step. - Right-click the result cell and choose Format Cells (or press Ctrl+1 on Windows, Cmd+1 on Mac).
- In the Format Cells dialog, go to the Number tab, select Custom, and type
[h]:mmin the Type box. Click OK. - The cell now shows total hours and minutes, e.g.,
14:15for 14 hours 15 minutes.
Method 2: Sum a Column of Times
- Enter your times in a column, say A2:A10. Each cell should contain a valid time (e.g.,
8:30,9:15,7:45). - Click the cell where you want the total, for example A11.
- Type
=SUM(A2:A10)and press Enter. - Apply the custom format
[h]:mmto that cell (right-click > Format Cells > Custom >[h]:mm). - The result shows total hours and minutes, not a clock time. For example, if the sum is 25 hours and 30 minutes, it displays
25:30.
Method 3: Add Times That Cross Midnight
If you are adding durations that span past midnight (like a shift from 11:00 PM to 2:00 AM), Excel treats times as points on a 24-hour clock, so a simple sum won’t work. Instead, enter the start time and the duration as a time value, then add them. For example:
- Put start time in A2:
11:00 PM(or23:00). - Put duration in B2:
3:00(3 hours). - In C2, type
=A2+B2and press Enter. - Excel returns
2:00 AM(the next day). That’s correct for a single crossing. - If you need to sum many such pairs, add a helper column that converts each pair to a decimal number of hours: in D2 type
=(B2 + IF(A2>B2,1,0))*24. This adds 1 day if the end time is earlier than the start. Then sum column D and format as a number.
Method 4: Use the TIME Function for Calculations
If you’re building times from hours, minutes, and seconds, use the TIME function. For example, to add 2 hours and 15 minutes to 9:30 AM:
- Put
9:30in A2. - In B2, type
=A2 + TIME(2,15,0)and press Enter. - Result is
11:45 AM. Format as needed.
Common Mistakes
- Not formatting the result cell. If the total exceeds 24 hours, Excel shows a date or a wrapped time (e.g., 1:30 instead of 25:30). Always apply
[h]:mm. - Entering times as text. If you type
8:30 AMwith a space before AM, Excel might store it as text. Check that the cell is right-aligned (numbers are right-aligned by default). - Using a regular number format. If you format the result as a number, you’ll see 0.6 or 1.06, not hours. Use a time format.
- Adding times that cross midnight without adjusting. A simple sum of 11:00 PM and 3:00 AM gives 2:00 AM, but if you’re totaling durations, you need the helper column method.
Tips
- Use the keyboard shortcut Ctrl+Shift+: (Windows) or Cmd+Shift+: (Mac) to insert the current time into a cell quickly.
- To display seconds as well, use the format
[h]:mm:ss. - If you want to see total hours as a decimal (e.g., 8.5 for 8:30), multiply the sum by 24 and format the cell as a number:
=SUM(A2:A10)*24. - For payroll, round to the nearest quarter hour using
=MROUND(A2,TIME(0,15,0)). - Use a table (Insert > Table) so your SUM formula automatically includes new rows.
Troubleshooting
- The total shows 0:00 or a small number. Your times are probably stored as text. Select the cells, go to Data > Text to Columns, and click Finish. Or re-enter them with a colon (e.g., 8:30).
- The result shows a date like 1/1/1900. The total exceeded 24 hours and the cell is formatted as a date. Apply the custom format
[h]:mm. - The result shows #####. The column is too narrow. Widen the column or change the format to a shorter one.
- Adding times gives a number like 0.354. That’s the fraction of a day. Multiply by 24 to get hours, or format as time.
- SUM ignores cells with times. Make sure the cells are truly time values, not text. Use the ISNUMBER function on a sample cell:
=ISNUMBER(A2)returns TRUE if it’s a number.
Frequently Asked Questions
How do I add more than 24 hours in Excel?
Enter your times normally, sum them with =SUM(...), then format the result cell as [h]:mm. The square brackets allow the hour count to exceed 24.
Why does Excel show 2:30 instead of 26:30 when I add times?
Because the cell is formatted as a clock time (e.g., h:mm). Change it to Custom format [h]:mm to display total hours over 24.
Can I add times in Excel for the web?
Yes. The same functions and formatting work. To open Format Cells, select the cell, go to the Home tab, and click the Number Format dropdown, then choose More Number Formats.
How do I subtract time in Excel?
Use the minus operator, e.g., =B2-A2. If the result is negative, format as [h]:mm or use the MOD function: =MOD(B2-A2,1).
What is the difference between TIME and TIMEVALUE?
TIME builds a time from hours, minutes, and seconds (e.g., TIME(3,0,0)). TIMEVALUE converts a text string like “3:00 PM” into a time value. Use TIME for calculations, TIMEVALUE when importing text.
How do I sum only certain times based on a condition?
Use SUMIF or SUMIFS. For example, to sum times in A2:A10 where B2:B10 equals “Day”, use =SUMIF(B2:B10,"Day",A2:A10). Format the result as [h]:mm.
Related
- How to Update a Dictionary in Java (HashMap)
- Makita TD020DSEW Impact Driver Kit: Full Review
- Select a Certificate Spotify: What It Means & How to Do It
Try it: the Date Difference Calculator: days, months, years and weekdays between two dates, with the DATEDIF formulas.
More in How-to basics
- Excel Power Query Not Importing Data? Fixes to TryIf Excel Power Query is not importing data, first identify whether the failure happens while connecting to the…
- How to Copy in Excel Down a ColumnTo copy a cell down a column in Excel, select the cell and the cells below it, then…
- Google Sheets Project Timesheet Template: Setup GuideA Google Sheets project timesheet template is a shared spreadsheet for recording work dates, employees, projects, tasks, start…
- Double Space in Word: Set 2.0 Line SpacingIn Microsoft Word, double spacing means setting line spacing to 2.0; it does not change the number of…
- Free Snowball Debt Spreadsheet: Build One in ExcelYes—a debt snowball spreadsheet can be free: you can build a practical tracker in Excel without buying a…
- Excel Refresh All Shortcut for Windows and MacIn Excel for Microsoft 365 on Windows, press Ctrl+Alt+F5 to refresh all data connections in the workbook. On…
Sources: Function behaviour and menu paths: Microsoft Support documentation for Excel. Method & sources
Spotted an error in this guide? Let us know.