Blank cells inside the dataset sometimes become disturbing. These also create difficulties in the calculation. There are numerous methods to remove blank cells in Excel. In this article, we are going to know about them with explanations and examples.
Download the following workbook and exercise.
10 Quick Ways to Remove Blank Cells in Excel
1. Remove Blank Cells Manually in Excel
We can manually remove blank cells. Assuming we have a dataset of the Customer’s payment history with a lot of blank cells.
- First, select all the blank cells by pressing the Ctrl key from the keyboard.
- Next right-click on the mouse and select Delete.
Or we can simply go to Home > Cells > Delete.
- Now we can see a small window. Select the required option and click OK.
- Finally, we can get the result.
2. Using ‘Go To Special’ Feature to Delete Excel Blank Cells
- Select the whole range containing blank cells at first.
- Go to Home > Editing.
- Then from the Find & Select drop-down click ‘Go To Special’
- We can see a small window pops up.
- Then select the Blanks option and click OK.
- Here we can see all the selected adjacent & non-adjacent blank cells.
- Now go to Home > Delete > Delete Sheet Rows.
- After clicking that, we can see the final result.
3. Keyboard Shortcut to Erase Blank Cells in Excel
The keyboard shortcut is another easy way to remove blank cells.
- Select all the blank cells from the range.
- Now press the ‘Ctrl + –’ keys for the result.
4. Remove Empty Cells with Find Command
The Find command is an Excel built-in option. Here we are going to use it in a dataset of the Customer’s payment history with blank cells.
- First, select the whole data range from the worksheet.
- Now in the Home tab, select the Editing.
- Go to Find & Select > Find. We can also press the Ctrl+F keys to open the Find menu window.
- In this window, click Options to see the advanced search criteria.
- Next, keep the Find what box blank.
- After that, select Sheet from the Within the drop-down box.
- We have to make sure that the ‘Match entire cell contents’ box is ticked.
- Then select Values from the Look in the drop-down box.
- Click on Find All.
- Here we can see all the blank cells. According to our dataset, there are 8 blank cells.
- Press Ctrl + A to select them all and select Close to omit the window.
- Go to Home > Delete > Delete Sheet Rows.
- At last, we can see the output.
5. Use of Filter Option for Removing Blank Cells
An in-built option Filter can help us to find the blank cells from the below dataset and remove them.
- First, select the whole dataset.
- Next, go to the Home tab.
- Click Sort & Filter > Filter.
- We can see the filter toggle in each column.
- Select one of them.
- From the drop-down, uncheck Select All & check Blanks.
- Press OK.
- Now we can see the filtered blank cells.
- Select the cells without the Header and delete them manually.
- Again click on the filter toggle.
- Click on Select All and select OK.
- In the end, we can filter data without blank cells.
6. Use of Advanced Filters to Remove Blank Cells in Excel
Sometimes we can use the Advanced filter with a condition for removing blank cells in Excel. From the bellow dataset, we are going to remove all the blank Date cells. For this, we need to take some initial steps. At first, select the criterion cell G3:G4. Here we type “<>”. Also, we need to insert the total header where we want to see the result.
- Select the entire dataset.
- Go to Data > Advanced.
- A small advanced filter window pops up.
- Now insert the list and criteria ranges, where to copy. Also, select the option to copy another cell.
- Press OK.
- Finally, we can see the result in cell range G6:J11.
7. Use the Sort Option to Delete Excel Blank Cells
We can remove Excel blank cells by sorting them. Assuming we have a dataset.
- First, select the data range.
- Go to the Data tab.
- From Sort & Filter section, select the ascending or descending Sort command.
- Now we see that all the blank cells are at the end of the dataset.
- Select the blank cells and delete them manually to see how the dataset looks.
8. Insert FILTER Function to Remove Blank Excel Cells
In an Excel Table, we can use the FILTER function. It’s a dynamic array function. Let’s say we have a data table of the Customer’s payment history in the B4:E11 range. We are going to remove the blank cells and show the result in Cell B14 by filtering the data according to the Amount row.
- Select Cell B14.
- Type the formula:
- Now hit Enter to see the result.
9. Erase Blank Cells After the Last Used Cell with Data
For removing the formatting of blank cells of the given data set after the last used cell with data, we can follow these steps.
- Select the first blank cell of the header.
- Press Ctrl + Shift + End to select the range of the cells between the last used cells with data and the current data.
- Now go to Home > Delete > Delete Sheet Columns.
- In the end, press Ctrl + S to save the worksheet.
10. Use of Power Query to Remove Empty Cells in Excel
- Select any cell in the table.
- Then for adding data into the Power Query window, go to Data > From Table/Range.
- Now select the Home tab.
- From the Remove Rows drop-down, click Remove Blank Rows.
- Then for creating a new table without blank rows, click the Close & Load option.
- Lastly, we can see the new table. We also can replace this data with the original one but it’s optional.
By using these methods, we can easily remove blank cells in Excel. There is a practice workbook added. Go ahead and give it a try. Feel free to ask anything or suggest any new methods.