Computing.Net > Forums > Office Software > Turning Time into Text in Excel!!!

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Turning Time into Text in Excel!!!

Reply to Message Icon

Name: Cath
Date: January 10, 2005 at 07:30:35 Pacific
OS: WinXP
CPU/Ram: PIII 256
Comment:

Okay -haven't found anyone who can answer me yet...
I have a spreadsheet I received with a column including time e.g. 21:35. I am trying to turn it into text (not by formatting) so that Excel no longer stores it as a time value but a simple string of 4 numbers (2135). I can format it all I like which changes the way I can "see" it but it is still stored as a time value so that when I try to export it as a DBF file it changes the time to decimal point values or something else strange (like 12/12/1899!!)

Does anyone know of a formula that can turn the time into a text or something!!



Sponsored Link
Ads by Google

Response Number 1
Name: Martin Crandall
Date: January 10, 2005 at 08:29:03 Pacific
Reply:

Not guaranteeing anything, but what program are you useing for your Database?

I do it all the time in Lotus 123 and Approach. I don't convert the time to text, but I'm able to import it without a problem.

I also have Excel and Access, only because M$ is insistant in dominating the world with an inferior product (jk).

Feel free to email me the files, if you want.

_________________________
The internet is no longer a toy, it's a COMBAT ZONE!


0

Response Number 2
Name: Bryco
Date: January 10, 2005 at 08:37:20 Pacific
Reply:

Formatting 21:35 (as time) into "General" format translates to the percentage of the 24 hour day as 0.899305555555555 when later multiplied by 24 = 21.58333333 hours.
And .58333333 times 60 = 35

Does this help?

Bryan


0

Response Number 3
Name: Grok Lobster
Date: January 10, 2005 at 09:02:39 Pacific
Reply:

= " ' " & A1

will turn it into text that says 0.89903555


0

Response Number 4
Name: chnos
Date: January 11, 2005 at 07:29:46 Pacific
Reply:

concatenate(hour(lc(-1);minute(lc(-1)) does the job.


0

Response Number 5
Name: Bryco
Date: January 11, 2005 at 16:15:59 Pacific
Reply:

"does the job"

Maybe in your spreadsheet. LOL

Can you spell that out for me or make it a pasteable formula assuming 21:35 is in A1?

I tried to make it work, really.

Bryan


0

Related Posts

See More



Response Number 6
Name: chnos
Date: January 11, 2005 at 23:36:22 Pacific
Reply:

have a look in function help, date/hour chapter : it can allow u to extract, from a field where something is a time or a date, the part "left" located of a ":" separate time display, even if a date is present. for example if a field contains 1/1/2005 10:00:05 and if u use hour(this row) it brings back 10, as text, no matter the way it's formatted. So on with each part of the contain, usin day(), month(), minute(). Neither, if u date is not "really "a date (i mean some text lookin like a date 10:00 but comin as text from another soft) u can use a stxt function to extract the number of characters u want, startin at the one u want. Cath's example says a time as 21:35 .For me it works.. Send me ur prob....!


0

Response Number 7
Name: chnos
Date: January 11, 2005 at 23:41:19 Pacific
Reply:

and if u're really lost, u can use data/convert and choose ":" separator....Have a nice day boys and girls


0

Response Number 8
Name: Cath
Date: January 19, 2005 at 06:56:12 Pacific
Reply:

Thanks all of you. Taxi was spot on although it did take me a couple seconds to work it out exactly!

So it's: concatenate(hour(A2),minute(A2))

which transforms 21:35 in recognised time format into 2135 as a text string!

Exactly what I wanted - thanks a lot!


0

Sponsored Link
Ads by Google
Reply to Message Icon

Outlok 2003 Displays Inco... Convert Lotus Approach 97...



Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Office Software Forum Home


Sponsored links

Ads by Google


Results for: Turning Time into Text in Excel!!!

Enter text in Excel without a mouse www.computing.net/answers/office/enter-text-in-excel-without-a-mouse/2831.html

Convert Time To Decimal In Excel www.computing.net/answers/office/convert-time-to-decimal-in-excel/416.html

URL Encode text in Excel 2007 www.computing.net/answers/office/url-encode-text-in-excel-2007/6746.html