Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3
Default Calculating Hours, Minutes and Seconds

I have a list of telephone calls exported from another database into CSV then
into Excel (original db only allows export into CSV and cannot be changed).
These are in hours minutes and seconds and could relate to around 500 entries.
I want to calculate the total duration of all calls in hours, minutes &
seconds
A1 = 00:05:03
A2 = 01:18:52
A3 = 00:45:32
TOTAL 02:08:87
I have changed the column to hh:mm:ss and get 00:00:00 as the total. I also
changed the column to text and divided it by 24/60/60 which just gave an
error of VALUE.
Incidentally, if I manually type time in and add it up, I get the correct
time.
Any ideas?

  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,501
Default Calculating Hours, Minutes and Seconds

Try this

=SUMPRODUCT(TRIM(A1:A3)+0)

Apply the appropriate time format

[hh]:mm:ss

Mike

"Lotling" wrote:

I have a list of telephone calls exported from another database into CSV then
into Excel (original db only allows export into CSV and cannot be changed).
These are in hours minutes and seconds and could relate to around 500 entries.
I want to calculate the total duration of all calls in hours, minutes &
seconds
A1 = 00:05:03
A2 = 01:18:52
A3 = 00:45:32
TOTAL 02:08:87
I have changed the column to hh:mm:ss and get 00:00:00 as the total. I also
changed the column to text and divided it by 24/60/60 which just gave an
error of VALUE.
Incidentally, if I manually type time in and add it up, I get the correct
time.
Any ideas?

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,501
Default Calculating Hours, Minutes and Seconds

BTW the correct sum of your sample data is

02:09:27

Mike

"Mike H" wrote:

Try this

=SUMPRODUCT(TRIM(A1:A3)+0)

Apply the appropriate time format

[hh]:mm:ss

Mike

"Lotling" wrote:

I have a list of telephone calls exported from another database into CSV then
into Excel (original db only allows export into CSV and cannot be changed).
These are in hours minutes and seconds and could relate to around 500 entries.
I want to calculate the total duration of all calls in hours, minutes &
seconds
A1 = 00:05:03
A2 = 01:18:52
A3 = 00:45:32
TOTAL 02:08:87
I have changed the column to hh:mm:ss and get 00:00:00 as the total. I also
changed the column to text and divided it by 24/60/60 which just gave an
error of VALUE.
Incidentally, if I manually type time in and add it up, I get the correct
time.
Any ideas?

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3
Default Calculating Hours, Minutes and Seconds

Thanks Mike,

However it did not work, changed the formatting to hh:mm:ss and applied the
formula but got a result of FALSE.

(as for my calculation of the time it just feels like a long time to the
weekend, that is my excuse anyway)

"Mike H" wrote:

BTW the correct sum of your sample data is

02:09:27

Mike

"Mike H" wrote:

Try this

=SUMPRODUCT(TRIM(A1:A3)+0)

Apply the appropriate time format

[hh]:mm:ss

Mike

"Lotling" wrote:

I have a list of telephone calls exported from another database into CSV then
into Excel (original db only allows export into CSV and cannot be changed).
These are in hours minutes and seconds and could relate to around 500 entries.
I want to calculate the total duration of all calls in hours, minutes &
seconds
A1 = 00:05:03
A2 = 01:18:52
A3 = 00:45:32
TOTAL 02:08:87
I have changed the column to hh:mm:ss and get 00:00:00 as the total. I also
changed the column to text and divided it by 24/60/60 which just gave an
error of VALUE.
Incidentally, if I manually type time in and add it up, I get the correct
time.
Any ideas?

  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,501
Default Calculating Hours, Minutes and Seconds

Hi,

Leave the cells with the times in formatted as they are which is probably
text and possibly with spaces. Don't re-type my formula, copy it from this
window and paste it into the formula bar.

Format my formula as [hh]:mm:ss

=SUMPRODUCT(TRIM(A1:A3)+0)


Mike

"Lotling" wrote:

Thanks Mike,

However it did not work, changed the formatting to hh:mm:ss and applied the
formula but got a result of FALSE.

(as for my calculation of the time it just feels like a long time to the
weekend, that is my excuse anyway)

"Mike H" wrote:

BTW the correct sum of your sample data is

02:09:27

Mike

"Mike H" wrote:

Try this

=SUMPRODUCT(TRIM(A1:A3)+0)

