Hide Rows with Blank Cells in Two Ways

In this article, we will show you two ways to hide rows with blank cells in two different scenarios. We apply Filter function (belongs to Sort & Filter) and Go To Special function (belongs to Editing) in two instances separately.

EXAMPLE A

Hide Rows with Blank Cells 1

We want to hide rows with blank cell included. In this instance, we want to hide row 7, row 8, row 14 and row 15.

RESOLUTION

In this instance, blank cells are only listed in B column. So, we can hide rows with blank cells by Excel Filter function. We can filter data with blank cells excluded.

STEPS

a. Select cell B1, then click Data in the ribbon, in Sort & Filter section click Filter button.

Hide Rows with Blank Cells 1

b. After above operation, an arrow button is displayed in cell B1.

Hide Rows with Blank Cells 1

c. Click the Arrow button to show all filter settings, uncheck “(Blanks)” and keep other number options checked. Then click OK button.

Hide Rows with Blank Cells 1

d. After clicking OK, rows with blank cells included are hidden.

Hide Rows with Blank Cells 1

EXAMPLE B

See another example below. Blank cells are listed in different columns.

Hide Rows with Blank Cells 1

If blank cells exist in multiple columns, hide rows by Filter is complex, we can apply Go To Special function to hide rows with blank cells in this instance.

 

RESOLUTION

In this instance, blank cells are listed in column C, D and E separately. We can apply Go To Special ->Check on “Blanks” to highlight all blank cells, then hide rows accordingly.

STEPS

a. Select range A1:B6, then click Home in the ribbon, in Editing section click Find & Select button to see options for finding texts in document.

Hide Rows with Blank Cells 1

b. Click Go To Special option.

Hide Rows with Blank Cells 1

c. In Go To Special dialog, check on “Blanks” option. Options in this dialog are exclusive. Then click OK button.

Hide Rows with Blank Cells 1

d. After clicking OK, all blank cells are highlighted.

e. Keep blank cells highlighted. Press Ctrl+9 to hide rows. In Excel, hotkey Ctrl+9 can hide rows with cell or range highlighted. If you want to unhide rows, you can press Ctrl+Shift+9. If you want to hide columns instead of rows, you can press hotkey Ctrl+0.

Hide Rows with Blank Cells 1

 

Related Posts

If Cell is This Value or That Value

IF function is frequently used in Excel worksheet to return you expect “true value” or “false value” based on the result of logical test. If you want to see if a cell is A or B, and if one of ...

If Value is Greater Than A Certain Value
If Value is Greater Than A Certain Value 1

IF function is frequently used in Excel worksheet to return you expect “true value” or “false value” based on the logical test result. If you want to see if a value in one cell is greater than a specific value, ...

If Cell is Not Blank
If Cell is Not Blank 6

IF function is frequently used in Excel worksheet to return you expect “true value” or “false value” based on the result of created logical test. If you want to see if a cell is blank or not, and leave some ...

VBA Macro For VLOOKUP From Another Sheet
vba macro for vlookup from another sheet1

In the previous post, you should know that how to fix or remove the #N/A error when using VLOOKUP formula to lookup value from another sheet. And this post will show you how to use VBA code to vlookup data ...

If Cell is Blank
If Cell is Blank_1

IF function is frequently used in Excel worksheet to return you expect “true value” or “false value” based on the result of created logical test. If you want to see if a cell is blank or not, and leave some ...

If Cell Equals Certain Text String
If cell equals certain text_1

IF function is frequently used in Excel worksheet to return you expect “true value” or “false value” based on the result of created logical test. If you want to see if cell equals a certain text string like “Win”, you ...

If Cell Contains Either Text1 or Text2
If cell contains text1 or text2_1

IF function is frequently used in Excel worksheet to return “true value” or “false value” based on the logical test result. If you want to see if cell contains certain substring1 like “abc” or substring2 like “def”, and returns true ...

If Cell Contains Certain Text OR Equals Certain Text

IF cell equals certain text IF function is frequently used in Excel worksheet to return “true value” or “false value” based on the logical test result. If you want to test values to see if they equal certain text like ...

VLOOKUP From Another Sheet Not Working
vlookup from another sheet not working3

In the previous post, you should know that how to fix or remove the #N/A error when using VLOOKUP formula to lookup value from another sheet. And this post will show you reasons why your VLOOKUP formula is not working ...

If Cell Begins with One of Three Supplied Characters
If Cell Begins with One of Three Supplied Characters

If you want to test values to see if they begin with some given specific characters like “x”, ”y”, or “z”, you can create a formula with COUNTIF and SUM functions to return results. EXAMPLE You can see “TRUE” or ...

Sidebar