+ Reply to Thread
Results 1 to 9 of 9

Can i link drop down lists?

  1. #1
    Forum Contributor
    Join Date
    11-02-2011
    Location
    Rugby, England
    MS-Off Ver
    Office 365
    Posts
    879

    Can i link drop down lists?

    Evening happy campers,

    In my workbook, Sheet 2, Range A1:A10 is a list of names - the range has been called =Names, to allow me to use a drop down list on sheet1.
    These names are the area managers.
    I also have a list of employee names in column D, for every cell in Column D, the adjacent cell in Column C has one of the managers names from A1:A10.

    On Sheet1 i have added a drop down list in Cell A1, set from the range =Names.
    What i would like is the following:

    User selects a name from the drop down box in A1, then in C1 they have another drop down list that shows all employee names.

    Have loaded a sample and tried to explain there also

    Thanks in advance!!

    Galvinpaddy
    Attached Files Attached Files

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,048

    Re: Can i link drop down lists?

    See if you can use teh attached for what you want. It is based on using named ranges and INDIRECT()
    Attached Files Attached Files
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  3. #3
    Forum Contributor
    Join Date
    11-02-2011
    Location
    Rugby, England
    MS-Off Ver
    Office 365
    Posts
    879

    Re: Can i link drop down lists?

    Hi, thanks for the speedy response!
    Could i ask for you to talk me through it a little? just so i understand what i am changing, why and the effect it'll have?
    If not i'll have a bash at it and see how it goes!

  4. #4
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    25,411

    Re: Can i link drop down lists?

    What you need to do is to create 10 further named ranges (one for each manager) and then the source of the second data validation will be:

    =INDIRECT(manager's name shown in $A$1)

    I've rearranged your data in Sheet2 so that it is easier to see, with each manager's name at the top of the column, and then used Name Manager to define the appropriate names as in row 1. One drawback with this is that you can't have spaces in the names of named ranges - Excel will change them to an underscore. Consequently, the source for the second DV in C1 is given by:

    =INDIRECT(SUBSTITUTE($A$1," ","_"))

    Hope this helps.

    Pete
    Attached Files Attached Files

  5. #5
    Forum Expert
    Join Date
    02-22-2013
    Location
    London, UK
    MS-Off Ver
    Office 365
    Posts
    1,218

    Re: Can i link drop down lists?

    Hi,

    just noticed that this wasn't the VBA part of the forum, my bad.

    In any case, here's an alternative VBA solution you can use to be put into the Sheet1 module as an event procedure:
    Please Login or Register  to view this content.
    Best,
    berlan

  6. #6
    Forum Contributor
    Join Date
    11-02-2011
    Location
    Rugby, England
    MS-Off Ver
    Office 365
    Posts
    879

    Re: Can i link drop down lists?

    Pete_UK, you sir deserve a beer.

    Thanks a lot fella

  7. #7
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,048

    Re: Can i link drop down lists?

    Thanks for teh explanation, Pete

  8. #8
    Forum Contributor
    Join Date
    11-02-2011
    Location
    Rugby, England
    MS-Off Ver
    Office 365
    Posts
    879

    Re: Can i link drop down lists?

    Apologies - thanks also to both FDibbins & Berlan

  9. #9
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    25,411

    Re: Can i link drop down lists?

    Quote Originally Posted by FDibbins View Post
    Thanks for teh explanation, Pete
    I was just about to post my workbook, having re-arranged all the data, and thought I'd better refresh the screen, and then discovered that you had got in before me, so I had to change what I had written.

    Pete

+ 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 drop down lists without creating unique named lists
    By pajordan in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-11-2013, 12:20 PM
  2. [SOLVED] 2+ Way Cell Link in the Same Worksheet with Drop Down Lists
    By billyster in forum Excel General
    Replies: 17
    Last Post: 06-06-2013, 10:55 AM
  3. drop down lists referencing tables creating other drop down lists!!
    By Stumped- in forum Excel - New Users/Basics
    Replies: 3
    Last Post: 08-07-2009, 11:29 AM
  4. [SOLVED] For accounting, How to link two lists each in different drop down
    By SDEEEM in forum Excel General
    Replies: 3
    Last Post: 11-16-2005, 09:25 PM
  5. How do you link drop down lists in excel?
    By Angel aAlegria in forum Excel General
    Replies: 1
    Last Post: 08-18-2005, 06:05 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