Former Member

# Sum of Time

Dear All,

I want to sum up of the Time field in Crystal Report. For example I have times as 8.30, 8.30, 9.30, 10.00, 8.30. So the sum should be shown as 44.20. How to achieve this in crystal report.

Regards,

Kamlesh

10|10000 characters needed characters exceeded

### Related questions

Former Member
Posted on Sep 10, 2009 at 12:06 AM

Do you require to show sum as 44.20 or 45.00?

in case of showing 45 hours

create formulas

1. hrs : DatePart('H', ) 2. minutes : DatePart('M', )

3. Sum : totext( Sum ({@hrs})+ INT(Sum ({@minute})/60),0,"")&":"&totext(remainder( Sum ({@minute}),60),"00")

Jyothi

Edited by: Jyothi Yepuri on Sep 10, 2009 2:13 AM

10|10000 characters needed characters exceeded
• Former Member
Posted on Sep 09, 2009 at 06:18 PM

You should be able to group on the time field, add time field to details section, right click it, select insert summary, and select sum, and where you want the sum, Group 1, or 2, or Grand Total footer... etc... This answer is for CR XI