Cellwise Start free

Excel guide · 7 min read

How to sum time in Excel

Quick answerUse =SUM(C2:C9) on the times, then give the total cell the custom format [h]:mm (Ctrl+1 > Number > Custom). Without the square brackets Excel drops every full 24 hours, so a 37:50 week shows as 13:50. For decimal hours, multiply the total by 24: =SUM(C2:C9)*24 gives 37.83.

Sample data

Every result on this page was calculated from this sheet by the same spreadsheet engine the Cellwise app uses.

ABCDEFGH
1DayClientTimeTime (CSV)Call lengthWeekly target (h)40
2MonAcme3:453:450:04Rate per hour65
3MonBrightpath4:204:200:12
4TueAcme6:156:150:39
5WedNorthwind2:502:500:08
6WedAcme5:305:300:26
7ThuBrightpath7:057:05
8FriAcme4:404:40
9FriNorthwind3:253:25

Download this sheet as an Excel practice file (.xlsx)

SUM the times, then format the total as [h]:mm

The sheet is a freelancer's week: time spent per client, typed as hours and minutes (3:45, 4:20). Excel stores each one as a fraction of a day, so 6:00 is 0.25 and 3:45 is 0.15625. SUM adds those fractions like any other numbers, which is why the total itself is right: 1.576 days.

The format decides what you see. Set it once: select the total, press Ctrl+1, choose Number > Custom and type [h]:mm in the Type box. Use [h]:mm:ss if you track seconds. The format sticks to the cell, so you only do this once per total.

You can also add individual times with +, as in =C2+C3, which gives 8:05 for Monday. Both work; SUM is easier to extend when you add rows.

=SUM(C2:C9)

Result: 1.5763888889 shows as 37:50 with the custom [h]:mm format

37 hours 50 minutes for the week. The raw value is 1.576 days; the [h]:mm format shows it as hours.

Why the total shows 13:50 instead of 37:50

This is the problem almost everyone searching "sum time in Excel" has. When you SUM time cells, Excel copies the h:mm format to the total. h:mm is a clock format: it shows the time of day, and a clock never goes past 23:59. 37:50 is one full day plus 13:50, so h:mm shows 13:50 and quietly hides the 24 hours.

Nothing is wrong with the formula or the data. Change the format to [h]:mm and the same cell shows 37:50. The brackets mean "keep counting hours past 24". [m]:ss does the same for minutes.

A quick test: if a total looks too small and is less than 24 hours, check the format before you check the data.

=TEXT(SUM(C2:C9),"h:mm")

Result: 13:50

13:50, which is wrong: the 24 hours of the first full day are hidden by the h:mm format.

Decimal hours for invoices and pay

A time total cannot be multiplied by an hourly rate directly: 1.576 x 65 is about 102, not the 2,459 you are owed. Multiply by 24 first to turn days into hours, then by the rate in H2. Format the result as Number or Currency, not Time.

Round once, at the end. =ROUND(SUM(C2:C9)*24*H2,2) gives 2,459.17. Rounding the hours first, =ROUND(SUM(C2:C9)*24,2)*H2, uses 37.83 hours and gives 2,458.95. Over a year of invoices those cents add up and stop matching the timesheet, so pick one rule and use it everywhere.

To show a total as text such as "37 h 50 min", use =INT(SUM(C2:C9)*24)&" h "&MINUTE(SUM(C2:C9))&" min". HOUR() would return 13 here, for the same reason h:mm shows 13:50.

=ROUND(SUM(C2:C9)*24*H2,2)

Result: 2459.17

2459.17: 37.83 hours at 65 per hour, rounded only at the end.

SUM returns 0: the times are text

Column D holds the same times exported from a time-tracking app as CSV. They look identical, but they are text, and SUM skips text completely, so the total is 0:00. Signs to look for: the times are left-aligned, =COUNT(D2:D9) returns 0, or a green triangle appears in the corner of each cell.

Two fixes. To leave the data alone, convert inside the formula: the double minus (--) forces each text time into a number and SUMPRODUCT adds them. To fix the data itself, select the column and choose Data > Text to Columns > Finish, which turns time-like text into real times. Then plain SUM works and so does every other formula that uses the column.

Note that + converts text but SUM does not: =D2+D3 returns 8:05 while =SUM(D2:D3) returns 0. That is why a hand-built total can disagree with SUM on the same cells.

=SUMPRODUCT(--D2:D9)

Result: 1.5763888889 shows as 37:50 with the custom [h]:mm format

37:50, the same total as the real times in column C. =SUM(D2:D9) returns 0.

Sum time by client or day with SUMIF

SUMIF and SUMIFS add times the same way SUM does, so the result needs the [h]:mm format too. Acme has four entries this week: 3:45, 6:15, 5:30 and 4:40.

