#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 26
Default Formating time

Hi,
I have a spreadsheet that imports time from another program and looks
somewhat like this:
Other Time ACW Time
4:35:20 1:23:07
:07:11 :28:03
:24:10 :00:00
:09:49 :07:19
:27:01 :06:19
:19:11 :00:00
:05:44 :12:35
:25:02 :00:00
:14:28 :09:16
1:08:00 :19:35
:12:13 :00:00
:17:54 :00:00
:07:53 :00:00
:36:44 :00:00

The problem I ran into is with the times that are less than an hour; they
all show up with a colon in front and not digit. This is causing a problem
when I try to add up the times - I get an error. I tried to format the cells
as time (13:30:55) but nothing happened.

Help! :(

TIA,
Marta

  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,856
Default Formating time

I think you'll find that those times which start with a colon have
actually been imported as text values. You can get round this by using
this formula in a helper column (eg in C2):

=IF(LEFT(A2,1)=":","0"&A2,A2)*1

Format the cell as a time, copy C2 into D2 to act on B2, and then copy
these two down as far as required. You can fix the values and then
copy back over the originals, and then delete columns C and D.

Hope this helps.

Pete

On Jul 28, 6:58*pm, Marta wrote:
Hi,
I have a spreadsheet that imports time from another program and looks
somewhat like this:
Other Time * * *ACW Time
4:35:20 1:23:07
:07:11 *:28:03
:24:10 *:00:00
:09:49 *:07:19
:27:01 *:06:19
:19:11 *:00:00
:05:44 *:12:35
:25:02 *:00:00
:14:28 *:09:16
1:08:00 :19:35
:12:13 *:00:00
:17:54 *:00:00
:07:53 *:00:00
:36:44 *:00:00

The problem I ran into is with the times that are less than an hour; they
all show up with a colon in front and not digit. *This is causing a problem
when I try to add up the times - I get an error. *I tried to format the cells
as time (13:30:55) but nothing happened.

Help! :(

TIA,
Marta


  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,346
Default Formating time

Hi,

Assume your time is in A1 then in a blank cel enter

=--(0&A1)

And copy and format as necessary

--
If this helps, please click the Yes button.

Cheers,
Shane Devenshire


"Marta" wrote:

Hi,
I have a spreadsheet that imports time from another program and looks
somewhat like this:
Other Time ACW Time
4:35:20 1:23:07
:07:11 :28:03
:24:10 :00:00
:09:49 :07:19
:27:01 :06:19
:19:11 :00:00
:05:44 :12:35
:25:02 :00:00
:14:28 :09:16
1:08:00 :19:35
:12:13 :00:00
:17:54 :00:00
:07:53 :00:00
:36:44 :00:00

The problem I ran into is with the times that are less than an hour; they
all show up with a colon in front and not digit. This is causing a problem
when I try to add up the times - I get an error. I tried to format the cells
as time (13:30:55) but nothing happened.

Help! :(

TIA,
Marta

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
Formating Cells for Time [email protected] Excel Worksheet Functions 3 July 31st 07 02:58 PM
TIME FORMATING shaji Excel Discussion (Misc queries) 2 September 9th 06 03:50 PM
Help with Conditional Formating Time jonhunt Excel Worksheet Functions 3 July 13th 06 09:02 PM
Time Formating Marianne Excel Worksheet Functions 2 August 8th 05 04:55 PM
change time formating just me Excel Discussion (Misc queries) 1 July 22nd 05 04:23 AM


All times are GMT +1. The time now is 02:39 AM.

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

About Us

"It's about Microsoft Excel"