+ Reply to Thread
Results 1 to 3 of 3

Can't create "Dependent" DropList from Non-adjacent columns

Hybrid View

  1. #1
    Valued Forum Contributor
    Join Date
    01-16-2012
    Location
    England
    MS-Off Ver
    MS 365 Version 2501 64-bit
    Posts
    1,465

    Can't create "Dependent" DropList from Non-adjacent columns

    Attached file 160205 Non-adjacent Dependent lists.xlsx has a database with Client list in Col A.

    Cols B and F show the names of two sites for each client. The address details for the sites site in between, in Cols C - E and Cols G - I

    If I have a DropList in C6 listing both clients, is there a "formula" approach that will populate a Dependent DropList in C8 listing ONLY the site names in Cols B and F for that client? Or am I into "VBA -world"

    Ochimus

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

    Re: Can't create "Dependent" DropList from Non-adjacent columns

    I don't believe you can create data validation from non-congruous cells. The key is to create a list from congruous cells.
    In J6, I have the dropdown of clients. In K1:K2, I reference that cell and create a list of the relevant sites using

    =IFERROR(VLOOKUP($J$6, $A$2:$I$89,2,FALSE),"") and
    =IFERROR(VLOOKUP($J$6, $A$2:$I$89,6,FALSE),"")

    In K6, I have the dropdown that references K1 and K2
    Does that help?
    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

  3. #3
    Valued Forum Contributor
    Join Date
    01-16-2012
    Location
    England
    MS-Off Ver
    MS 365 Version 2501 64-bit
    Posts
    1,465

    Re: Can't create "Dependent" DropList from Non-adjacent columns

    Chenist.

    Many thanks for the prompt response and attempt at offering something that would work.

    Unfortunately having a separate dropdown for each site won't work in the "real" file. I used two "dependent" sites for the sample, but the structure has to cope with national chains that can total hundreds of different sites, Whole point is to give the End User one list that they can shuffle down and select the appropriate location,

    Looks like it's VBA or nothing, unless someone else has found a tweak!

    Ochimus

+ 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. Find a word "screenshot" and print value "yes" in adjacent Column
    By prat123 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 06-21-2015, 03:04 PM
  2. Replies: 1
    Last Post: 08-15-2014, 06:00 AM
  3. Create a Command Button to "Save As" and "Close" an Excel Workbook
    By thedunna in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 05-26-2013, 05:38 PM
  4. [SOLVED] Adjacent cells - setting criteria for "A" while averaging "B"
    By ilovemonkeys in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 02-09-2013, 11:57 AM
  5. Replies: 0
    Last Post: 01-09-2013, 06:52 PM
  6. Replies: 5
    Last Post: 03-12-2008, 05:01 PM
  7. create links to check boxes marked "good" fair"and "bad"
    By pjb in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 04-19-2006, 09:25 PM

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