How to write leading zeros in Excel

In Excel, it is not possible to write zeros before a sequence of numbers. But in practice with some work, writing a zero at the beginning of the sequence is required. The following article will guide how to write leading zeros.

In Excel, it is not possible to write zeros before a sequence of numbers. But in practice with some work, writing a zero at the beginning of the sequence is required. The following article will guide how to write leading zeros.

Method 1: Enter apostrophes before the number sequence to enter.

Excel automatically removes the quotes, but there is a blue triangle warning above.

Picture 1 of How to write leading zeros in Excel

Method 2: Choose a column format of type Text.

Step 1: Select the column to create numbers 0 -> Right-click -> Select Format Cells .

Picture 2 of How to write leading zeros in Excel

Step 2: The Format Cells dialog box appears. At Category -> select Text -> OK .

Picture 3 of How to write leading zeros in Excel

The result when you enter the leading zero does not disappear.

Picture 4 of How to write leading zeros in Excel

Method 3: Use Custom.

For example: The rule has 10 digits if the value is only 5 digits then the first 5 digits enter is 0. If there are 9 digits, the first digit enters 0 -> Please follow this way:

Step 1: Select the column to write 0 -> Right-click -> Format Cells .

Picture 5 of How to write leading zeros in Excel

Step 2: A dialog box appears, select Custom -> Item Type enter the number of digits 0 you want to display (assuming choose 12) -> OK .

Picture 6 of How to write leading zeros in Excel

Result:

Picture 7 of How to write leading zeros in Excel

If you enter 3 digits, Excel automatically inserts 12-3 = 9 leading zeros in front of it. Enter the number with 11 digits => with 1 leading zeros. If you enter 12 digits, no leading zeros are displayed.

Good luck!

Update 19 May 2020
Category

System

Mac OS X

Hardware

Game

Tech info

Technology

Science

Life

Application

Electric

Program

Mobile