SOLVED

Display long numbers, not Exponential (Scientific) E+

%3CLINGO-SUB%20id%3D%22lingo-sub-1630686%22%20slang%3D%22en-US%22%3EDisplay%20long%20numbers%2C%20not%20Exponential%20(Scientific)%20E%2B%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1630686%22%20slang%3D%22en-US%22%3E%3CP%3EHi%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EExcel%20Subscription%20Product%2C%20Microsoft%20365%20Apps%20for%20enterprise%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20often%20use%20Excel%20to%20store%20mobile%20telecoms%20data%2C%20MSISDN%20(commonly%20known%20as%20your%20phone%20number%2C%2012%20digits)%2C%20IMSI%20(sim%2C%2015%20digits)%2C%20IMEI%20(handset%2C%2016%20digits).%3C%2FP%3E%3CP%3EIt%20has%20annoyed%20me%20for%20years%20that%20there%20is%20no%20simple%20way%20to%20set%20a%20default%20in%20Excel%2C%20to%20allow%20'long%20number'.%3C%2FP%3E%3CP%3EHowever%2C%20I%20thought%20I%20was%20working%20around%20this%2C%20by%20changing%20the%20cell%20properties%20to%20Number%20(Decimal%20Places%20%3D0)%3C%2FP%3E%3CP%3EI%20have%20just%20inserted%20357821089695082%3CFONT%20color%3D%22%23FF6600%22%3E%3CSTRONG%3E6%3C%2FSTRONG%3E%3C%2FFONT%3E%20to%20a%20cell%20with%20this%20cell%20format%2C%20and%20noticed%20that%20it%20is%20being%20changed%20to%26nbsp%3B357821089695082%3CFONT%20color%3D%22%23FF6600%22%3E%3CSTRONG%3E0%3C%2FSTRONG%3E%3CFONT%20color%3D%22%23000000%22%3E.%26nbsp%3B%20Can%20anyone%20give%20an%20explanation%20and%20tell%20me%20how%20to%20stop%20it%3F%26nbsp%3B%20There%20is%20no%20function%20(ROUND)%20associated%20with%20the%20cell%2C%20at%20least%2C%20not%20that%20I%20can%20see.%26nbsp%3B%20I%20have%20also%20chosen%20Home%26gt%3BEditing%26gt%3BClear%26gt%3BClear%20All%2C%20which%20reverts%20it%20back%20to%20E%2B%2C%20and%20re-applied%20the%20Number%20(0%20places)%2C%20resulting%20in%20the%20same%20rounding%20down%20to%202%3CSTRONG%3E%3CFONT%20color%3D%22%23FF6600%22%3E0%3C%2FFONT%3E%3C%2FSTRONG%3E.%3C%2FFONT%3E%3C%2FFONT%3E%3C%2FP%3E%3CP%3E%3CFONT%20color%3D%22%23FF6600%22%3E%3CFONT%20color%3D%22%23000000%22%3EWhat%20on%20earth%20is%20happening%3F%26nbsp%3B%20Have%20I%20been%20blindly%20doing%20this%20all%20these%20years%2C%20and%20not%20noticing%3F%3F%3F%3C%2FFONT%3E%3C%2FFONT%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CFONT%20color%3D%22%23FF6600%22%3E%3CFONT%20color%3D%22%23000000%22%3ENB%20Just%20opened%20a%20'clean'%20workbook.%26nbsp%3B%20Pasted%20in%203578210896950826%2C%20shown%20in%20cell%20as%26nbsp%3B%3C%2FFONT%3E%3C%2FFONT%3E%3C%2FP%3E%3CTABLE%20width%3D%2284%22%3E%3CTBODY%3E%3CTR%3E%3CTD%20width%3D%2284%22%3E3.57821E%2B15%3C%2FTD%3E%3C%2FTR%3E%3C%2FTBODY%3E%3C%2FTABLE%3E%3CP%3E%3CSPAN%3E%2C%20the%20formula%20bar%20instantly%20shows%26nbsp%3B%3C%2FSPAN%3E%3CSPAN%3E3578210896950820.%26nbsp%3B%20Of%20course%2C%20if%20I%20change%20to%20Number%20(0%20decimal%20places)%2C%20it%20to%20shows%26nbsp%3B3578210896950820.%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%3EFYI%2C%20I%20know%20I%20can%20use%20%3CFONT%20color%3D%22%23FF6600%22%3E%3CSTRONG%3E'%3C%2FSTRONG%3E%3CFONT%20color%3D%22%23000000%22%3E3578210896950826%2C%20and%20choose%20to%20align%20to%20(my%20preferred)%20right%2C%20but%20surely%20this%20shouldn't%20be%20necessary%20(and%20I%20get%20the%20annoying%20warning%20that%20my%20number%20is%20stored%20as%20text%2C%20right%20click%2C%20Ignore%20Error).%3C%2FFONT%3E%3C%2FFONT%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%3E%3CFONT%20color%3D%22%23FF6600%22%3E%3CFONT%20color%3D%22%23000000%22%3EIt%20is%20noted%2C%20that%20you%20would%20have%20to%20pre-format%20the%20cell%20to%20Text%20BEFORE%20pasting%20in%20the%20number%2C%20otherwise%20it%20converts%20it%2C%20and%20you%20lose%20the%20actual%20number.%26nbsp%3B%20This%20is%20just%20'silly'.%3C%2FFONT%3E%3C%2FFONT%3E%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1630686%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EExcel%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EOffice%20365%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1630738%22%20slang%3D%22en-US%22%3ERe%3A%20Display%20long%20numbers%2C%20not%20Exponential%20(Scientific)%20E%2B%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1630738%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F749191%22%20target%3D%22_blank%22%3E%40ChrizK%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EIn%20%3CA%20href%3D%22https%3A%2F%2Fsupport.microsoft.com%2Fen-us%2Foffice%2Fexcel-specifications-and-limits-1672b34d-7043-467e-8e27-269d656771c3%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noopener%20noreferrer%20noopener%20noreferrer%22%3EExcel%20specifications%20and%20limits%3C%2FA%3E%20you%20can%20see%20that%20Excel's%20number%20precision%20is%2015%20digits%3A%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22S3501.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F216234i17082FD71E27CC24%2Fimage-size%2Fmedium%3Fv%3D1.0%26amp%3Bpx%3D400%22%20title%3D%22S3501.png%22%20alt%3D%22S3501.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EItems%20such%20as%20MSISDN%2C%20IMSI%20and%20IMEI%20are%20not%20really%20numbers%2C%20but%20text%20strings%20consisting%20only%20of%20digits.%20You'll%20never%20use%20them%20in%20calculations%20such%20as%20SIN%20or%20SQRT.%3C%2FP%3E%0A%3CP%3ESo%20you%20should%20either%20format%20the%20cells%20where%20you%20enter%20such%20items%20as%20Text%20before%20data%20entry%2C%20or%20prefix%20the%20values%20with%20an%20apostrophe%20'.%20The%20latter%20forces%20Excel%20to%20treat%20a%20value%20as%20text%20even%20if%20the%20cell%20is%20not%20formatted%20as%20Text.%3C%2FP%3E%0A%3CP%3EThis%20will%20also%20allow%20preserving%20leading%20zeros.%3C%2FP%3E%0A%3CP%3E%E2%80%83%3C%2FP%3E%3C%2FLINGO-BODY%3E
Highlighted
Occasional Contributor

