How to Stop Excel from Changing Long Numbers and AutoCorrecting Text
Question details
The user needs to prevent Excel from rounding numeric values with 16 or more digits to zero, and to stop the automatic replacement of specific abbreviations like HSA.

- Product
- Microsoft Excel
- Device & OS
- not provided
- Scenario
- Entering long numerical sequences (such as credit card numbers) or typing specific corporate abbreviations into spreadsheets.
- Observed behavior
- Excel automatically changes any digits beyond the 15th to zero and incorrectly autocorrects the typed abbreviation 'HSA' to 'HAS'.
Identify the specific columns that will hold long numeric values before entering your data, as formatting them after the digits are changed to zero will not restore the original numbers.
Format Cells as Text to Preserve Long Numbers
Use this solution to prevent Excel from truncating or rounding numbers that are 16 digits or longer (like credit card or tracking numbers).
Excel has a 15-digit precision limit for numeric values. When you enter a number longer than 15 digits, Excel automatically replaces the remaining digits with zeros. To bypass this, you must instruct Excel to treat the sequence as text rather than a mathematical number.
Select the empty cells or entire column where you plan to enter the long numbers. Right-click and choose 'Format Cells', then select 'Text' under the Number tab and click OK.
Type your long 16+ digit numbers into the formatted cells. Excel will now store the exact digits without converting the ends to zero.
Alternatively, if you only have a few numbers to enter, you can leave the cell format as General and simply type an apostrophe (') before the number (e.g., '12345678901234567). The apostrophe will force text formatting but remain hidden in the cell.

Remove Unwanted AutoCorrect Entries
Use this solution if Excel keeps changing specific abbreviations or acronyms (like 'hsa' to 'has') as you type.
Prevent Unwanted Data Changes with WPS Spreadsheet
WPS Spreadsheet gives you full control over how your data is displayed and corrected. Easily format cells to preserve long numeric strings and customize AutoCorrect rules to fit your exact workflow without unwanted interference.
- 1. Format cells as Text: Select your target cells in WPS Spreadsheet, right-click, select 'Format Cells', and choose 'Text' to safely enter long numbers.
- 2. Access Options: Click the 'Menu' button in the top left corner and select 'Options' at the bottom of the dropdown.
- 3. Manage AutoCorrect: Navigate to 'AutoCorrect' in the settings menu to view the active replacement rules.
- 4. Remove unwanted rules: Find the rule replacing your specific abbreviation (like HSA) and delete it to prevent future auto-replacements.

Frequently Asked Questions
Why does Excel change my 16-digit number to zero at the end?
Excel follows the IEEE 754 specification for storing floating-point numbers, which limits precision to exactly 15 significant digits. Any digits beyond the 15th are automatically converted to zero to optimize calculation processing.
Can I recover the original digits after Excel changes them to zero?
No. Once Excel truncates the digits to zero and you press Enter, the original trailing digits are permanently lost. You must change the cell format to Text and manually re-enter the data.
How do I turn off AutoCorrect entirely in Excel?
You can disable AutoCorrect completely by going to File > Options > Proofing, clicking 'AutoCorrect Options', and unchecking the 'Replace text as you type' box.
Does typing an apostrophe before a number affect formulas?
Yes. Prefixing a number with an apostrophe converts it to text. Most math formulas will ignore text cells or return an error, so this method should only be used for identifiers like ID numbers or credit card numbers, not for data you plan to calculate.




