Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3
Default Number in text format in CSV file

16 digit number formatted as text in a csv file is truncated when the csv
file is opened in Excel ... actually the 16th digit is changed to a 0. For
example, in the csv file, the text 1000000001423086 is shown as
1000000001423080 when the csv file is opened with Excel. Is there a setting
in Excel 2003 and/or 2007 that will prevent this from happening? This
specifically is invoice information generated by one system for loading into
another so it's really important for the invoice numbers to be correct!
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35,218
Default Number in text format in CSV file

Nope.

Excel only keeps track of 15 significant digits.

Your choices are to bring the data in as Text (not general, not as a number).

You can use Data|Import External Data (xl2003 menus) and specify each field.

Or you can rename the .csv file as .txt and use file|Open and see a similar
wizard.

Excel "knows" how to treat .CSV file extensions--even if it's not what you want!


mewild58 wrote:

16 digit number formatted as text in a csv file is truncated when the csv
file is opened in Excel ... actually the 16th digit is changed to a 0. For
example, in the csv file, the text 1000000001423086 is shown as
1000000001423080 when the csv file is opened with Excel. Is there a setting
in Excel 2003 and/or 2007 that will prevent this from happening? This
specifically is invoice information generated by one system for loading into
another so it's really important for the invoice numbers to be correct!


--

Dave Peterson
  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3
Default Number in text format in CSV file

Thanks, Dave. I just saw that in another post about renaming the .csv file
as .txt and then specify the format of each column. This will actually solve
a few other issues that I'm having to manually correct each time I do the
upload. Thanks again.

"Dave Peterson" wrote:

Nope.

Excel only keeps track of 15 significant digits.

Your choices are to bring the data in as Text (not general, not as a number).

You can use Data|Import External Data (xl2003 menus) and specify each field.

Or you can rename the .csv file as .txt and use file|Open and see a similar
wizard.

Excel "knows" how to treat .CSV file extensions--even if it's not what you want!


mewild58 wrote:

16 digit number formatted as text in a csv file is truncated when the csv
file is opened in Excel ... actually the 16th digit is changed to a 0. For
example, in the csv file, the text 1000000001423086 is shown as
1000000001423080 when the csv file is opened with Excel. Is there a setting
in Excel 2003 and/or 2007 that will prevent this from happening? This
specifically is invoice information generated by one system for loading into
another so it's really important for the invoice numbers to be correct!


--

Dave Peterson

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,346
Default Number in text format in CSV file

Hi,

when you import a txt file the Import Wizard allows you to specify in step 3
that any specified column (field) should be treated as text. So to get this
to work don't copy the file, open the .csv from inside of Excel.

--
If this helps, please click the Yes button.

Cheers,
Shane Devenshire


"mewild58" wrote:

16 digit number formatted as text in a csv file is truncated when the csv
file is opened in Excel ... actually the 16th digit is changed to a 0. For
example, in the csv file, the text 1000000001423086 is shown as
1000000001423080 when the csv file is opened with Excel. Is there a setting
in Excel 2003 and/or 2007 that will prevent this from happening? This
specifically is invoice information generated by one system for loading into
another so it's really important for the invoice numbers to be correct!

  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3
Default Number in text format in CSV file

Opening the .csv file in Excel is what got me into this. Saving or renaming
the file as .txt then opening it from within Excel and going through the
wizard will work beautifully.

"Shane Devenshire" wrote:

Hi,

when you import a txt file the Import Wizard allows you to specify in step 3
that any specified column (field) should be treated as text. So to get this
to work don't copy the file, open the .csv from inside of Excel.

--
If this helps, please click the Yes button.

Cheers,
Shane Devenshire


"mewild58" wrote:

16 digit number formatted as text in a csv file is truncated when the csv
file is opened in Excel ... actually the 16th digit is changed to a 0. For
example, in the csv file, the text 1000000001423086 is shown as
1000000001423080 when the csv file is opened with Excel. Is there a setting
in Excel 2003 and/or 2007 that will prevent this from happening? This
specifically is invoice information generated by one system for loading into
another so it's really important for the invoice numbers to be correct!



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
Number Format on Excel File saved from .html file joyfulone Excel Discussion (Misc queries) 3 April 15th 09 12:07 AM
Convert numbers from text format to number format merlin68 Excel Discussion (Misc queries) 7 June 20th 07 07:03 PM
Change number (in text format) to numeric format Pam Excel Discussion (Misc queries) 5 October 24th 05 07:45 PM
convert text-format number to number in excel 2000%3f Larry Excel Discussion (Misc queries) 1 July 29th 05 08:18 PM
How do i change numbers in text format to number format? Greg New Users to Excel 1 December 14th 04 05:22 PM


All times are GMT +1. The time now is 10:29 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"