Easy Steps to Insert "0" in Excel Cells

Jogleen CaliponJogleen Calipon
4 min read

Have you ever wondered why adding zero in Excel doesn't work? Sometimes you need to perform some rituals for zero to appear in your cell (pun intended!).

We will cover some of the easiest ways to do that in this article!

To guide you, here's our step-by-step procedure to give you an overview:

  1. Preparing data: If you want to follow along, I have uploaded the dataset to Kaggle. You can download it and follow along with me throughout this article.

  2. Using the Text Format: We will learn how to use the "Text format," especially in this scenario.

  3. Using a single quote ('): We will explore how to use a single quote effectively.

  4. Taking advantage of Custom Format: We will explore how to use this format and its application.

Prepare the data

You can download the dataset from Kaggle.
(If you don't have a Kaggle account, you can create one using your Google account.)

Your dataset should look like this:

Let's create backup data, which will also serve as our reference. Right-click on your worksheet (Raw Data) and look for Move or Copy. Click it and check the Create a copy checkbox.

Let's rename the data from Raw Data (2) to Text Format and let's add a tab color. You can either double-click the worksheet or right-click it to see the Rename option.

Using the Text Format

Assuming that the correct format for the Block and Phase columns is 01 and 001, respectively. However, what we have on our dataset is just Block 1 and Phase 1. To rectify this, we will use the Text format. There's a shortcut to the Text format if you're unfamiliar with it. You can either click anywhere on the Home ribbon shortcut or use the Ctrl + 1 keyboard shortcut. Either or will save you time!

First, highlight C3 go to Format Cells, and choose the Text format. Once the format has been changed go to the formula bar to add the 0 before the 1. Hold and drag the fill handle to fill the entire column.

You will notice that there are some warning signs on your cell. Do not be alarmed; Excel is only telling us that the number has been converted to text and is not applicable for formulas.

Now let's do the same procedure to the Phase column; however, this time we will be adding two zeros instead of one. Your output should look like this below

Using a single quote (')

Now let's move forward to our Zip column. Our Zip column has only a 4-digit number. Assuming that we need to have a 5-digit number, adding a zero before the number would correct the format to 01237.

Now, before we make any changes, let's add another worksheet dedicated to this section. We can follow the same procedure as above. Let's make a copy of the Text Format worksheet and rename it as Single Quote. It would look like this as your output.

Let's head to cell G3 to add a zero before the number. We can follow the above procedure, or we can do it the easy way! In your formula bar, add a single quote before the number followed by zero. ='01237 then drag the fill handle below to fill the entire column of the new format.

Noticed something?

Yeah, I know. It is exactly the same thing as above, but without going to the Format Cells option!

Which one do you prefer? You can effectively use this if you want something versatile since the format hasn't been changed, unlike the above process, where we change the format of the number.

Taking advantage of Custom Format

Now for the last part of this guide, we will move forward on the Phone column. Let's create a dedicated worksheet for this procedure. We can copy the Single Quote worksheet and rename it as Custom Format. Your output should look like this:

Let's head to cell H3 and go to the Format Cell option. Look for Custom and type in your desired format. We can either use just the plain format, which adds a zero before the number, or we can follow the standard phone format here in the Philippines (consult your stakeholder on which format to follow appropriately).

Once you have your desired format, hold and drag the fill handle to update the entire column with the new format. Your output should look like this.

There are still many ways to do this, but so far, this has been the easiest way I've found to handle this scenario. I hope I was able to provide you with some useful insights. If you have questions, feel free to leave a comment, and I will gladly answer them!

References:

Insert or delete a worksheet

Display or hide zero values

Change the format of a cell

Available number formats in Excel

Telephone numbers in the Philippines

0
Subscribe to my newsletter

Read articles from Jogleen Calipon directly inside your inbox. Subscribe to the newsletter, and don't miss out.

Written by

Jogleen Calipon
Jogleen Calipon

My name is Jogleen, and I am a Data Analyst with over four years of experience in transforming data into actionable insights. I have strong skills in the following areas: Data Analysis & Visualization Power BI: Creating dashboards, using DAX, data modeling, and Power Query. Excel: Performing ETL (Extract, Transform, Load) processes, utilizing advanced functions such as VLOOKUP, INDEX-MATCH, and SUMIFS, along with Power Pivot and Power Query. Python: Leveraging data analysis libraries, including Pandas, NumPy, and Matplotlib. R: Conducting analysis and visualization using dplyr, ggplot2, tidyr, and Shiny. Database Management SQL: Executing queries, performing data extraction and manipulation, and designing databases. Project Management & Collaboration GitHub: Utilizing version control and repository management. Jupyter/Google Colab: Working in collaborative notebook environments for both Python and R analyses. Environment Management Anaconda: Managing environments and packages for R and Python projects. I am dedicated to helping businesses make informed decisions. Feel free to explore my projects, and I welcome any connections for potential collaborations!