Apply the appropriate time format

[hh]:mm:ss

Mike

"Lotling" wrote:

I have a list of telephone calls exported from another database into CSV then
into Excel (original db only allows export into CSV and cannot be changed).
These are in hours minutes and seconds and could relate to around 500 entries.
I want to calculate the total duration of all calls in hours, minutes &
seconds
A1 = 00:05:03
A2 = 01:18:52
A3 = 00:45:32
TOTAL 02:08:87
I have changed the column to hh:mm:ss and get 00:00:00 as the total. I also
changed the column to text and divided it by 24/60/60 which just gave an
error of VALUE.
Incidentally, if I manually type time in and add it up, I get the correct
time.
Any ideas?



  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3
Default Calculating Hours, Minutes and Seconds

Thank You Thank you Thank You

The default was general but changing to text then just the cell with the
calculation works perfectly.



"Mike H" wrote:

Hi,

Leave the cells with the times in formatted as they are which is probably
text and possibly with spaces. Don't re-type my formula, copy it from this
window and paste it into the formula bar.

Format my formula as [hh]:mm:ss

=SUMPRODUCT(TRIM(A1:A3)+0)


Mike

"Lotling" wrote:

Thanks Mike,

However it did not work, changed the formatting to hh:mm:ss and applied the
formula but got a result of FALSE.

(as for my calculation of the time it just feels like a long time to the
weekend, that is my excuse anyway)

"Mike H" wrote:

BTW the correct sum of your sample data is

02:09:27

Mike

"Mike H" wrote:

Try this

=SUMPRODUCT(TRIM(A1:A3)+0)

Apply the appropriate time format

[hh]:mm:ss

Mike

"Lotling" wrote:

I have a list of telephone calls exported from another database into CSV then
into Excel (original db only allows export into CSV and cannot be changed).
These are in hours minutes and seconds and could relate to around 500 entries.
I want to calculate the total duration of all calls in hours, minutes &
seconds
A1 = 00:05:03
A2 = 01:18:52
A3 = 00:45:32
TOTAL 02:08:87
I have changed the column to hh:mm:ss and get 00:00:00 as the total. I also
changed the column to text and divided it by 24/60/60 which just gave an
error of VALUE.
Incidentally, if I manually type time in and add it up, I get the correct
time.
Any ideas?

  #7   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,856
Default Calculating Hours, Minutes and Seconds

Those times have been imported as text values, so you could try this:

highlight the column, click on Data | Text-to-values and then click
Finish on the first panel of the wizard.

You might also have some non-breaking space characters (code 160) in
there. Highlight the column, CTRL-H (for Find/Replace), then:

Find what: Alt-0160
Replace with: leave blank
Click Replace All,

where Alt-0160 means hold down the Alt key while you type 0160 on the
numeric keypad.

Hope this helps.

Pete

On Jan 30, 11:35*am, Lotling
wrote:
I have a list of telephone calls exported from another database into CSV then
into Excel (original db only allows export into CSV and cannot be changed). *
These are in hours minutes and seconds and could relate to around 500 entries.
I want to calculate the total duration of all calls in hours, minutes &
seconds
A1 = * * * * * *00:05:03
A2 = * * * * * *01:18:52
A3 = * * * * * *00:45:32
TOTAL * * * * * * * * * 02:08:87
I have changed the column to hh:mm:ss and get 00:00:00 as the total. *I also
changed the column to text and divided it by 24/60/60 which just gave an
error of VALUE.
Incidentally, if I manually type time in and add it up, I get the correct
time.
Any ideas?


Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Converting hours, minutes, seconds, to hours chouck Excel Worksheet Functions 7 January 29th 08 08:00 PM
Formula to Change Hours:Minutes:Seconds to Seconds only Cheri Excel Discussion (Misc queries) 4 August 30th 06 12:44 AM
Calculating and Adding Hours, Minutes, and Seconds in a CALL LOG EmanJR Excel Worksheet Functions 1 August 3rd 06 03:47 PM
Converting hours:minutes:seconds to just minutes Dan Vagle Excel Worksheet Functions 3 July 17th 06 11:20 PM
Convert "Time Interval" in "hours : minutes : seconds" to seconds Ianukotnorth New Users to Excel 7 May 8th 05 08:11 PM


All times are GMT +1. The time now is 09:28 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"