You type 01712345678 into Excel and it shows 1712345678. Open a CSV of customers and every phone number has lost its first digit. This is not a bug in your file. Excel treats a string of digits as a number, and numbers do not have leading zeros. The best way to avoid it is to stop Excel guessing: convert the CSV with our free CSV to Excel tool, which keeps values with a leading zero as text.
Below are four fixes, depending on where you are: the file is still a CSV, you are typing new data, or the zeros are already gone.
Why Excel drops the zero
A Bangladeshi mobile number is written with eleven digits: 01712345678. To you it is a label. To Excel it looks like the number one billion seven hundred million and something, so it stores 1712345678 and displays it without the zero.
The same thing happens in three common situations:
- You type or paste the number into a cell in General format.
- You double-click a CSV file and Excel opens it. Excel decides the type of each column as it reads the file.
- You open a file saved by an app, such as a delivery or school portal, and the numbers lost their zero when it was exported.
The danger is the save. If you open a CSV, let Excel drop the zeros and then press Save, the new CSV contains 1712345678. The zero is gone from the file, not just from the screen.
Fix 1: convert the CSV before Excel sees it
This is the cleanest fix when your data starts as a CSV from a form, an SMS panel or a website export.
- Open CSV to Excel.
- Press "Choose CSV files" and pick your file, or paste the text into "Or paste CSV".
- Check the Preview. The Phone column should show
01712345678with its zero. - Leave "Store numbers as numbers (so they add up)" ticked. The tool keeps any value with a leading zero as text even when this is on, and a hint under the box says so.
- Press "Convert to Excel & download" and open the
.xlsx.
The phone numbers are stored as text, and amounts in the same file become real numbers you can total. The conversion happens in your browser, so a customer list is not uploaded anywhere.
Two things to know:
- A number written with a plus sign and country code, like
+8801712345678, stays as text, so the plus sign is kept. Without the plus,8801712345678is a plain 13-digit number and is stored as a number. If your file uses that style and it must stay text, untick "Store numbers as numbers" so every value stays as written. - If the CSV is a different shape from what you expect, see the full CSV to Excel guide.
Fix 2: tell Excel the column is text before you type or paste
When you are entering data yourself:
- Select the Phone column.
- Open Format Cells and choose Text on the Number tab.
- Now type or paste the numbers. The zeros stay.
You can also type an apostrophe before one number, as in '01712345678. The apostrophe is not part of the value; it only tells Excel to keep the entry as text. The menu names differ slightly between Excel versions, but the idea is the same everywhere: set the cells to Text first, and then add the data.
Set the format before pasting. If you set it after, the numbers are already stored without their zeros.
Fix 3: import the CSV with the column set to Text
If you must open the CSV in Excel itself, do not double-click it. Open a blank workbook and use the Data tab, From Text/CSV. In the preview window choose Transform Data (or the option to edit the column types) and set the Phone column to Text before you load it. Excel then reads the digits as text.
This works, but it needs several steps each time. For a file that you convert often, Fix 1 is quicker.
Fix 4: the zeros are already gone
If you have a column of ten-digit values such as 1712345678, you can put the zero back, because every Bangladeshi mobile number has the same length.
To change only how it looks: select the column, open Format Cells, choose Custom, and type eleven zeros as the format:
00000000000
Every number is shown padded to eleven digits. The stored value is still 1712345678, so a program that reads the file as numbers will still see no zero.
To make real text with the zero: in a spare column, use this formula, where A2 holds the first number:
=TEXT(A2,"00000000000")
Fill it down, then copy the new column and use Paste Special, Values, over the old one. The cells now hold text such as 01712345678. Check a few rows. The formula pads every value to eleven digits, so it is only right for mobile numbers, not for landlines or other codes in the same column.
What happens when the data moves on
Where your spreadsheet goes next decides which fix is enough.
| Next step | What to do |
|---|---|
| You will print or read it | Custom format 00000000000 is enough |
| You will upload it to an SMS panel as CSV | Use the TEXT formula, paste values, and check the saved file in a text editor |
| You will turn it into JSON for an app | See below |
If your phone numbers are stored in the workbook as numbers with the custom format, our Excel to JSON tool has a choice that matters. Under Values, "Typed (numbers, booleans, dates)" gives 1712345678 as a number, while "Exactly as shown (text)" gives "01712345678", because it uses the text Excel displays. If the cells are already real text, either choice keeps the zero.
For a CSV source going straight to code, CSV to JSON is the shorter path. In JSON itself phone numbers must be strings: 01712345678 written without quotes is not valid JSON.
Other values with the same problem
- NID numbers that start with 0, or that are longer than 15 digits. Excel keeps 15 significant digits and replaces the rest with zeros, so a 17-digit smart NID number is damaged as soon as it is stored as a number.
- Bank account numbers with leading zeros.
- Student roll and registration numbers from SSC or HSC lists.
- Postcodes or branch codes that start with a zero.
For all of these, treat the value as a label. Store it as text and never do arithmetic on it.
A short checklist
- Never double-click a CSV that holds phone numbers or IDs.
- Convert it with CSV to Excel, or import it with the column set to Text.
- Format cells as Text before typing or pasting.
- To repair lost zeros, use
=TEXT(A2,"00000000000")and paste as values. - Keep an untouched copy of the original CSV.



