Please help on accumulating large time

AngelicaWan

New Member
Joined
Aug 20, 2015
Messages
8
Hi everyone,

I got an urgent question about accumulating large time. Please help!

Is there any way to sum up 3 time in each row from A3:C6? The data format is General which I copied from other data source. The time in this table means dd:hh:mm:ss. They could not be calculated even if I change the data format to custom -> dd:hh:mm:ss.

Thanks in advance!


IIIIIISum
17:04:02:0200:00:242:23:27:40
4:20:13:080:00:1809:28:35=A3+B3+C3
4:07:24:1400:00:0007:10:51=A4+B4+C4
4:13:33:3200:00:0022:09:26=A5+B5+C5
3:10:51:0800:00:061:08:38:48=A6+B6+C6



<colgroup><col style="width: 48pt;" span="4" width="64">
<tbody>


</tbody>
 

Excel Facts

Workdays for a market open Mon, Wed, Friday?
Yes! Use "0101011" for the weekend argument in NETWORKDAYS.INTL or WORKDAY.INTL. The 7 digits start on Monday. 1 means it is a weekend.
Is there any way to sum up 3 time in each row from A3:C6? The data format is General which I copied from other data source. The time in this table means dd:hh:mm:ss. They could not be calculated even if I change the data format to custom -> dd:hh:mm:ss.

Excel does not recognize "time" that is entered in the form d:hh:mm:ss. So it is treated as meaningless text.

Moreover, we cannot rely on the format d:hh:mm:ss because "d" represents day of the month, not number of days. By coincidence, "d" seems to work for 0 to 31 days because it represents the day in Jan 1900. (Zero is a special case.) But 32 represents 1 Feb 1900, so "d" is formatted as 1.

If you want to continue to enter "time" and to present the sum in the form d:hh:mm:ss, try the following:

1. Insert a row after row 2 (currently displays 17:04:02:02 etc).
2. Enter the following formulas. Note that A3 and D4 are array-entered: press ctrl+shift+Enter instead of just Enter.
Code:
A2: =INT(A3) & TEXT(A3,":hh:mm:ss")
A3: =SUM(IF(ISNUMBER(--A4:A7),--A4:A7,IFERROR(LEFT(A4:A7,FIND(":",A4:A7)-1)+MID(A4:A7,FIND(":",A4:A7)+1,99),"")))
D4: =INT(E4) & TEXT(E4,":hh:mm:ss")
E4: =SUM(IF(ISNUMBER(--A4:C4),--A4:C4,IFERROR(LEFT(A4:C4,FIND(":",A4:C4)-1)+MID(A4:C4,FIND(":",A4:C4)+1,99),"")))
3. Copy A2:A3 and paste into B2:B3 through C2:C3.
4. Copy D4:E4 and paste into D5:E5 through D7:D7.

You can hide row 3 and column E, if you wish. Alternatively, you can avoid the helper cells by duplicating the complex expressions in the formulas in row 2 and column D (gulp!)

The format of rows 2:3 and columns D:E does not matter.
 
Last edited:
Upvote 0
Errata....
Rich (BB code):
A2: =INT(A3) & TEXT(A3,":hh:mm:ss")
A3: =SUM(IF(ISNUMBER(--A4:A7),--A4:A7,IFERROR(LEFT(A4:A7,FIND(":",A4:A7)-1)+MID(A4:A7,FIND(":",A4:A7)+1,99),"")))
D4: =INT(E4) & TEXT(E4,":hh:mm:ss")
E4: =SUM(IF(ISNUMBER(--A4:C4),--A4:C4,IFERROR(LEFT(A4:C4,FIND(":",A4:C4)-1)+MID(A4:C4,FIND(":",A4:C4)+1,99),"")))
In case you missed my late edits, I simplified the formulas by eliminating INT and TIMEVALUE.
 
Upvote 0
Hi Joeu2004,

Thank you sooooooo much!!!

That formulas are so incredible!!!!! Very helpful!!!

I will do some research on the formulas you wrote this afternoon.

Thanks again for your detailed solution!

--Angelica
 
Upvote 0

Forum statistics

Threads
1,213,490
Messages
6,113,956
Members
448,535
Latest member
alrossman

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