Text (number) , then csv save changes it back to number

7thMonth

New Member
Joined
Jun 7, 2017
Messages
3
When I save a text col (all the items are numeric) then save as CSV (MS-dos) it converts the items to numbers.

I have a worksheet where I use a Vlookup and IF functions, When IF functions the results are numbers, but in a text form. IN other words the result is coming from a text cell are "123456789000" in it. When I copy the worksheet to a new worksheet everything gets transferred OK. I then save the new worksheet as a csv (ms-dos) file. When I open the CSV file instead of "123456789000' I get "1.2E+11 ([FONT=&quot]scientific notation)[/FONT]. How do get it so save and show the full number, which is really a text.

This is not a column width issue, but some kind of conversion issue.

TIA
 

Excel Facts

How to total the visible cells?
From the first blank cell below a filtered data set, press Alt+=. Instead of SUM, you will get SUBTOTAL(9,)
When I open the CSV file instead of "123456789000' I get "1.2E+11 (scientific notation).
How exactly are you opening the CSV file?

From my experience, it is saved correctly most of the time. Where people often get into trouble is in opening the CSV file in Excel, which will automatically do a conversion on the data.

Because of this reason, if you REALLY want to see what is in a CSV file without altering it, NEVER use Excel to view. Open it in a Text Editor, like NotePad, WordPad, or your favorite third party text editor.

That will show you what REALLY is in the file, without altering it.
 
Last edited:
Upvote 0

Forum statistics

Threads
1,223,237
Messages
6,170,928
Members
452,366
Latest member
TePunaBloke

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top