Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 18
Default Unwanted formatting of time data

Hello. I have imported some data into Excel. One of the columns represents
time and looks like this: "2008-02-14 15:40:07,734". I do a find-replace to
replace all ',' in this field with '.'. Whenever I do this, however, Excel
converts all of the data in this field to some sort of time representation.
This is not what I want. I just want the original text as it was.

I have tried setting the field to General and Text formats, and Excel still
does the strange time formatting after Find/Replace. After the conversion,
I've tried setting the field to Text, and I just get some silly time
representation that looks like this: "39492.6528672917"

Does anyone know how to turn off this autoformatting? I've looked all over
hte options and can't find anything.

Thanks,
Lucas
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,651
Default Unwanted formatting of time data

=TEXT(A2,"yyyy-mm-dd hh:mm:ss.000") will convert your time to text.

Another option is to use =SUBSTITUTE(A1,",",".") on your original cell
(instead of doing Edit/ Replace), and that will leave the result as text.
--
David Biddulph

"Lucas" wrote in message
...
Hello. I have imported some data into Excel. One of the columns
represents
time and looks like this: "2008-02-14 15:40:07,734". I do a find-replace
to
replace all ',' in this field with '.'. Whenever I do this, however,
Excel
converts all of the data in this field to some sort of time
representation.
This is not what I want. I just want the original text as it was.

I have tried setting the field to General and Text formats, and Excel
still
does the strange time formatting after Find/Replace. After the
conversion,
I've tried setting the field to Text, and I just get some silly time
representation that looks like this: "39492.6528672917"

Does anyone know how to turn off this autoformatting? I've looked all over
hte options and can't find anything.

Thanks,
Lucas



  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 18
Default Unwanted formatting of time data

Thanks, David! That worked fine.
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
Delete unwanted data JJ Excel Worksheet Functions 1 February 26th 08 08:14 AM
Formatting time from imported data Wanna Learn Excel Discussion (Misc queries) 3 June 15th 07 07:52 PM
Time formatting:data 1:30:20 entered reads in 1:30:20 pm Ellen Excel Worksheet Functions 2 February 17th 06 02:10 AM
time formatting and time categorizing (vlookup or data validation) MarianneR Excel Worksheet Functions 4 November 18th 04 03:24 PM
time formatting and time categorizing (vlookup or data validation) MarianneR Excel Worksheet Functions 0 November 18th 04 03:13 PM


All times are GMT +1. The time now is 08:05 PM.

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"