+ Reply to Thread
Results 1 to 10 of 10

Remove Blanks In Data Validation Drop Down List (Dynamic Named Range)

  1. #1
    Registered User
    Join Date
    05-07-2021
    Location
    Naples, Italy
    MS-Off Ver
    Office 2016
    Posts
    30

    Remove Blanks In Data Validation Drop Down List (Dynamic Named Range)

    my Hello everyone!

    I am sure this is easy but I have looked around the entire afternoon and I have not been able to find the correct implementation. Is there a way to create a list, which dynamically expands, to name the list (name range) so that it can be used somewhere else in the workbook and remove the blanks?

    I will attach the workbook next.



    Many thanks for your support!

  2. #2
    Registered User
    Join Date
    05-07-2021
    Location
    Naples, Italy
    MS-Off Ver
    Office 2016
    Posts
    30
    Quote Originally Posted by d365b View Post
    my Hello everyone!

    I am sure this is easy but I have looked around the entire afternoon and I have not been able to find the correct implementation. Is there a way to create a list, which dynamically expands, to name the list (name range) so that it can be used somewhere else in the workbook and remove the blanks?

    I will attach the workbook next.



    Many thanks for your support!

    Here’s the workbook.
    Attached Files Attached Files

  3. #3
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    31,321

    Re: Remove Blanks In Data Validation Drop Down List (Dynamic Named Range)

    In A5
    =IFERROR(INDEX($B$2:$B$60,AGGREGATE(15,6,(ROW($B$2:$B$60)/($B$2:$B$60<>""))-ROW($A$1),ROWS($1:1))),"")

    copy down

    Named range "Project_ID"

    Refers to: =OFFSET(Sheet1!$E$5,,,COUNTIF(Sheet1!$E$5:$E$60,"> "),1)
    Attached Files Attached Files

  4. #4
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Remove Blanks In Data Validation Drop Down List (Dynamic Named Range)

    You can't remove the blanks within the DataValidation List. You need to create a new list without the blanks.

    In Sheet2, in A1 copied down
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    You can hide sheet2 if you like.
    Then I named Sheet2 A1:A20 with this dynamic named range
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Adjust your ranges according to your needs. Will that work for you?
    Note: Replace commas with semicolons if that is your local setting.
    Attached Files Attached Files
    ChemistB
    My 2?

    substitute commas with semi-colons if your region settings requires
    Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
    If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  5. #5
    Registered User
    Join Date
    05-07-2021
    Location
    Naples, Italy
    MS-Off Ver
    Office 2016
    Posts
    30

    Re: Remove Blanks In Data Validation Drop Down List (Dynamic Named Range)

    Thanks John for your immediate response. I have seen this implementation but I wish not to re-list the items somewhere else.

    Thanks

  6. #6
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Remove Blanks In Data Validation Drop Down List (Dynamic Named Range)

    John beat me to it.

  7. #7
    Registered User
    Join Date
    05-07-2021
    Location
    Naples, Italy
    MS-Off Ver
    Office 2016
    Posts
    30

    Re: Remove Blanks In Data Validation Drop Down List (Dynamic Named Range)

    Thank you ChemistB! I thought there was a way to do that without copying down the list without blanks.

  8. #8
    Registered User
    Join Date
    05-07-2021
    Location
    Naples, Italy
    MS-Off Ver
    Office 2016
    Posts
    30

    Re: Remove Blanks In Data Validation Drop Down List (Dynamic Named Range)

    Do I have to copy the list somewhere else even if the the range won’t expand?

  9. #9
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Remove Blanks In Data Validation Drop Down List (Dynamic Named Range)

    Yes, data validation lists need to be congruent data. At present, there is no way to remove blanks without reposting it. Sorry, maybe something Excel will address in the future.

  10. #10
    Registered User
    Join Date
    05-07-2021
    Location
    Naples, Italy
    MS-Off Ver
    Office 2016
    Posts
    30

    Re: Remove Blanks In Data Validation Drop Down List (Dynamic Named Range)

    Thanks ChemistB!

+ 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] Remove blanks from drop down list within dynamic table
    By jaryszek in forum Excel Formulas & Functions
    Replies: 12
    Last Post: 08-20-2018, 11:14 AM
  2. Ignoring blanks in dynamic data validation drop-down
    By joekhub in forum Excel General
    Replies: 3
    Last Post: 04-18-2017, 01:23 PM
  3. Replies: 5
    Last Post: 07-29-2015, 08:36 AM
  4. Remove Blanks With Dynamic Named Range - Error with the formula
    By Tepsjen in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 12-23-2014, 05:34 PM
  5. remove blanks from data validation list
    By jame24 in forum Excel General
    Replies: 5
    Last Post: 04-27-2012, 11:44 PM
  6. [SOLVED] Data validation drop downs don't recognize dynamic named range
    By GlenC in forum Excel General
    Replies: 0
    Last Post: 07-19-2006, 01:30 PM
  7. [SOLVED] Dynamic Named Range inside a Data Validation list ?
    By Richard in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 03-11-2006, 10:00 AM

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