How to Make Empty Cells Blank in Excel (3 Methods)

The sample dataset below will be used for illustration purpose. It contains some products in column B and the total sales of each product in column C. We can see that cell C6 and cell C9 have no data. Those cells seem blank but they are not. Those cells are empty with some spaces. We need to make those empty cells blank.


Method 1 – Make Empty Cells Blank Using Excel VBA

STEPS:

  • Go to the Developer tab from the ribbon.
  • Click on Visual Basic and this will open the Visual Basic Editor or press Alt + F11.

Make Empty Cells Blank Using Excel VBA

  • Another way to open the Visual Basic Editor is right-clicking on the sheet and selecting View Code.

Make Empty Cells Blank Using Excel VBA

  • Enter the following VBA code below.

VBA Code:

Sub EmptyCells_Blank()
Dim myRange As Range
Set myRange = Selection
For Each cell In myRange
cell.Value = Trim(cell)
Next
End Sub
  • Press F5 key to run the code or click on the Run Sub button.

Make Empty Cells Blank Using Excel VBA

  • This will make all the empty cells blank.

Method 2 – Excel Filter Option to Make Empty Cells Blank

STEPS:

  • Select the whole data range.
  • Go to the Home tab on the ribbon.
  • Click on the Sort & Filter drop-down menu.
  • Select Filter.

  • The data has drop-down lists. It means that the data is filtered.
  • Click on the Sold drop-down list.
  • Select the Blanks from the selection and click OK.

  • The empty cells can be seen as the data is sorted and filtered.
  • To make the empty cells blank, go to the Home tab.
  • Click on the Clear drop-down menu bar under the Editing group.
  • Select Clear Content.

How to Make Empty Cells Blank in Excel

  • The cells are now blank.

  • Right-click on the filtered data range, select Filter and select Clear Filter From “Sold”.

  • Go to the Home tab, click on Find & Select and select Go To Special.

Excel Filter Option to Make Empty Cells Blank

  • The Go To Special dialog box will open.
  • Select the Blanks and click OK.

Show Empty Cells That Seems Blank in Excel

  • It will show the blank cells.


Method 3 – Manually Make Empty Cells Blank in Excel

STEPS:

  • Click on the cell that looks blank but there is some space. We chose cell C6.

Make Empty Cells Blank Cells Manually in Excel

  • Press Backspace.
  • This will remove all the space and make the cell blank.

Make Empty Cells Blank Cells Manually in Excel


Download Practice Workbook


Related Articles


<< Go Back to Excel Cells | Learn Excel

Get FREE Advanced Excel Exercises with Solutions!
Sabrina Ayon
Sabrina Ayon

Sabrina Ayon, a Computer Science and Engineering graduate from United International University, has been an integral part of the ExcelDemy project for two years. She authored 150+ articles, excelling in instructing through visually engaging Excel tutorials. With a passion for teaching, Sabrina conducted sessions on Excel VBA, sharing her knowledge and insights with others. Currently holding the position of Project Manager for the ExcelDemy Visual Development Project, she oversees various aspects of the project, ensuring its smooth operation... Read Full Bio

We will be happy to hear your thoughts

Leave a reply

Advanced Excel Exercises with Solutions PDF

 

 

ExcelDemy
Logo