+ Reply to Thread
Results 1 to 6 of 6

make dropdown menu dependent on other dropdown menu values

  1. #1
    Valued Forum Contributor
    Join Date
    11-27-2013
    Location
    Brooklyn, NY
    MS-Off Ver
    Office 365
    Posts
    1,172

    make dropdown menu dependent on other dropdown menu values

    Hello,
    Wondering if it's possible to have a data validation dependent on adjacent cell value and at the same time ignore blank cells?
    Meaning, if i choose from the dropdown in cell B3 in this workbook MainWkbk.xlsx an account (ie "HBA") i would then want the adjacent dropdown in D3 to display only the customers pertaining to that account.
    Note, the "blank cells" are not really blank they just look blank but there are formulas in them linking to cells in this external workbook SourceInfo.xlsx (you will have to update the cell reference in sheet1 in the previous attached workbook.

    very much looking forward to all responses

  2. #2
    Valued Forum Contributor
    Join Date
    12-22-2015
    Location
    HK
    MS-Off Ver
    2010
    Posts
    532

    Re: make dropdown menu dependent on other dropdown menu values

    See if help
    the dropdown in cell d3 i use formula indirect
    the sheet2 i write VBA

    Please Login or Register  to view this content.
    Attached Files Attached Files

  3. #3
    Forum Expert shukla.ankur281190's Avatar
    Join Date
    05-17-2014
    Location
    Lucknow, India
    MS-Off Ver
    Office 365
    Posts
    3,937

    Re: make dropdown menu dependent on other dropdown menu values

    Insert a blank column between each list (i.e. B, D, F, …)in attached file sheet naming Drop Down List
    Add the formula ' = "" ' in each empty cell on row 1 (i.e. B1, D1, F1,…) this can be any formula
    Select cell A1
    CTRL + Shift + 8 to select current region
    ALT -> H -> F -> D -> S to bring up Goto Special dialog box
    Select "Constants" then press OK
    Check the outline selected is correct
    CTRL + Shift + F3 to create named range from selection
    Select from Top Row only
    Press CTRL + F3 to check named ranges have been created correctly.

    Now Go to main sheet below the account cell and click Alt->A-> V->V , select the list from allow tab and put ='Drop Down List'!$A$1:$A$3 in source.

    Now Go to main sheet below the customer cell and click Alt->A-> V->V , select the list from allow tab and put =INDIRECT($B$3) in source.

    Please check the attachment for better understanding.
    Attached Files Attached Files
    If I helped, Don't forget to add reputation (click on the little star ★ at bottom of this post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)

  4. #4
    Forum Expert Ace_XL's Avatar
    Join Date
    06-04-2012
    Location
    UAE
    MS-Off Ver
    2016
    Posts
    6,074

    Re: make dropdown menu dependent on other dropdown menu values

    Use this as a defined name lets call it 'List'

    =INDEX(Sheet1!B:B,MATCH(MAIN!B3,Sheet1!A:A,0)):INDEX(Sheet1!B:B,MAX((Sheet1!A:A=MAIN!B3)*(ROW(Sheet1!A:A))))

    Then in Data validation use List. See attached
    Attached Files Attached Files
    Life's a spreadsheet, Excel!
    Say thanks, Click *

  5. #5
    Valued Forum Contributor
    Join Date
    11-27-2013
    Location
    Brooklyn, NY
    MS-Off Ver
    Office 365
    Posts
    1,172

    Re: make dropdown menu dependent on other dropdown menu values

    Dear all,
    Thank you very much for your responses, all responses work great, thanks again

  6. #6
    Valued Forum Contributor
    Join Date
    11-27-2013
    Location
    Brooklyn, NY
    MS-Off Ver
    Office 365
    Posts
    1,172

    Re: make dropdown menu dependent on other dropdown menu values

    Quote Originally Posted by Ace_XL View Post
    Use this as a defined name lets call it 'List'

    =INDEX(Sheet1!B:B,MATCH(MAIN!B3,Sheet1!A:A,0)):INDEX(Sheet1!B:B,MAX((Sheet1!A:A=MAIN!B3)*(ROW(Sheet1!A:A))))

    Then in Data validation use List. See attached
    Dear AceXL,
    I noticed that the method you've suggested only works if the data is sorted according to the dependent drop down, if the information is not sorted according to that then the 2nd dropdown menu displays mostly irrelevant info
    Is there any way around this? I would need to have the info sorted by column B.

    Thanks

+ 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. How a drop down menu's list can change depending on another dropdown menu.
    By sudeepkm73 in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 06-30-2015, 03:18 AM
  2. [SOLVED] Data values dependent on selection from dropdown menu
    By atkelly in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 06-26-2014, 02:09 PM
  3. [SOLVED] How a drop down menu's list can change depending on another dropdown menu.
    By marc1980 in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 05-21-2014, 04:58 PM
  4. Make dropdown menu work on Mac - VBA
    By danaas in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 01-07-2013, 05:02 PM
  5. [SOLVED] Excel 2007 : new drop down menu based on dropdown menu in previous cell
    By martinpols in forum Excel General
    Replies: 3
    Last Post: 04-30-2012, 02:33 AM
  6. Replies: 2
    Last Post: 08-11-2011, 01:32 AM
  7. How to make dropdown menu for selected cells?
    By adds007 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 06-15-2010, 03:55 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