ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   How do I convert a time to text format. (https://www.excelbanter.com/excel-discussion-misc-queries/72811-how-do-i-convert-time-text-format.html)

Rick

How do I convert a time to text format.
 
I want to get a list of times into another database program. But the time
formatting is getting messed up. For example. A time of 0:31:10 when
imported into the other program becomes 0.021643519. How do I convert the
time into a text format that can be exported?

Dave Peterson

How do I convert a time to text format.
 
How are you importing the data?

If you're writing your own program to extract the values, you may want to write
that field using .text (not .value).

Or if that other database program can have formatted fields, maybe just
formatting it as time would solve the problem.

Rick wrote:

I want to get a list of times into another database program. But the time
formatting is getting messed up. For example. A time of 0:31:10 when
imported into the other program becomes 0.021643519. How do I convert the
time into a text format that can be exported?


--

Dave Peterson

Kevin Vaughn

How do I convert a time to text format.
 
Perhaps you could use another column with this formula:
=TEXT(B19,"h:mm:ss")

--
Kevin Vaughn


"Rick" wrote:

I want to get a list of times into another database program. But the time
formatting is getting messed up. For example. A time of 0:31:10 when
imported into the other program becomes 0.021643519. How do I convert the
time into a text format that can be exported?


dlw

How do I convert a time to text format.
 
excel uses a serial number format for times (makes calculations easier) you
have to convert it using: =text(a1,"hh:mm:ss")

"Rick" wrote:

I want to get a list of times into another database program. But the time
formatting is getting messed up. For example. A time of 0:31:10 when
imported into the other program becomes 0.021643519. How do I convert the
time into a text format that can be exported?


Rick

How do I convert a time to text format.
 
The command text(a1,"h:mm:ss") worked. Thanks.

"Rick" wrote:

I want to get a list of times into another database program. But the time
formatting is getting messed up. For example. A time of 0:31:10 when
imported into the other program becomes 0.021643519. How do I convert the
time into a text format that can be exported?



All times are GMT +1. The time now is 10:05 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com