Import text file with custom number format

Ghaug

New Member
Joined
Aug 24, 2020
Messages
2
Office Version
  1. 2016
Platform
  1. Windows
I have a large text file where the numbers are stored in a custom number format
For example 1/100 is stored as 1.0-02 in the text file and not as 1.0E-02
The imported data is transformed to text in excel "1.0-02" when I import the file
And i cant use the data for further calculation

How do i get Excel to recognise/import this as a number instead of text?

G
 

Excel Facts

Last used cell?
Press Ctrl+End to move to what Excel thinks is the last used cell.
Welcome to the Board!

You need to convert them to values.
One easy way of doing this is after importing the file, select that column with those values are replace "-" with "E-".
That should do it.
 
Upvote 0
Welcome to the Board!

You need to convert them to values.
One easy way of doing this is after importing the file, select that column with those values are replace "-" with "E-".
That should do it.

Thanks, but how to you avoid negative numbers to be falsly corrected?

e.g. -1.0 to -E1.0
 
Upvote 0
What do your values look like?

If the first number after the "-" is always "0", then replace "-0" with "E-0".
 
Upvote 0

Forum statistics

Threads
1,215,042
Messages
6,122,810
Members
449,095
Latest member
m_smith_solihull

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