Results 1 to 4 of 4

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

Threaded View

  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
    =INDIRECT(VLOOKUP(A2,vlookup_table,2,FALSE))


    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

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