Calculating time above 24 hours in Google Sheets
Asked Answered
C

4

17

I have a Google doc that list a bunch of hh:mm durations in a column, like:

1:30  
1:00  
0:30

I am using SUM(D2:D24) to sum it up, and recently the total hh:mm went above 24 hours, so my total hours surpassed 24 hours and resultantly displays 0:15.

On Google Sheets specifically, how would I format the total Cell to allow it to go above 24:00?

Conceptionconceptual answered 24/10, 2019 at 19:59 Comment(3)
Add days to your formatting?Equerry
Format as 'duration' ?Keeling
I was calculating my from - to hours but to display the correct sum of the duration I had to enter midnight or 2 in the morning as 24:00 and 26:00. Display hour changes it to 00:00 and 02:00. Now my tot sum of the duration works again.Limbate
B
19

try like this:

=TEXT(SUM(A1:A); "[h]:mm")

0

Bernabernadene answered 24/10, 2019 at 22:32 Comment(1)
I missed the overflow in a billing spreadsheet. I can literally afford to eat this month because of your answer, thanks you.Roxana
D
10

scrnsht

Select this box were my mouse is at, then time will add up over 24 hr. (it's in dutch)

Declaim answered 4/10, 2021 at 10:6 Comment(0)
A
4

Click on Format, select Number, then "More Formats" (at the bottom) and click on "Custom number format" Now enter "[hh]:mm:ss" or "[hh]:mm" as preferred.

Source: https://spreadsheetpoint.com/add-time-in-google-sheets/#Showing_Time_in_More_than_24_Hours_Format

Alexander answered 25/1, 2021 at 13:39 Comment(1)
I think its is a better solution than accepted, since it allows e.g. plotting of these values in a graph.Souza
M
0

Change the Number Format to the 7th option within Time:

enter image description here

Mckinnon answered 26/4, 2023 at 23:5 Comment(0)

© 2022 - 2025 — McMap. All rights reserved.