Skip to the content

Contact usFree tools · No signup · Files stay on your device

Developer Tools

How to stop Excel removing the 0 from BD phone numbers

How to stop Excel removing the 0 from BD phone numbers

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.

  1. Open CSV to Excel.
  2. Press "Choose CSV files" and pick your file, or paste the text into "Or paste CSV".
  3. Check the Preview. The Phone column should show 01712345678 with its zero.
  4. 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.
  5. 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, 8801712345678 is 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:

  1. Select the Phone column.
  2. Open Format Cells and choose Text on the Number tab.
  3. 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.

Frequently asked questions

Why does Excel remove the 0 from 01712345678?
Excel sees a string of digits and treats it as a number. A number has no leading zero, so 01712345678 is stored as 1712345678. The zero was never part of the value as far as Excel is concerned.
Is the zero lost for good once I save the file?
If you save a CSV after Excel has dropped the zeros, yes: the file now contains 1712345678. If you only changed the display with a custom format, the stored value is still 1712345678 even though the cell looks right.
How many digits should a Bangladeshi mobile number have?
Eleven when written locally, starting with 01, for example 01712345678. If you see ten digits starting with 1, the zero has been dropped.
What about numbers written as +8801712345678 or 8801712345678?
Excel treats these as numbers too, and the plus sign is lost. In our CSV to Excel converter, untick “Store numbers as numbers” if you want such values kept as written.
Will this affect NID or bank account numbers?
Yes, the same thing happens to any ID that starts with 0. Numbers longer than 15 digits also get their last digits replaced by zeros in Excel, so keep long IDs as text.
Found this useful? Share it

Tools in this guide

Main tool

CSV to Excel

Turn CSV files into a proper Excel workbook: numbers you can add up, leading zeros kept, a bold header row with filter buttons that stays visible.

Open tool

Excel to CSV

Save any sheet of an Excel workbook as a CSV file, with the delimiter you need and the values exactly as Excel shows them.

Open tool

Excel to JSON

Turn a spreadsheet into JSON you can use in code: an array of objects keyed by your header row, or plain arrays.

Open tool

CSV to JSON

Paste CSV or open a file to get clean JSON — an array of objects or arrays — with proper handling of quotes, line breaks, delimiters and data types.

Open tool

Back to all guides & blog