How to Create Drop Down List with Blank Cells Ignored in Excel

When we setting up a data validation drop-down list, if the data in the list has blank cells, the blank cells will also appear in the drop-down list. There’s no better way to avoid blank them when creating a drop-down list, so we can just remove the blank cells from the list first and then re-establish the drop-down list. You can follow below steps in this article to create drop-down list excluding blank cells.

Prepare a table with Fruit Classification. And in this Fruit column, there are some blank cells.

Create Drop Down List with Blank Cells Ignored 1

If you create dropdown list with this column, even ignore blank option is checked when creating data validation, the blank cell still displays in dropdown list. So we need to remove the blank cells from the list.

Create Drop Down List with Blank Cells Ignored 2

Create Drop Down List Ignore Blank Cells in Excel


Step 1: As we mentioned above, first we need to copy the column to another column and remove the blank cells included in this list. To copy and paste the list in another column we need to use some functions combination. In cell C1, enter the formula =LOOKUP(“xxxxx”,CHOOSE({1,2},””,INDEX(A:A,SMALL(IF($A$1:$A$10<>””,ROW($A$1:$A$10)),ROWS($C$1:C1))))), then press Ctrl + Shift + Enter.

Create Drop Down List with Blank Cells Ignored 3

Step 2: Select C1, drag the fill handle down to fill the cells till all data is displayed in C column. Verify that blank cells are removed from the new list.

Create Drop Down List with Blank Cells Ignored 4

Step 3: Create drop-down list with the new list. Select C1, then click Data->Data Validation->Data Validation.

Create Drop Down List with Blank Cells Ignored 5

Step 4: In Data Validation window, under Settings tab, select List in Allow drop-down list.

Create Drop Down List with Blank Cells Ignored 6

Step 5: Then in Source field, you can enter the range of list =$C$2:$C$7, or you can click the arrow button and select the range of C2:C7 on worksheet directly. Then the source field is filled with the selected data.

Create Drop Down List with Blank Cells Ignored 7

Step 6: Click OK and quit Data Validation. Verify that drop-down list with fruits is created properly. Click the dropdown list arrow, you can select fruit from the list.

Create Drop Down List with Blank Cells Ignored 8

 

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