+ Reply to Thread
Results 1 to 5 of 5

problem with summing

Hybrid View

  1. #1
    cs78 via OfficeKB.com
    Guest

    problem with summing

    Hi everyone,

    I'm having problems summing up a range of values. It's supposed to be time
    but because the range of data was copied over from another program, 30
    seconds would be displayed as ":30".

    I've tried auto adding a "0" or "00" in front of it and changing the formats
    to mm:ss but the sum of the range of figures still comes up as 00:00. Anyone
    knows how I can go about summing up the total amount of time? Thanks!

  2. #2
    Forum Contributor
    Join Date
    08-02-2005
    Posts
    102
    Dear CS78

    You must enter time in the correct format with a colon to seperate the seconds from the minutes from the hours. To do this specifically for seconds means that you have to enter 00:00:15 and ensure that you format it as hh:mm:ss. You can make things a bit easier by pretending the seconds are minutes and reduce the number of 00:'s you will have to enter, but once you've you done the formatting and entered seconds correctly, the rest of it will be easy

    Cheers
    Jon

  3. #3
    Bob Phillips
    Guest

    Re: problem with summing

    =SUMPRODUCT(--(LEFT("00:00:00",8-LEN(A1:A10))&A1:A10))

    --

    HTH

    RP
    (remove nothere from the email address if mailing direct)


    "cs78 via OfficeKB.com" <u14879@uwe> wrote in message
    news:55d04ccffbec0@uwe...
    > Hi everyone,
    >
    > I'm having problems summing up a range of values. It's supposed to be time
    > but because the range of data was copied over from another program, 30
    > seconds would be displayed as ":30".
    >
    > I've tried auto adding a "0" or "00" in front of it and changing the

    formats
    > to mm:ss but the sum of the range of figures still comes up as 00:00.

    Anyone
    > knows how I can go about summing up the total amount of time? Thanks!




  4. #4
    cs78 via OfficeKB.com
    Guest

    Re: problem with summing

    It worked perfectly, thanks so much for your help!

    Bob Phillips wrote:
    >=SUMPRODUCT(--(LEFT("00:00:00",8-LEN(A1:A10))&A1:A10))
    >
    >> Hi everyone,
    >>

    >[quoted text clipped - 5 lines]
    >> to mm:ss but the sum of the range of figures still comes up as 00:00. Anyone
    >> knows how I can go about summing up the total amount of time? Thanks!


  5. #5
    Roger Govier
    Guest

    Re: problem with summing

    Hi

    To convert your data, assuming the value is in A1
    =--("00:00"&A1)
    will convert it to a format that Excel understands as time.
    You need to choose Format>Cells>Number>Custom and choose hh:mm:ss
    To sum the times just use =SUM(A1:A100) but format the cell as
    [hh]:mm:ss to allow it to sum past 24 hours if necessary.

    Regards

    Roger Govier



    cs78 via OfficeKB.com wrote:

    >Hi everyone,
    >
    >I'm having problems summing up a range of values. It's supposed to be time
    >but because the range of data was copied over from another program, 30
    >seconds would be displayed as ":30".
    >
    >I've tried auto adding a "0" or "00" in front of it and changing the formats
    >to mm:ss but the sum of the range of figures still comes up as 00:00. Anyone
    >knows how I can go about summing up the total amount of time? Thanks!
    >
    >


+ 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