Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
kei
 
Posts: n/a
Default open csv file, display format

in my csv file, there is a string '123', but when open it, Excel treat it as
numeric and so use right alignment, any method to force Excel treat it as a
string? (I have try to pad some space character before and after the string
'123' but it still doesn't work!!)
  #2   Report Post  
Posted to microsoft.public.excel.misc
Gary''s Student
 
Posts: n/a
Default open csv file, display format

You need to invoke the import wizard:


Just re-name your file from .csv to .txt before you open it. Tell the
import wizard that the field is text
--
Gary's Student


"kei" wrote:

in my csv file, there is a string '123', but when open it, Excel treat it as
numeric and so use right alignment, any method to force Excel treat it as a
string? (I have try to pad some space character before and after the string
'123' but it still doesn't work!!)

  #3   Report Post  
Posted to microsoft.public.excel.misc
kei
 
Posts: n/a
Default open csv file, display format

Thx Gary's student,
I've found another method now, just use "=" to enclose the numeric string,
e.g. "=123", then when Excel open the .csv, it will treat it as String!!

"Gary''s Student" wrote:

You need to invoke the import wizard:


Just re-name your file from .csv to .txt before you open it. Tell the
import wizard that the field is text
--
Gary's Student


"kei" wrote:

in my csv file, there is a string '123', but when open it, Excel treat it as
numeric and so use right alignment, any method to force Excel treat it as a
string? (I have try to pad some space character before and after the string
'123' but it still doesn't work!!)

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
Excel getting Error - file format is not valid WHEN OPENING babu Excel Discussion (Misc queries) 1 August 24th 05 09:09 PM
How do I get Excel to open a previously saved file? Jeff S Excel Discussion (Misc queries) 1 August 17th 05 06:11 PM
Trying to open file, may have renamed it sirsoto Excel Discussion (Misc queries) 4 August 12th 05 12:54 PM
hidden rows & columns slow file open Simon Shaw Excel Discussion (Misc queries) 0 April 5th 05 12:21 AM


All times are GMT +1. The time now is 01:27 AM.

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"