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.

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

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

How to write leading zeros in Excel Picture 1

Method 2: Choose a column format of type Text.

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

How to write leading zeros in Excel Picture 2

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

How to write leading zeros in Excel Picture 3

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

How to write leading zeros in Excel Picture 4

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 .

How to write leading zeros in Excel Picture 5

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

How to write leading zeros in Excel Picture 6

Result:

How to write leading zeros in Excel Picture 7

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!

4 ★ | 1 Vote

May be interested

  • How to make PowerPoint - Instructions for making reports and presentations using PowerPointPhoto of How to make PowerPoint - Instructions for making reports and presentations using PowerPoint
    powerpoint is an application that helps you create presentations, reports, presentations ... this article will guide step by step making powerpoint for new students.
  • Insert music into PowerPointPhoto of Insert music into PowerPoint
    instructions for inserting music into powerpoint. to make your powerpoint presentation more vivid and suitable for the content and purpose of the presentation, you can insert music into powerpoint.
  • How to create tables, draw tables in WordPhoto of How to create tables, draw tables in Word
    working with word, there will be times when you have to use tables to store data. microsoft word gives you many ways to create tables, draw tables as well as provide you with a lot of tools to help you have a beautiful and easy-to-see data table.
  • Instructions to create a Template for PowerPointPhoto of Instructions to create a Template for PowerPoint
    powerpoint has many templates (templates) available that you can use to create presentation files. but if you want to create your own template to use, it is not difficult.
  • The best PowerPoint templates 2016Photo of The best PowerPoint templates 2016
    below is a summary of the best powerpoint templates 2016, you can download the powerpoint template file at the end of the article.
  • The best Slide templates 2016Photo of The best Slide templates 2016
    you are looking for beautiful slides suitable for your presentation. so you can refer to the beautiful slide templates here. here is a summary of the best slide templates in 2016, please refer to and download the beautiful slide template file at the end of the lesson.