problem with summing

  • Thread starter Thread starter cs78 via OfficeKB.com
  • Start date Start date
C

cs78 via OfficeKB.com

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!
 
Dear CS78

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

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

--

HTH

RP
(remove nothere from the email address if mailing direct)
 
It worked perfectly, thanks so much for your help!

Bob said:
=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!
 
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
 
Back
Top