I was not at home so I just discover your question.
• If values in column Total are time ones, we aren't allowed to add them. So an auxiliary column storing the durations in a decimal format is required.
Given your table,
the simpler scheme would be (English format. You will have to replace commas by semi-colons):
column D:
=IF(OR(ISBLANK(B),ISBLANK(C)),"",(TIMEVALUE(C)-TIMEVALUE(B)))
cell D9:
=SUM(D2:D7)
column E:
=IF(D="","",TIME(0,0,ROUND(D
24*6060,0)))
cell E9:
=IF(D9<1,TIME(0,0,ROUND(MOD(D9,1)
24*60*60,0)),INT(D9)*24+HOUR(TIME(0,0,ROUND(MOD(D9,1)*24*60*60,0)))&":"&RIGHT("0 0"&MINUTE(TIME(0,0,ROUND(MOD(D9,1)*24*6060,0))),2))
• If values in column Total may be decimal ones, we may use a single formula to calculate the sum.
I put it in D10
=IF(SUM(D2:D7)<1,TIME(0,0,ROUND(MOD(SUM(D2:D7),1)
24*60*60,0)),INT(SUM(D2:D7))*24+HOUR(TIME(0,0,ROUND(MOD(SUM(D2:D7),1)*24*60*60,0 )))&":"&RIGHT("00"&MINUTE(TIME(0,0,ROUND(MOD(SUM(D2:D7),1)*24*6060,0))),2))
Yvan KOENIG (from FRANCE lundi 8 septembre 2008 09:12:59)