How to work with numbers containing more than 15 digits in Excel

swapnilpradhan2688

New Member
Joined
Jun 7, 2020
Messages
18
Office Version
  1. 2013
Platform
  1. Windows
  2. Mobile
  3. Web
I have a 16 digit number 2019016400766922. When I paste it as Text it shows 2.01902E+15 after this when i double click on dis it gives me 2019016400766920. Last digit 2 becomes 0. kindly help. thank you
 

Excel Facts

How can you automate Excel?
Press Alt+F11 from Windows Excel to open the Visual Basic for Applications (VBA) editor.
Convert it to text, and work with it like a string, not a number.
 
Upvote 0
i did as you have mentioned before posting the query but it is not giving me desired answer
 
Upvote 0
It all depends on how exactly you enter it.
One way to make sure it gets entered as text is to first type in a single quote, then the value, i.e.
' 2019016400766922
Then it will keep all 16 digits, and won't display the '.
 
Upvote 0
thank you for the solution
but if we have more data than what should be the solution as it will be difficult to put " ' " in each cell.
 
Upvote 0
How exactly is the data being entered into Excel?
Are you importing it, or entering it manually?
What column(s) are these long number strings being entered into?
 
Upvote 0
i have the data in word 2013. first i convert the column in excel to text and than copy the whole in word and paste it in excel.
 
Upvote 0
I think the copying may be an issue. I don't know if it is possible to get it to maintain the text format copying that way.
I don't deal too much copying/importing data from Word to Excel. Perhaps one of these methods will work better: 3 Ways To Import Data From MS Word To Excel.
You would have to try it out and see if any of them work better.
 
Upvote 0
i have the data in word 2013. first i convert the column in excel to text and than copy the whole in word and paste it in excel.

The following works for me in Excel 2020, assuming the MSWord text is unstructured. That is, it is just plain text in an MSWord doc.

See the image below.

1. Select and copy the column of text in MSWord.
2. In Excel, format the destination columns or cells as Text.
3. Select the first target cell, right-click, and click Paste Options: Match Destination Formatting.

(Note: That might also work for structured MSWord data; that is, the data is in a table object. I just didn't try it.)

copy-paste-match-format.jpg


Column A shows the result after copy-and-paste-match-format into A2.

-----
PS.... Even though the data appears as text with no loss of accuracy, you still cannot reference the cells in an arithmetic expression with any expectation of retaining that accuracy.

Whenever Excel interprets text as a number, it only interprets the first 15 significant digits, replacing any digits to the right with zeros.
 
Last edited:
Upvote 0

Forum statistics

Threads
1,215,299
Messages
6,124,125
Members
449,142
Latest member
championbowler

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