Why is Excel reading this as a number and not text

Status
Not open for further replies.

Want2BExcel

Board Regular
Joined
Nov 24, 2021
Messages
114
Office Version
  1. 2016
Platform
  1. Windows
I have this problem with some data.
I have a table containing serial numbers and a lot of other data. The table is created through a power query that pulls the data out of an access db.
In the Access DB the data is entered as "short text", because serial numbers often includes letters.
In the PowerQuery the data is also recognized as text "ABC"
1702673786097.png
and loading it into a table, where the formatting is "Standard" and I change the whole column to be formatted as "Text" (which doesn't help). I tried formatting the columns to text before loading the table, but when loaded it is again "Standard".

The table has more than 5000+ rows but for 8 of these rows the data is a very long serial number, only containing numbers. For some reason Excel treats all cells that contain only numbers as numbers and not text and for these 8 cells it creates a problem because of the length. Excel is putting in a comma (9,88........) and because Excel can only store up to 15 significant digits. It converts any others after that to zeros ("0"). But those last 3 digits, if you look at the serial numbers in green, is exactly thoos 3 that makes every serial unique.
This is a problem for me in other parts of my workbook where I use a COUNTIF formula to verify that there a no duplicates in any serial numbers. But because of Excel's way of handling the data in those 8 cells I get a result of 6 duplicates, which is incorrect.
Picture1 serial numbers in question:
1702672437321.png

Picture2 the format problem:
TextFormat.png


Any ideas how to resolve this?
 

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)
Upvote 0
Status
Not open for further replies.

Forum statistics

Threads
1,223,227
Messages
6,170,849
Members
452,361
Latest member
d3ad3y3

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