How to sum time duration in a complex format

SalemDarwish

New Member
Joined
Apr 12, 2022
Messages
1
Office Version
  1. 365
Platform
  1. Windows
Hi,

I have a report that shows time like [40536:12:57] where it means [hhhhh:mm: ss] (the number of digits for hours might get increase/decrease). in such cases, how to sum durations.

when I try to do so, excel shows #VALUE.

E.x.: A4 [40536:12:57] + A5 [20261:50:13] = [60798:03:10]

how to sum the time, and make the remain of seconds move to minutes, and minutes to hours. so it result should be [60798:03:10]

Thanks,
Salem
 

Excel Facts

How to calculate loan payments in Excel?
Use the PMT function: =PMT(5%/12,60,-25000) is for a $25,000 loan, 5% annual interest, 60 month loan.
Something like this perhaps. The cell with the formula uses a custom format of [h]:mm:ss

I should point out that if any cell contains less than 10000:00:00 then this formula will not work correctly. Anything below that will be recognised as a valid time and will need to be added separately.

edit:- formula changed to allow for time entries less than 10000 hours. Must be array confirmed with Ctrl Shift Enter if using excel 2019 or older.

Book1
A
440536:12:57
520261:50:13
660798:03:10
7121596:06:20
Sheet1
Cell Formulas
RangeFormula
A7A7=SUMPRODUCT(IFERROR(LEFT(A4:A6,LEN(A4:A6)-6)/24+("0"&RIGHT(A4:A6,6)),A4:A6))
 
Last edited:
Upvote 0

Forum statistics

Threads
1,215,066
Messages
6,122,948
Members
449,095
Latest member
nmaske

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top