Preserve phone prefixes, plus signs and leading zeroes in Excel
Keep plus signs and leading zeroes in Excel phone numbers by storing them as text before you type, paste or import them, and understand why display formatting is not the same thing.
Contents
The short answer
Store telephone numbers as text, and set that up before the data goes into the cell. In a cell with the default General format, Excel treats an entry such as +00123450067 as a number. It drops the plus sign and the leading zeroes and keeps only the numeric value. Text storage keeps every character exactly as entered. Microsoft recommends text storage for identifiers like telephone numbers because they are labels, not quantities you calculate with.
Timing matters most. Changing a cell to Text after a number has already been entered does not bring back the characters Excel removed. If the plus sign or zeroes are gone, re-enter or re-import the original data after you have configured text handling.
Typing numbers in desktop Excel
- Select the column or range where the phone numbers will go.
- Press Ctrl+1 to open Format Cells.
- On the Number tab, choose Text and click OK.
- Type the numbers. The plus sign and leading zeroes now stay in place.
For a one-off entry, type an apostrophe before the number, for example '+00123450067. Excel stores that entry as text. The apostrophe does not appear in the cell; it only tells Excel how to treat the entry.
Typing or pasting in Excel for the web
Select the destination cells, right-click, choose Format Cells, then select Text under Choose Category. Only then type or paste the telephone entries. If you paste first and format afterward, the leading zeroes will already have been removed.
Importing from a CSV or text file
If you open a CSV file directly, Excel may convert the phone column to numbers as it loads, and the prefixes are lost. Import the file through Power Query instead so you can set the column type first.
- Go to Data > From Text/CSV and select the file.
- In the preview window, open the Query Editor (Transform Data).
- Select the telephone column.
- Choose Home > Transform > Data Type > Text.
- When prompted, choose Replace Current.
- Click Close & Load.
The query remembers this step. When you refresh the data later, Excel applies the Text type again, so updated files keep their plus signs and leading zeroes as well.
Text storage versus display formatting
A custom number format changes how a number looks, not what is stored. It can pad a value with zero placeholders or add punctuation so it resembles a phone number, but the cell still holds a plain number. A custom format cannot reproduce a stored plus sign, and it cannot recover zeroes that were lost during entry. Microsoft limits this approach to codes shorter than 16 digits.
Length is a second reason to use text. Excel keeps only 15 significant digits for numeric values. A longer number, such as a full international number with an access prefix and extension, has its trailing digits replaced with zeroes when stored as a number. Text storage avoids that limit. If the phone numbers need to come out of Excel unchanged, for a dialer, a CRM import or another system, use text rather than a custom format.
Checking that the numbers survived
The worksheet below is a made-up example. The strings are invented identifiers, not real or dialable numbers. It shows how to plan each entry route and then confirm the result.
| Original telephone string | Entry route | Required preparation | Character check |
| +00123450067 | Manual entry | Format destination cells as Text first | Plus sign, both leading zeroes and all remaining digits present |
| 00123450067 | Paste | Format destination cells as Text first | Both leading zeroes and all remaining digits present |
| +00123450067 | CSV import | Set the telephone column to Text in the query | Plus sign, both leading zeroes and all remaining digits present |
After entry, compare each stored value with its source. Check the opening plus sign, the leading zeroes and the rest of the characters. If anything differs, go back to the original file or list and repeat the entry or import with text handling set up beforehand. Formatting the damaged cells will not fix them.