+ Reply to Thread
Results 1 to 4 of 4

Dependent Data Validation Lists and the rule of no spaces in named ranges

  1. #1
    Forum Contributor
    Join Date
    04-02-2012
    Location
    Ohio
    MS-Off Ver
    Excel 2010
    Posts
    452

    Dependent Data Validation Lists and the rule of no spaces in named ranges

    Assumption: I assume you already know how to setup a data validation list that is dependent on the text of another cell. If not searching "dependent data validation lists" will bring you up to speed within a few minutes.

    Since named ranges can't have spaces, using =INDIRECT(A1) in data validation requires the text in A1 has no spaces. This is fine for single word text, but for something like "Northern States" we have to go with something like "NorthernStates" or "Northern_States" or something to remove the space between the two words. I wanted a workaround for this to maintain a more neater layout. I came up with this formula for my data validation formula,
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    In my vlookupup_table I have the text with the space in the first column, and the text with the space removed in the second column, which corresponds with my named range titles.

    I realize I am discovering something that many others have already discovered, but I find it useful and hope someone else does too.
    Attached Files Attached Files

  2. #2
    Forum Guru sktneer's Avatar
    Join Date
    04-30-2011
    Location
    Kanpur, India
    MS-Off Ver
    Office 365
    Posts
    9,648

    Re: Dependent Data Validation Lists and the rule of no spaces in named ranges

    You may include another feature to the dependent data validation list.

    Like when you change your selection in A2, the dependent drop down list in B2 still contains the old selection if it was selected earlier. So you may apply the conditional formatting to hide the previous selection if any in case you change the selection in A2.

    Formula used to make a New Rule for conditional formatting for the cell B2 is....

    Please Login or Register  to view this content.
    And custom format B2 with ;;; through conditional formatting.
    Attached Files Attached Files
    Last edited by sktneer; 03-29-2015 at 12:42 AM.
    Regards
    sktneer


    Treat people the way you want to be treated. Talk to people the way you want to be talked to.
    Respect is earned NOT given.

  3. #3
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Dependent Data Validation Lists and the rule of no spaces in named ranges

    Or, you could use an event macro to clear any downstream dependent cells.

    I would prefer this method especially if any of the downstream cells are used in further calculations. If the cells are "hidden" with conditional formatting they will still contain some value that may have to be accounted for in formulas.
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  4. #4
    Registered User
    Join Date
    04-02-2015
    Location
    Bulgaria
    MS-Off Ver
    MS Office 2016
    Posts
    7

    Re: Dependent Data Validation Lists and the rule of no spaces in named ranges

    Hello,
    I have an issue with creating a dependent drop down lists, because one of the lists contains numbers.
    I can not use indirect formula, because I can not use numbers in the name box field.

    You can find as attached the example file.
    Please help me.

    Regards,
    Aneliya
    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. Dependent List Validation from Dynamic Named Ranges
    By freeride in forum Excel General
    Replies: 11
    Last Post: 01-22-2020, 03:07 PM
  2. [SOLVED] Dependent data validation with dynamic named ranges
    By Ace_XL in forum Excel General
    Replies: 4
    Last Post: 08-07-2014, 10:02 AM
  3. Replies: 3
    Last Post: 07-28-2014, 03:16 PM
  4. [SOLVED] Can't use Numbers in named range list for Dependent data validation lists
    By Sam Kuiper in forum Excel Formulas & Functions
    Replies: 18
    Last Post: 11-11-2012, 08:26 PM
  5. Help with Named Ranges used in Validation Lists
    By BarbaraNie in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 10-09-2012, 10:04 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