+ Reply to Thread
Results 1 to 3 of 3

How to exclude blank cell from drop down list.

  1. #1
    Forum Contributor
    Join Date
    02-16-2017
    Location
    Bangladesh
    MS-Off Ver
    2021
    Posts
    196

    How to exclude blank cell from drop down list.

    I have a blank cell at the bottom of the drop down menu, I don't want any blank cells to show. I gave the following formula in data validation, but did not accept.

    =FILTER(INDEX($D$3:$J$8,,MATCH(L2,$D$2#,0)),INDEX($D$3:$J$8,,MATCH(L2,$D$2#,0))<>"")

    Looking for a solution with non-volatile formula. Because I have to use this draggable formula a lot of times in my worksheet.

    Someone help me please.
    Attached Files Attached Files
    Last edited by Ariful Islam; 01-22-2022 at 02:14 AM.

  2. #2
    Forum Guru Bo_Ry's Avatar
    Join Date
    09-10-2018
    Location
    Thailand
    MS-Off Ver
    MS 365
    Posts
    7,211

    Re: How to exclude blank cell from drop down list.

    Please try Name manager

    List
    =LET(z,XLOOKUP(L2,D2#,$D$3:$J$8),INDEX(z,1):INDEX(z,COUNTA(z)))

    or
    =XLOOKUP(L2,$A$2:$A$14,$B$2:$B$14):XLOOKUP(L2,$A$2:$A$14,$B$2:$B$14,,,-1)

    Data validation
    =List


    Data validation must refer to range. FILTER function return Array.

    or
    =OFFSET($D$3,,MATCH(L2,$D$2#,)-1,COUNTA(INDEX($D$3:$J$8,,MATCH(L2,$D$2#,))))
    Attached Files Attached Files
    Last edited by Bo_Ry; 01-22-2022 at 02:20 AM.

  3. #3
    Forum Contributor
    Join Date
    02-16-2017
    Location
    Bangladesh
    MS-Off Ver
    2021
    Posts
    196

    Re: How to exclude blank cell from drop down list.

    Quote Originally Posted by Bo_Ry View Post
    Please try Name manager

    List
    =LET(z,XLOOKUP(L2,D2#,$D$3:$J$8),INDEX(z,1):INDEX(z,COUNTA(z)))

    or
    =XLOOKUP(L2,$A$2:$A$14,$B$2:$B$14):XLOOKUP(L2,$A$2:$A$14,$B$2:$B$14,,,-1)

    Data validation
    =List


    Data validation must refer to range. FILTER function return Array.

    or
    =OFFSET($D$3,,MATCH(L2,$D$2#,)-1,COUNTA(INDEX($D$3:$J$8,,MATCH(L2,$D$2#,))))
    Thank you so much for the perfect solution very quickly.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] Resetting drop down menu to first item/blank
    By SGArete in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 02-11-2018, 02:08 PM
  2. [SOLVED] Create a drop down menu which start with blank
    By RinorM in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 05-05-2014, 09:44 AM
  3. Exclude blank gaps from Drop Down List + Auto complete
    By Adam329 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 09-15-2013, 09:49 AM
  4. [SOLVED] Excel 2007 : new drop down menu based on dropdown menu in previous cell
    By martinpols in forum Excel General
    Replies: 3
    Last Post: 04-30-2012, 02:33 AM
  5. Replies: 1
    Last Post: 08-25-2010, 09:45 AM
  6. Display Drop Down Menu Cell with a blank
    By Watson in forum Excel General
    Replies: 2
    Last Post: 05-18-2010, 10:55 AM
  7. [SOLVED] Drop down menu-How do you produce a drop down menu in a single cell in Excel
    By Freddo in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 08-04-2006, 04:35 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1