Scientific Notation Removes values when converting cell to Number

JShearer

New Member
Joined
Aug 1, 2019
Messages
2
Just recently I've run into this issue. Microsoft® Excel for Office 365 MSO (16.0.11328.20362) 32-bit

I process data files that have very long alpha/numeric strings and when bringing into Excel, only certain rows display as 2.1E+61.

When i change the cell to number format and no decimal, I lose the values. The issue appears to be in the number of contigous values in the cell.

I have a formula that extracts numbers from a certain location within the string, and the formula =IF(LEFT(B1,2)="21",MID(B1,26,4),"<>") should return 2238, but only returns 0000

The original data is this:

21000000030000000000000022380000000000004924000000000000000000

When I convert the cell to a Number format i get this and the data is lost:

21000000030000000000000000000000000000000000000000000000000000

I have another row that has the following data and it works correctly, i.e., no Scientific Notation and the left/mid formula works:

1202251900600000024620000001835000000111900016399

Any ideas on how to prevent Excel from altering the data?
 

Excel Facts

Return population for a City
If you have a list of cities in A2:A100, use Data, Geography. Then =A2.Population and copy down.
The data needs to be imported as Text and remain as text. Numbers in Excel (64-bit IEEE Doubles) only every display a max of 15 significant digits.
 
Upvote 0
Thanks that was the trick. I also created a blank workbook and marked all cells as text. I then use that as a template so I can copy/paste the data and keep my formulas intact.
 
Upvote 0

Forum statistics

Threads
1,224,817
Messages
6,181,147
Members
453,021
Latest member
Justyna P

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