Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Formating Time for calculation

I am importing a text file that averages employee's time into a spreadsheet.
I am having problems calculating time because when I import this text file
into the spreadsheet and it is < 1:00 it imports without the leading 0
(example as :59 instead of 0:59) which is needed to do time calculations.
Right now I have to add the zero in front of the colon manually. Does any
one know of a way to do this with a formula or programmatically?
Also, (since this has already been suggested), I cant do
Edit|replace
what: : (just a single colon)
with: 0: (zero followed by a colon)

Because 1:29 becomes 10:290:00 AM €“ and I cant do a calculation using this
format

Thanks,

Maria

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,452
Default Formating Time for calculation

When you import as text it should retain the leading zero.
It does with me anyhow.

RBS

"MariaL" wrote in message
...
I am importing a text file that averages employee's time into a
spreadsheet.
I am having problems calculating time because when I import this text file
into the spreadsheet and it is < 1:00 it imports without the leading 0
(example as :59 instead of 0:59) which is needed to do time
calculations.
Right now I have to add the zero in front of the colon manually. Does
any
one know of a way to do this with a formula or programmatically?
Also, (since this has already been suggested), I cant do
Edit|replace
what: : (just a single colon)
with: 0: (zero followed by a colon)

Because 1:29 becomes 10:290:00 AM €“ and I cant do a calculation using
this
format

Thanks,

Maria


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Formating Time for calculation

format the cell as

00:00

--
Regards,
Tom Ogilvy

"MariaL" wrote in message
...
I am importing a text file that averages employee's time into a

spreadsheet.
I am having problems calculating time because when I import this text

file
into the spreadsheet and it is < 1:00 it imports without the leading 0
(example as :59 instead of 0:59) which is needed to do time

calculations.
Right now I have to add the zero in front of the colon manually. Does

any
one know of a way to do this with a formula or programmatically?
Also, (since this has already been suggested), I can't do
Edit|replace
what: : (just a single colon)
with: 0: (zero followed by a colon)

Because 1:29 becomes 10:290:00 AM - and I can't do a calculation using

this
format

Thanks,

Maria



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 text in a calculation Tim Excel Worksheet Functions 3 September 12th 08 09:21 PM
Stop time - start time calculation squack21 Excel Worksheet Functions 5 December 10th 07 03:20 PM
Time calculation (Subraction of Idle Time) Ajay Excel Discussion (Misc queries) 6 March 4th 07 11:54 AM
Ignoring Time in a Date Time Calculation nmp Excel Worksheet Functions 3 November 23rd 05 08:32 PM
Formating a Time Calculation Result COG Excel Programming 4 July 3rd 04 09:07 PM


All times are GMT +1. The time now is 11: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"