PC Review


Reply
Thread Tools Rate Thread

Summing Times in hh:mm:ss in text

 
 
azidrane
Guest
Posts: n/a
 
      9th Nov 2006
I'm stumped.
I have a column that I'm trying to sum up. The column looks like this
A
1 11:59:37
2 18:13:29
3 12:48:39

Its in hh:mm:ss format and its pasted here in text, so its not an
actual value. Now when I do something like:
=A1+A2
I get the correct answer in the Excel decimal date format (1.259097222)
But if i do this:
=Sum(A1:A2)
I get a ZERO.
I can add as many as I want in this format:
=A1+A2+A3
and so on and it will continue to work. But the sum NEVER works.

Why, and more importantly, how do I fix it?

 
Reply With Quote
 
 
 
 
Pete_UK
Guest
Posts: n/a
 
      9th Nov 2006
Enter the value 1 into a blank unused cell somewhere, then select that
cell and click <copy>. Then highlight all the offending cells in column
A containing these times in text format and Edit | Paste Special |
Check Multiply in Operations section and click OK. This should change
all the times into numeric format, so that you can use SUM on them. You
can delete the 1 from the original cell.

Another way is to use =VALUE(A1) in a blank column and to copy this
down the column - the values can then be fixed using <copy> Edit |
Paste Special | Values (check) OK then <Esc>, and can then be used to
overwrite the original values.

Hope this helps.

Pete

azidrane wrote:

> I'm stumped.
> I have a column that I'm trying to sum up. The column looks like this
> A
> 1 11:59:37
> 2 18:13:29
> 3 12:48:39
>
> Its in hh:mm:ss format and its pasted here in text, so its not an
> actual value. Now when I do something like:
> =A1+A2
> I get the correct answer in the Excel decimal date format (1.259097222)
> But if i do this:
> =Sum(A1:A2)
> I get a ZERO.
> I can add as many as I want in this format:
> =A1+A2+A3
> and so on and it will continue to work. But the sum NEVER works.
>
> Why, and more importantly, how do I fix it?


 
Reply With Quote
 
Bernie Deitrick
Guest
Posts: n/a
 
      9th Nov 2006
azidrane,

Use

=SUM(A1:A2*1)

Entered with Ctrl-Shift-Enter

Of course, make the 2 as large as needed....

HTH,
Bernie
MS Excel MVP


"azidrane" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> I'm stumped.
> I have a column that I'm trying to sum up. The column looks like this
> A
> 1 11:59:37
> 2 18:13:29
> 3 12:48:39
>
> Its in hh:mm:ss format and its pasted here in text, so its not an
> actual value. Now when I do something like:
> =A1+A2
> I get the correct answer in the Excel decimal date format (1.259097222)
> But if i do this:
> =Sum(A1:A2)
> I get a ZERO.
> I can add as many as I want in this format:
> =A1+A2+A3
> and so on and it will continue to work. But the sum NEVER works.
>
> Why, and more importantly, how do I fix it?
>



 
Reply With Quote
 
Bernard Liengme
Guest
Posts: n/a
 
      9th Nov 2006
I copied and pasted you data and got 1.259097222 with both =A1+A2 and
=SUM(A1:A2)
Not sure what you mean by "decimal *date* format "; I assume you mean
General.
Send me file (my private email not to newsgroup) and I will see what I can
find.
--
Bernard V Liengme
www.stfx.ca/people/bliengme
remove caps from email

"azidrane" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> I'm stumped.
> I have a column that I'm trying to sum up. The column looks like this
> A
> 1 11:59:37
> 2 18:13:29
> 3 12:48:39
>
> Its in hh:mm:ss format and its pasted here in text, so its not an
> actual value. Now when I do something like:
> =A1+A2
> I get the correct answer in the Excel decimal date format (1.259097222)
> But if i do this:
> =Sum(A1:A2)
> I get a ZERO.
> I can add as many as I want in this format:
> =A1+A2+A3
> and so on and it will continue to work. But the sum NEVER works.
>
> Why, and more importantly, how do I fix it?
>



 
Reply With Quote
 
Dave Peterson
Guest
Posts: n/a
 
      9th Nov 2006
If those values are really text--like the cell was formatted as text, then the
values were typed in--then I'd try to change the values to real times.

Select the range to fix (all of column A???)
edit|replace
what: : (just a colon)
with: : (that same colon)
replace all

Then check it with =sum(a:a)



azidrane wrote:
>
> I'm stumped.
> I have a column that I'm trying to sum up. The column looks like this
> A
> 1 11:59:37
> 2 18:13:29
> 3 12:48:39
>
> Its in hh:mm:ss format and its pasted here in text, so its not an
> actual value. Now when I do something like:
> =A1+A2
> I get the correct answer in the Excel decimal date format (1.259097222)
> But if i do this:
> =Sum(A1:A2)
> I get a ZERO.
> I can add as many as I want in this format:
> =A1+A2+A3
> and so on and it will continue to work. But the sum NEVER works.
>
> Why, and more importantly, how do I fix it?


--

Dave Peterson
 
Reply With Quote
 
azidrane
Guest
Posts: n/a
 
      9th Nov 2006
Perfect. The use of the Value() function is what got it working. I
think that both of the first ones would have worked but I chose the
value for my specific purposes. What i'm tyring to do is do a two
condition sum. The filed to sum is the time one that is in text so the
use of the value function worked perfectly.For anyone else you might
find this post, here is how you can use TWO condictions to sum a list
of times that are in text format:

=SUMPRODUCT(--(B1:B20="Condition One"),--(C120="Condition
Two"),VALUE(E1:E20))

Where column E contains data that is in text form, but can be in value
form. (ie 11:59:37 entered in text to represent time is noted by excel
as the value 0.499733796 whic means 0.499733796 of a day. A day in
excel is equal to 1, therefore any time value that is less then a day
is a decimal of 1 (ie 0.499733796))

Hope that makes sence. Thanks everyone for the help and for guiding me
to the correct statement.

Cheers!

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
summing times j.ruderman Microsoft Excel Worksheet Functions 11 20th Sep 2008 01:00 AM
Summing times =?Utf-8?B?RHJpdmVy?= Microsoft Excel Discussion 2 25th Oct 2005 11:19 PM
Summing Times =?Utf-8?B?RGFuIFJvYmxlcw==?= Microsoft Access Reports 6 13th Oct 2005 07:49 PM
Vlookup, multiple times in one column summing corresponding bstuart Microsoft Excel Misc 2 21st Apr 2004 03:12 PM
Summing times. Mike Klick Microsoft Excel Discussion 2 24th Feb 2004 05:10 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 12:22 AM.