Skip to Content
author's profile photo Former Member
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

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Best Answer
    author's profile photo Former Member
    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

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    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

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.