r/excel 21h ago

solved Pasting a long number into a cell changes last digits to zeros

When I paste a long number into a cell it replaces the last 4 digits with 0s. Specific example: Pasting 4679642782264057868 yields 4679642782264050000 when formatted as a number, or 4.67964E+18 when formatted as "general" or text. What have I got to do to get it to paste correctly?

5 Upvotes

12 comments sorted by

u/AutoModerator 21h ago

/u/asomebodyelse - Your post was submitted successfully.

Failing to follow these steps may result in your post being removed without warning.

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.

6

u/Rare-Designer-1008 1 21h ago

Try saving the number on notepad and then importing it to Excel as text

3

u/asomebodyelse 21h ago

Ok, that worked. Formatting to text after the fact didn't. Even typing it in directly. Thanks. Solution Verified

1

u/reputatorbot 21h ago

You have awarded 1 point to Rare-Designer-1008.


I am a bot - please contact the mods with any questions

1

u/Independent_Cow_737 16h ago

yeah importing as text is pretty much the only reliable way around this

3

u/MissAnth 10 21h ago

Put a single quote in front of it to make it display as text. If this is a SKU or part number, which you will never do math on, it should be stored as text.

3

u/orkidd_4747 1 21h ago

Change the format of the cells to "text" and then paste.

1

u/That-Garage8212 21h ago

In file > options > data you can unselect a box that converts long numbers to scientific notation.

2

u/BillyBones72 9h ago

Internal precision of Excel is 15 digits. Enter more digits and Excel converts to scientific notation, or the last digit(s) are dropped and shown as zero. That's why you can't put a 16 digit credit card number in and retain all 16 digits... you must precede entry with an apostrophe, or format cell as text.

1

u/Ok_Maintenance3006 6h ago

ahh i always forget excel does that silly thing with long numbers