Hi

 

Excel Subscription Product, Microsoft 365 Apps for enterprise

 

I often use Excel to store mobile telecoms data, MSISDN (commonly known as your phone number, 12 digits), IMSI (sim, 15 digits), IMEI (handset, 16 digits).

It has annoyed me for years that there is no simple way to set a default in Excel, to allow 'long number'.

However, I thought I was working around this, by changing the cell properties to Number (Decimal Places =0)

I have just inserted 3578210896950826 to a cell with this cell format, and noticed that it is being changed to 3578210896950820.  Can anyone give an explanation and tell me how to stop it?  There is no function (ROUND) associated with the cell, at least, not that I can see.  I have also chosen Home>Editing>Clear>Clear All, which reverts it back to E+, and re-applied the Number (0 places), resulting in the same rounding down to 20.

What on earth is happening?  Have I been blindly doing this all these years, and not noticing???

 

NB Just opened a 'clean' workbook.  Pasted in 3578210896950826, shown in cell as 

3.57821E+15

, the formula bar instantly shows 3578210896950820.  Of course, if I change to Number (0 decimal places), it to shows 3578210896950820.

 

FYI, I know I can use '3578210896950826, and choose to align to (my preferred) right, but surely this shouldn't be necessary (and I get the annoying warning that my number is stored as text, right click, Ignore Error).

It is noted, that you would have to pre-format the cell to Text BEFORE pasting in the number, otherwise it converts it, and you lose the actual number.  This is just 'silly'.

3 Replies
Highlighted

@ChrizK 

In Excel specifications and limits you can see that Excel's number precision is 15 digits:

 

S3501.png

 

Items such as MSISDN, IMSI and IMEI are not really numbers, but text strings consisting only of digits. You'll never use them in calculations such as SIN or SQRT.

So you should either format the cells where you enter such items as Text before data entry, or prefix the values with an apostrophe '. The latter forces Excel to treat a value as text even if the cell is not formatted as Text.

This will also allow preserving leading zeros.

Highlighted

@Hans Vogelaar HI, thanks for the speedy reply. 

As mentioned, I know how to get around the problem.  I must apologies, as I confused the main issue, that being the conversion.

 

I can 'live with the limitation' of 15 digits (although I find it annoying I can't choose the limit), but pre-formatting cells is a pain, and I would prefer not to.

My preference would be to select the cells once they have been populated, and 'convert' to text.

The problem is that my values are being altered, as described.

In my opinion, this is completely wrong.  In some circumstances, it may be useful to round to the nearest ten, but it most certainly should be by choice, and not imposed without any method to keep the true value.

Can someone explain why this is happening, and how to stop it?

(I expect it is being forced in the same way exponential is forced, so that any number over 15 digits facilitates E+)

 

BTW just because I have explained where these numbers(!) are coming from, does not exclude them from being numbers.  For my purposes, I may want to create a sequence, simply adding 1, or steps of 5.  My use of Excel should not need any justification.

Actually, if it is 15 digits, why is 447123456789 changed to 

4.47123E+11

?  (11 digits are maintained, ie the cell shows the real value)

 

Highlighted
Best Response confirmed by ChrizK (Occasional Contributor)