How to Select All Non-Blank Cells of a Range

In daily work, we may meet the cases that select all blank cells or non-blank cells of a range. You may know the way to select all blank cells as they are “blanks”. But for non-blank cells, they may contain numbers, texts, formulas or even errors, how can we select all of them of a range with both blanks and non-blanks at one time? In this article, we will show you a simple way to select all non-blank cells, you don’t need to know any coding skills.

EXAMPLE

There are several blank cells exist in above table, they are not adjacent to each other. Our target is to select all cells contain numbers in above table. See example below.

Normally, we can click on cell A1 and drag down to select the entire range A1:E5, in this way all cells contain numbers are selected but at the same time blank cells are also included. We can also hold on Ctrl key and pick cells with numbers one by one, this way is acceptable if there are not so many cells. Anyway, we need to find out a good resolution to solve this problem.

RESOLUTION

In previous article, we have shown you the way to select all blank cells by checking on Go To Special->Blanks option. Actually, Go To Special also works on selecting all non-blank cells. Users can select all non-blank cells of a range at one time if check on Go To Special->Constants option.

 

STEPS

a. Select entire range A1:E5, this range contains both blank cells and non-blank cells.

b. Press hotkey F5 to load Go To dialog. Click on “Special…” button on the dialog to load Go To Special dialog. You can also load Go To Special dialog by clicking Home -> Find & Select -> Go To Special.

c. On Go To Special dialog, check on Constants option. After checking on the option, four sub options belong to Formulas are enabled, they are checked by default, keep current settings, and click OK.

After above steps, all non-blank cells are selected. You can continue your following operations on these cells.

COMMENT

a. In above step c, if you want to only select on cells with text, you can check on “Constants” option with “Formula” sub option “Text”, then matched cells are selected. See example below. You can also check on other options per your requirement.

 

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