Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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 |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Formating text in a calculation | Excel Worksheet Functions | |||
Stop time - start time calculation | Excel Worksheet Functions | |||
Time calculation (Subraction of Idle Time) | Excel Discussion (Misc queries) | |||
Ignoring Time in a Date Time Calculation | Excel Worksheet Functions | |||
Formating a Time Calculation Result | Excel Programming |