Skip to main content

How to create drop down list ignore blank cells in Excel?

Author: Siluvia Last Modified: 2020-06-04

Let’s say you have a list of values with several blank cells are populated, when you create a data validation drop-down list with this data list, you will find the blank cells are added into the drop-down list even you have checked the Ignore Blank option while creating it. Actually, there is no direct method for you to create drop-down list without the blank cells. In this tutorial, we will provide you a trick with separating the values and blank cells based on the original data, and finally creating a drop-down list for the extracting data.

Create drop down list ignore blank cells in Excel

Create drop down list ignore blank cells in Excel

For example you have below data in a range B2:B13, for creating drop down list without blank cells, first, you can copy and paste the data into a new column without blanks. And then create a drop down list based on this new value list.

1. Apply the following formula to copy and paste only the non-blank cell values, please enter this formula: =LOOKUP("zzzzz",CHOOSE({1,2},"",INDEX(B:B,SMALL(IF($B$1:$B$13<>"",ROW($B$1:$B$13)),ROWS($D$1:D1))))) into a blank cell D1 for example, and then press Ctrl + Shift + Enter keys together to get the following result:

Note: In the above formula, B1:B13 is the data list that you want to use. You can change the cell reference to your need.

2. Then select the cell D1, and drag the fill handle down to the range that you want to contain this formula, and all the non-blank cell values have been extracted. See screenshot:

3. Now create you data validation drop down list with this new data list. Select the cells you want to locate the drop down list, then click Data > Data Validation.

4. In the Data Validation dialog box, you need to:

1). Go to the Settings tab, and select List in the Allow drop-down list;
2). Select the cell range with values which you have extracted above in the Source box;
3). Click the OK button. See screenshot:

5. Then the drop-down lists are created immediately without blanks.

Related articles:

Best Office Productivity Tools

ūü§Ė Kutools AI Aide: Revolutionize data analysis based on: Intelligent Execution   |  Generate Code  |  Create Custom Formulas  |  Analyze Data and Generate Charts  |  Invoke Kutools Functions‚Ķ
Popular Features: Find, Highlight or Identify Duplicates   |  Delete Blank Rows   |  Combine Columns or Cells without Losing Data   |   Round without Formula ...
Super Lookup: Multiple Criteria VLookup    Multiple Value VLookup  |   VLookup Across Multiple Sheets   |   Fuzzy Lookup ....
Advanced Drop-down List: Quickly Create Drop Down List   |  Dependent Drop Down List   |  Multi-select Drop Down List ....
Column Manager: Add a Specific Number of Columns  |  Move Columns  |  Toggle Visibility Status of Hidden Columns  |  Compare Ranges & Columns ...
Featured Features: Grid Focus   |  Design View   |   Big Formula Bar    Workbook & Sheet Manager   |  Resource Library (Auto Text)   |  Date Picker   |  Combine Worksheets   |  Encrypt/Decrypt Cells    Send Emails by List   |  Super Filter   |   Special Filter (filter bold/italic/strikethrough...) ...
Top 15 Toolsets12 Text Tools (Add Text, Remove Characters, ...)   |   50+ Chart Types (Gantt Chart, ...)   |   40+ Practical Formulas (Calculate age based on birthday, ...)   |   19 Insertion Tools (Insert QR Code, Insert Picture from Path, ...)   |   12 Conversion Tools (Numbers to Words, Currency Conversion, ...)   |   7 Merge & Split Tools (Advanced Combine Rows, Split Cells, ...)   |   ... and more

Supercharge Your Excel Skills with Kutools for Excel, and Experience Efficiency Like Never Before. Kutools for Excel Offers Over 300 Advanced Features to Boost Productivity and Save Time.  Click Here to Get The Feature You Need The Most...


Office Tab Brings Tabbed interface to Office, and Make Your Work Much Easier

  • Enable tabbed editing and reading in Word, Excel, PowerPoint, Publisher, Access, Visio and Project.
  • Open and create multiple documents in new tabs of the same window, rather than in new windows.
  • Increases your productivity by 50%, and reduces hundreds of mouse clicks for you every day!
Comments (7)
Rated 1 out of 5 · 1 ratings
This comment was minimized by the moderator on the site
kalo setting validate nya tetep dari D1:D10 ya percuma pak.
kalau isiannya jadi 11 kan jadinya ada yg gak masuk list.
This comment was minimized by the moderator on the site
Hi Fadli,

Sorry, I don't quite understand your question. This trick helps to extract all the values from the list, excluding the blank ones. You need to make sure that all values are extracted and then create a dropdown list based on the extracted values.
This comment was minimized by the moderator on the site
Hilft leider nicht weiter, wenn man die Anzahl an Zeilen nicht kennt.
In meinem Fall habe ich eine Liste mit bis zu 40 Eintr√§gen und aus einer der Spalten soll ein Drop-Down-Feld erstellt werden. Da ich aber nicht wei√ü wieviel Eintr√§gen das sind muss ich immer noch, wenn sich die Liste √§ndert, das Drop-Down-Feld neu erzeugen und das f√ľr √ľber 100 Listen jede Woche neu. Da hilft dann auch kein VBA, denn das kann zwar die Zeilen herausfinden, aber bei √Ąnderungen (in mehr Eintr√§ge fehlen die neuen, in weniger Eintr√§ge sind am Ende wieder Leerzeilen) muss das VBA-Makro auch st√§ndig wieder ausgef√ľhrt werden.
Rated 1 out of 5
This comment was minimized by the moderator on the site
The idea of having to create a second column seems a work around a defective option. The check box right beside the allow option says to ignore blanks. What is the real function of this check box if it does NOT ignore the blanks.
This comment was minimized by the moderator on the site
<p>The function works perfectly for me, but I still have one question. In my case I need to apply the formula for column range 2:2 instead of row range B:B.</p><p>Many thanks</p>
This comment was minimized by the moderator on the site
Suggestion: Just copy and paste with transpose (columns to rows) then press F5 (go to) select special and click on blanks. then delete the cells.
This comment was minimized by the moderator on the site
<p>The function works perfectly for me, but I still have one question.</p><p>how do i make this work?</p><p>Many thanks</p>
There are no comments posted here yet
Leave your comments
Posting as Guest
Rate this post:
0   Characters
Suggested Locations