How to Remove Blank Cells in Excel (Replace Blanks with – or 0, and Fill Blanks)

How to remove blank cells in Excel – Excel is a very useful tool for working with data. However, as the amount of data increases, it can become more difficult to manage. In these cases, removing blank cells is very important. This article explains how to remove blank cells in Excel and why it matters.

Learn how to remove blank cells in Excel, replace blanks with 0 or -, and fill blank cells.


How to Remove Blank Cells in Excel

The simplest method for removing blank cells in Excel is to use CTRL + H. Other methods include filtering, using functions, and using the Go To Special dialog box. Removing blank cells can mean deleting blanks, filling blanks, or entering a specific value in blank cells.


1. Using Find and Replace

Learn how to fill blank cells using Find and Replace.

Select the cells containing the data where you want to modify blank cells, as shown below.

Select the range of cells in which you want to find blank cells in Excel.


CTRL + A to select the entire data range.

Use CTRL + A to select all cells in Excel.



Use the CTRL + H Find and Replace feature. Leave the Find what field blank and enter “-” in the Replace with field.

Open Find and Replace, one method for removing blank cells in Excel.



After entering the values, click Replace All and wait for the completion pop-up.

Wait for Find and Replace to finish.



A “-” has been entered in the blank cells in Excel.

Replacing blank cells in Excel with - is complete.


Excel’s Find and Replace feature is highly versatile. In addition to blank cells, it is also useful for making bulk changes and edits to specific values in Excel.


2. Using Filtering

This method is useful when you want to view only a specific part of your data. Select the column containing blank cells, then select “Filter” on the “Data” tab. This displays only the nonblank values in that column. Select the column containing blank cells. Select “Filter” on the “Data” tab. This displays only the nonblank values in that column.

The second method for removing blank cells in Excel is to use a data filter.


3. Using Functions

This method is useful when you want to replace or calculate values based on specific conditions.

For example, you can use a function such as “=IF(ISBLANK(A1), 0, A1)” to replace A1 with 0 when the cell is blank.

The ISBLANK function above can be set for a range as well as a single cell, so you can return values that meet your desired conditions with a single formula.

For example, you can also use a data range in “=IF(ISBLANK(A1:B10), 0, A1)”.
You can adapt the formula above to fill blank cells in the entire data set below with a specific value.

The formula used is shown below.

H5 cell =IF(ISBLANK(B5:F18),”-“,B5:F18)

The IF and ISBLANK functions are combined to modify blank cell values in Excel.


After completing and running the ISBLANK formula, you can apply it to the entire range as shown below.

The Excel ISBLANK function can also select a range.

Related Functions

How to Set a Dynamic Range in Excel

How to Set a Table Name


IF Function

The IF function returns a value based on a condition. This function uses the following syntax.

=IF(condition, value_if_true, value_if_false)

  • condition: The condition to evaluate as TRUE or FALSE.
  • value_if_true: The value to return if the condition is TRUE.
  • value_if_false: The value to return if the condition is FALSE.

Related Functions

IF Function Definition and How to Use It

IFS Function Definition and How to Use It

SUMIFS Function Definition and How to Use It

COUNTIFS Function Definition and How to Use It


ISBLANK Function

The ISBLANK function determines whether a cell is blank.

This function uses the following syntax.

=ISBLANK(cell)

cell: The cell to determine whether it is blank.


4. Using the Go To Special Dialog Box (GO TO Feature)

You can open the Go To dialog box with the following shortcuts.

  • On Mac: CONTROL + G
  • On Windows: CTRL + G

The following example uses a MacBook.

Click a cell in the data where you want to find blank cells in Excel.

Select a cell in the data that requires blank cells to be removed in Excel.

CTRL + A to select the entire data range.

Select the entire specified range in Excel.


On a MacBook, press “CONTROL + G” and then click “SPECIAL.”

Open the GO TO box.


Select BLANKS in the selection box.

Select EXCEL BLANKS.


Click “OK” to select the blank cells in the specified data.

Blank cells in Excel are selected.


Enter the replacement value. In the example below, “-” was entered, and “COMMAND + ENTER” was pressed to enter the same value in all selected cells at once.

Press COMMAND + ENTER to enter the value in all selected cells.


Why Remove Blank Cells in Excel?

When there are many blank cells, analyzing or processing data becomes difficult. In addition, applying formulas or functions to cells with blanks can produce unexpected results. Therefore, removing blank cells improves data accuracy and readability. Data containing blanks may also be meaningless on its own. For example, if some people have not entered their year of birth in a “Year of Birth” column, the data is not suitable for analyzing years of birth. In conclusion, there are four main ways to remove blank cells in Excel: Find and Replace, filtering, functions, and the Go To Special dialog box. These methods can improve the accuracy and readability of your data. Therefore, when working with data in Excel, it is a good practice to remove blank cells.

Leave a Reply

Your email address will not be published. Required fields are marked *