Sign in with Microsoft
Sign in or create an account.
Hello,
Select a different account.
You have multiple accounts
Choose the account you want to sign in with.

When you type numbers that begin with zeros, like in some personal identification numbers, phone numbers, credit card numbers, product codes, or postal codes, Excel removes these leading zeros. To prevent this, you can first apply the Text format to the cells before you type or paste the numbers. Here’s how:

  1. Select the cells on your worksheet where you’ll be adding the data.

  2. Right-click anywhere in the highlighted cells, and then on the shortcut menu, click Number Format >Text >OK.

    Excel for the web Number Format screen

  3. Type or paste the numbers in the formatted cells.

Tip: Also apply Number format for numbers that are 12 digits or longer. Otherwise Excel for the web automatically applies the Scientific format and converts any numbers after the 15th digit to zeros.

Learn more about the available number formats and how to format numbers.

Need more help?

Want more options?

Explore subscription benefits, browse training courses, learn how to secure your device, and more.

Communities help you ask and answer questions, give feedback, and hear from experts with rich knowledge.

Was this information helpful?

What affected your experience?
By pressing submit, your feedback will be used to improve Microsoft products and services. Your IT admin will be able to collect this data. Privacy Statement.

Thank you for your feedback!

×