cancel
Showing results for 
Search instead for 
Did you mean: 

Sum of Time

Former Member
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

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

Answers (1)

Answers (1)

Former Member

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