+ Reply to Thread
Results 1 to 3 of 3

When I calculate the sum of times i am getting 0 (Zero)

  1. #1
    Forum Contributor
    Join Date
    01-17-2012
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    402

    Arrow When I calculate the sum of times i am getting 0 (Zero)

    I am calculating the sum of times and i am getting 0 as the result. Please help me.
    I have changed the time format in format cell also. But still I am getting 0(Zero)
    Please help me.
    I am attaching the file also.
    Attached Files Attached Files

  2. #2
    Forum Guru
    Join Date
    05-24-2011
    Location
    India
    MS-Off Ver
    Office 2021
    Posts
    2,237

    Re: When I calculate the sum of times i am getting 0 (Zero)

    That is a text values looks like H;mm:ss format. Select the column go to,

    Data | Text to columns | Finish.

    Also, you have circular Reference in A31, change formula to =SUM(A1:A30)
    Regards,
    Haseeb Avarakkan

    __________________________________
    "Feedback is the breakfast of champions"

  3. #3
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: When I calculate the sum of times i am getting 0 (Zero)

    The problem is the data, you have actually entered 00: as the first three digits, so you have entered a text string, not a time string. You can't sum text string with the SUM() function.

    So, I removed the leading 0 and the values converted to time. I changed the "format" to [hh]:mm:ss so that is still displays the leading zeros. Now the SUM() will work.
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1