Scientific notation issue

daveyc18

Well-known Member
Joined
Feb 11, 2013
Messages
707
Office Version
  1. 365
  2. 2010
so i open a text file , buit the issue is that when the macro does so, it obviously will open it in excel and what happens is that one of the cusips (eg 064151E58) gets automatically converted to scientific notation (6.42E+62 in this case)....is there anyway to prevent this?

or , perhaps, as a control, scan the column to see if the formatting is scientific notation, then alert the user that you'l
 

Excel Facts

Excel motto
Not everything I do at work revolves around Excel. Only the fun parts.
Don't open it, import it. That will give you the chance to specify that the column type is Text.
 
Upvote 0
Use the import text wizard & then you can specify those columns should be text.
 
Upvote 0
Yes, just turn on the macro recorder & record yourself dong it manually & you 'll have the code.
 
Upvote 0
what about the part of scanning cells if its scientific notiation format? just curious what the code would be or if its even possible
 
Upvote 0
You don't "scan" the cells, you just specify which columns need to be imported as text.
 
Upvote 0
using the import wizard ...used office 365...oddly, it copies the data as a table
 
Upvote 0

Forum statistics

Threads
1,214,982
Messages
6,122,573
Members
449,089
Latest member
Motoracer88

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