+ Reply to Thread
Results 1 to 5 of 5

Blank rows in data validation?

  1. #1
    Registered User
    Join Date
    07-18-2022
    Location
    Florida, USA
    MS-Off Ver
    365
    Posts
    2

    Blank rows in data validation?

    So I am trying to implement data validation in Excel where the data comes from a dynamic list. Since I don't know the length of the list, I want to use data validation to make a drop down list including all of the text in a given column. I have a table and a filter function to return those rows from the table that meet a criteria. I want to use the columns from the filter function for data validation. For example, I have some data in column J that I want to be able to choose from in B20. My solution was to allow: list, source: =J:J. The problem I am having is that this gives me lots of blank rows in the drop down - apparently the number of rows in the entire table, but I only want the rows that actually have text in them. I've tried several variations of allow:custom, source: =ISTEXT(J1), but this doesn't work. How can I get rid of the blank rows?
    Attached Files Attached Files

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,411

    Re: Blank rows in data validation?

    I can't test this because I’m using an iPad, but maybe try:

    =UNIQUE(FILTER(Table2[Description],Table2[Category]=B19))
    =UNIQUE(FILTER(Table2[Brand],(Table2[Category]=B19)*(Table2[Description]=B20)))

    for your secondary and tertiary lists.
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  3. #3
    Registered User
    Join Date
    07-18-2022
    Location
    Florida, USA
    MS-Off Ver
    365
    Posts
    2

    Re: Blank rows in data validation?

    Thanks, that did it. You can't just paste into data validation's source field, but if you put those formulas into cells and use the # operator, it behaves the way it is supposed to.

  4. #4
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,411

    Re: Blank rows in data validation?

    You're welcome. Thanks for the rep.



    If you are satisfied with the solution(s) provided, please mark your thread as Solved.


    New quick method:
    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

    Or you can use this way:

    How to mark a thread Solved
    Go to the first post
    Click edit
    Click Go Advanced
    Just below the word Title you will see a dropdown with the word No prefix.
    Change to Solved
    Click Save


    You may also want to consider thanking those people who helped you by clicking on the little star at the bottom left of their reply to your question.

  5. #5
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,411

    Re: Blank rows in data validation?

    Just to tidy up loose ends for anyone finding this thread. Here's the updated workbook.
    Attached Files Attached Files

+ 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. Replies: 1
    Last Post: 06-08-2019, 09:04 PM
  2. [SOLVED] Hiding blank rows in a drop down data validation list, help please?
    By A440 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 03-12-2019, 06:11 AM
  3. Replies: 11
    Last Post: 07-30-2015, 12:35 PM
  4. return data validation without interspersed blank rows
    By elilovesmusic in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 06-19-2014, 11:18 AM
  5. [SOLVED] How to insert a blank row between two rows of list names in data validation
    By Rocky2013 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-07-2013, 10:52 PM
  6. [SOLVED] How to avoid blank rows in DATA VALIDATION list?
    By pejoi in forum Excel General
    Replies: 3
    Last Post: 11-24-2012, 10:53 PM
  7. Loading Column Data with blank Rows into Data Validation Box
    By ExcelMonkey in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 10-13-2005, 02:05 PM

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