View Single Post
  #3   Report Post  
Posted to microsoft.public.excel.misc
Joe User[_2_] Joe User[_2_] is offline
external usenet poster
 
Posts: 905
Default Rounds the large numeric value

"Nilesh.Patel" wrote:
I am trying to open a csv file with large numeric value.
Ex: 10028200934100567, 10028200934100658, 10028200934100666
When the file is opened in Excel 2007, it applies
scientific number format automatically and rounds the
last two digits.


If those are truly numbers (i.e. you intend to do arithmetic or other
numerical operations with them), then Excel is doing the correct thing. If
the scientific notation bothers you, change the cell format from General to
Number.

However, if they are really IDs (e.g. credit card "numbers"), you need to
enter them as text.

Sadly, I don't believe this can done with CSV file per se. You can change
the file extension to ".txt" and use the Text Import wizard (Data Import
External Data in Excel 2003) to input the data.

Be sure click on Next, not Finish, to get to one of the last menus and
change the Column Data Format to Text instead of General. Unfortunately,
that will input everything in the column as text. So you might need to do
some conversion (of actual numbers) afterwards.

----- original message -----

"Nilesh.Patel" wrote:

Hi,

I am trying to open a csv file with large numeric value.
Ex: 10028200934100567, 10028200934100658, 10028200934100666

When the file is opened in Excel 2007, it applies scientific number format
automatically and rounds the last two digits. I can not get back the original
value.

How can I prevent Excel from doing this automatic formatting?

Thanks,
Nilesh