Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
Ang Kah Huat
 
Posts: n/a
Default how to tell excel to read numeric field as character fr a csv file

hi,
i have a csv file with some fields, one of the field which i want it to be
a character field, but the field contain only numeric, when excel open the
file, it became numeric, this may cause problem, cause the field is a credit
card number (e.g 1234567812345678 ), the excel will show 1.23457E+15, and the
actual value became 1234567812345670, that is totally wrong.

how can i do it without open the file, do some changes and save the file
again ?

rgds
Huat

  #2   Report Post  
Posted to microsoft.public.excel.misc
Niek Otten
 
Posts: n/a
Default how to tell excel to read numeric field as character fr a csv file

Change the file extension to TXT and import as a text file.
That will give you options per field

--
Kind regards,

Niek Otten

"Ang Kah Huat" wrote in message
...
hi,
i have a csv file with some fields, one of the field which i want it to
be
a character field, but the field contain only numeric, when excel open the
file, it became numeric, this may cause problem, cause the field is a
credit
card number (e.g 1234567812345678 ), the excel will show 1.23457E+15, and
the
actual value became 1234567812345670, that is totally wrong.

how can i do it without open the file, do some changes and save the file
again ?

rgds
Huat



  #3   Report Post  
Posted to microsoft.public.excel.misc
Ang Kah Huat
 
Posts: n/a
Default how to tell excel to read numeric field as character fr a csv

hi,
Thanks, is it possible to do it without any human interface ? can the user
open the file and see the result correctly ? cause it have a lot of fields to
do so and this will be a daily file. we need to automate it.

rgds
Huat

"Niek Otten" wrote:

Change the file extension to TXT and import as a text file.
That will give you options per field

--
Kind regards,

Niek Otten

"Ang Kah Huat" wrote in message
...
hi,
i have a csv file with some fields, one of the field which i want it to
be
a character field, but the field contain only numeric, when excel open the
file, it became numeric, this may cause problem, cause the field is a
credit
card number (e.g 1234567812345678 ), the excel will show 1.23457E+15, and
the
actual value became 1234567812345670, that is totally wrong.

how can i do it without open the file, do some changes and save the file
again ?

rgds
Huat




  #4   Report Post  
Posted to microsoft.public.excel.misc
Niek Otten
 
Posts: n/a
Default how to tell excel to read numeric field as character fr a csv

Do it once manually, while recording a macro.

See

http://www.mvps.org/dmcritchie/excel/getstarted.htm

--
Kind regards,

Niek Otten

"Ang Kah Huat" wrote in message
...
hi,
Thanks, is it possible to do it without any human interface ? can the user
open the file and see the result correctly ? cause it have a lot of fields
to
do so and this will be a daily file. we need to automate it.

rgds
Huat

"Niek Otten" wrote:

Change the file extension to TXT and import as a text file.
That will give you options per field

--
Kind regards,

Niek Otten

"Ang Kah Huat" wrote in message
...
hi,
i have a csv file with some fields, one of the field which i want it
to
be
a character field, but the field contain only numeric, when excel open
the
file, it became numeric, this may cause problem, cause the field is a
credit
card number (e.g 1234567812345678 ), the excel will show 1.23457E+15,
and
the
actual value became 1234567812345670, that is totally wrong.

how can i do it without open the file, do some changes and save the
file
again ?

rgds
Huat






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
"Unable to read file" error message when opening a Excel file that contains a PivotTable report. Tim Marsden Charts and Charting in Excel 2 October 15th 05 02:10 PM
Excel updating from XML file - file path specific? Sean Excel Discussion (Misc queries) 4 August 5th 05 12:56 PM
Excel File - Read Only Error ritu Excel Discussion (Misc queries) 3 July 20th 05 06:59 AM
how do i read an 2000 office Premium Excel file? I don't have the. BigBod Excel Discussion (Misc queries) 2 June 28th 05 06:01 PM
Excel Viewer Won't Read xls file! Graham Jones Excel Discussion (Misc queries) 1 May 12th 05 09:08 PM


All times are GMT +1. The time now is 03:54 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"