+ Reply to Thread
Results 1 to 5 of 5

Eliminate Blanks In Drop Down Lists

  1. #1
    Registered User
    Join Date
    12-14-2020
    Location
    Delaware
    MS-Off Ver
    Office 365
    Posts
    44

    Eliminate Blanks In Drop Down Lists

    I am creating a form that I need to use several drop down lists (Tab 1: Drop Downs). The information that is going to be used is from different columns of a table (Tab 2: Table). This table is fed information directly from a VBA script (not shown, but not relevant). To facilitate only unique criteria from the drop downs, the table data is sorted and filtered (Tab 3: Unique Data). This is where the data validation gets it's data.

    The problem that I have is that all of the drop down menus contain as many options as the column of the most unique values. That means that drop downs with fewer unique values have a quantity of blank options.

    In the sample sheet, Unique Data tab:

    Column A has 7 unique values.
    Column D only has 3 unique values.

    Because of that, when the drop down is selected for State (column D), it shows the 3 unique options and then 4 blanks.

    How do I get rid of these blanks on the drop downs from columns with fewer unique data?
    Attached Files Attached Files

  2. #2
    Forum Contributor
    Join Date
    12-17-2013
    Location
    ON, Canada
    MS-Off Ver
    MS 365
    Posts
    171

    Re: Eliminate Blanks In Drop Down Lists

    Have a look at the attached file.
    On the "Unique" tab, I changed you formula in the highlighted cells.
    On the "Dropdown" tab, check the formula for the Data Validation.
    Hope this helps you.
    Attached Files Attached Files

  3. #3
    Registered User
    Join Date
    12-14-2020
    Location
    Delaware
    MS-Off Ver
    Office 365
    Posts
    44

    Re: Eliminate Blanks In Drop Down Lists

    Thanks for the help. I had to put back in the FILTER function. Some of the cells on my real workbook are blank. Without the filter, it returns a zero value for them.

    I reuploaded the example with side by side reference showing with and without the filter function.

    Other than that. It worked perfectly. What does the # do in the data validation formula?
    Attached Files Attached Files

  4. #4
    Forum Contributor
    Join Date
    12-17-2013
    Location
    ON, Canada
    MS-Off Ver
    MS 365
    Posts
    171

    Re: Eliminate Blanks In Drop Down Lists

    The # let's you reference the entire spill range from your unique formula.

  5. #5
    Registered User
    Join Date
    03-24-2021
    Location
    Missouri
    MS-Off Ver
    Office 365/2019
    Posts
    12

    Re: Eliminate Blanks In Drop Down Lists

    I have a somewhat similar issue but can't figure out how to apply this fix to my spreadsheet. I have attached a sample sheet.

    -Tab 1 "CustomerInfo" -- is where information is entered manually other than the "color" column: It is a VLOOKUP formula that is based on what number is entered in the "Number" column.
    -The number column is a data validation list that grabs its information from Tab 3 "DataDump"
    -Tab 2 "Compilation" is a nice organized table of the customer data from tab 1.

    My problem is with the yellow cell in Tab 2 "Compilation". How do I keep that from displaying the blanks from the drop-down list?
    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. [SOLVED] Macro to take text from multiple columns and eliminate blanks
    By adamheon in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 04-04-2018, 07:49 PM
  2. [SOLVED] Efficient drop down lists (without blanks)
    By Sergey_123 in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 10-21-2017, 04:23 PM
  3. [SOLVED] Filter Data to Top Row of Column - Eliminate Blanks
    By sl729 in forum Excel General
    Replies: 2
    Last Post: 06-30-2016, 02:57 PM
  4. [SOLVED] Using COUNTA to Eliminate Blanks in a Drop Down List?
    By qanjorin in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 01-17-2016, 07:28 PM
  5. Eliminate Blanks from Pivot Table
    By Keibri in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 08-18-2015, 11:55 AM
  6. Macro Needed to Reorganize Data and Eliminate Blanks
    By bplantz3 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-15-2013, 12:45 PM
  7. Eliminate blanks before a charachter chain
    By MónicaM in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-21-2006, 10:30 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