Add more conditions with SUMIFS: =SUMIFS(C2:C9,B2:B9,"Acme",A2:A9,"Wed") returns Acme's 5:30 on Wednesday. Put the client name in a cell and refer to it instead of typing "Acme", so one formula filled down gives a total per client. If SUMIF returns 0 on times you can see, it is the text problem from the previous section.

=SUMIF(B2:B9,"Acme",C2:C9)

Result: 0.84027777778 shows as 20:10 with the custom [h]:mm format

20:10 for Acme. Formatted as h:mm it would show the wrong figure, because the total is over 24 hours.

Negative totals: hours short of a target

A flexitime or capacity sheet compares the week's total with a target. The target here is 40 hours, typed as a plain number in H1, so it is divided by 24 to match the time values. The week is 2 hours 10 minutes short, and that negative time is where Excel fails: a cell formatted as time shows ##### for any negative value.

TEXT cannot format it either: =TEXT(SUM(C2:C9)-H1/24,"[h]:mm") returns #VALUE!, because TEXT will not show a negative number as a time. So calculate the size of the gap with ABS, format that with TEXT, and add the minus sign yourself. LET names the difference once so the formula stays readable. The result is text, so use it for display only; for further maths, keep the number in decimal hours: =ROUND((SUM(C2:C9)-H1/24)*24,2) gives -2.17.

You may read that switching to the 1904 date system (File > Options > Advanced) shows negative times. It does, but it also moves every existing date in the workbook by 4 years and 1 day, so avoid it in any file that has dates. Typing the target as 40:00 into a cell also works: Excel stores it as a time of 40 hours, and then you leave out the /24.

=LET(d,SUM(C2:C9)-H1/24,IF(d<0,"-","")&TEXT(ABS(d),"[h]:mm"))

Result: -2:10

-2:10: the week is 2 hours 10 minutes below the 40-hour target, shown without #####.

Minutes and seconds: type 0:04:20, total with [m]:ss

Call lengths, lap times and video durations are minutes and seconds. If you type 4:20, Excel reads it as 4 hours 20 minutes, and the total is 60 times too big. Type the hours as well, 0:04:20, then format the cells as mm:ss so you do not see the zero.

For the total, use [m]:ss. These five calls add up to 89 minutes 30 seconds. With mm:ss the total shows 29:30, because the format resets every hour, the same trap as h:mm at 24 hours. h:mm:ss shows 1:29:30, which is also correct.

For average handling time or per-minute billing, convert to decimal minutes by multiplying by 1440, the number of minutes in a day: =SUM(F2:F6)*1440 gives 89.5.

=SUM(F2:F6)

Result: 0.062152777778 shows as 89:30 with Number format

89:30, the total talk time in minutes and seconds. The mm:ss format would show 29:30.

Which method to pick

For a total you will read, =SUM() with the [h]:mm format (or [m]:ss for short durations). For anything you multiply by a rate or compare with a target in hours, the total times 24, rounded once at the end. If SUM returns 0 or too little, the times are text: SUMPRODUCT(--range) works around it, Text to Columns fixes it for good. For balances that can go negative, keep decimal hours for calculations and use the ABS and TEXT formula only for display.

Common mistakes

A weekly total that shows a small number like 13:50

The cell has the h:mm format, which resets every 24 hours. Change it to the custom format [h]:mm.

Multiplying a time total by an hourly rate

A time is a fraction of a day, so 37:50 x 65 gives about 102. Multiply by 24 first: =SUM(C2:C9)*24*rate.

SUM returns 0:00 on times pasted from another system

They are text. Use =SUMPRODUCT(--D2:D9), or convert the column with Data > Text to Columns > Finish.

Typing 4:20 for four minutes twenty seconds

Excel reads 4:20 as hours and minutes. Type 0:04:20 and format the cells as mm:ss, and the total as [m]:ss.

FAQ

How do I sum hours and minutes in Excel over 24 hours?

Add the times with =SUM(range) and format the total with the custom format [h]:mm. The square brackets let the hours count past 24 instead of wrapping back to 0.

Why does Excel show ##### when I subtract times?

The result is negative, and Excel cannot display a negative time in the default date system. Show it as text with =IF(d<0,"-","")&TEXT(ABS(d),"[h]:mm"), or work in decimal hours with *24.

How do I convert a total time to decimal hours?

Multiply by 24: =SUM(C2:C9)*24 turns 37:50 into 37.83. Format the result as Number, not Time.

Why is my SUM of times 0?

The times are stored as text, usually after an import or a copy from a web page. COUNT on the range returns 0 when that is the case. Convert them with Text to Columns, or sum with =SUMPRODUCT(--range).

How do I sum minutes and seconds in Excel?

Enter durations as 0:mm:ss, add them with SUM and format the total as [m]:ss to show total minutes, or multiply by 1440 for decimal minutes.

Functions used

Related guides

Updated