File with a text cfield onverts to scientific notation

Amileaux

Board Regular
Joined
Nov 3, 2002
Messages
110
I have a file that comes in as .csv (and now .xls) with a job number field. We have changed the program so we wrap the job number in double quotes ("jobnumber"). We did this to try a stop excel from converting some of these numbers (8 digits in length) to Scientific Notation. However, it did not work. We can clearly see the double quotes before we import the file - and excel still converts some of them. The only way I've gotten this to work is to change the .csv to .xls and then that forces the text import wizard to pop - then I'm able to make to force that field to text. My question is this (finally) - Why didn't wrapping the job number in double quotes work? Thank you. Marie
 

Excel Facts

Spell Check in Excel
Press F7 to start spell check in Excel. Be careful, by default, Excel does not check Capitalized Werds (whoops)
Excel still trys to convert this into a number, and if it can, then will put it as a number in your worksheet. Can you append a single quotation to the beginning of your job number (ie. "'jobnumber")? When Excel reads this it will read it as text and thus leave it be.
 
Upvote 0
Why can't just just reformat it the way you need it once it is in Excel? Are you trying to preserve leading zeroes?
 
Upvote 0
Thanks for the tip on the single quote. Let me make sure I understand - all that is needed is to load a single quote in front of the job field when it is pulled? Or single quotes around the job number field. ie. 'jobnumber vs 'jobnumber'.

I tried to convert the field to General and the jobs with scientific notation became very large - converting after importing did not seem to work.

Thank you. Marie
 
Upvote 0

Forum statistics

Threads
1,221,709
Messages
6,161,431
Members
451,705
Latest member
Priti_190

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