+ Reply to Thread
Results 1 to 8 of 8

Multi dependent dropdowns with auto-generated cell

  1. #1
    Registered User
    Join Date
    05-24-2021
    Location
    Sussex
    MS-Off Ver
    Office 365
    Posts
    6

    Multi dependent dropdowns with auto-generated cell

    Hi All,

    I have a product catalogue with upgrades options that I am trying to create a dropdown table where you can select information from a master table in column A and B and it will provide an auto-generated answer in column C depending on the inputs of A & B.
    So on the dropdown tab they will be dropdowns on column A & B which will auto populate C.

    I have looked at data validation with dropdown lists, but this doesn't answer the auto-generation of the option Yes/No depending on column A & B.

    I have attached an example SS based on food choices.
    So in my original SS, I am trying to ask the master table "If I have this product x and I want to upgrade it to product y, is this possible?".
    But in this example SS, I am trying to ask the master table "If I go to restaurant x and I want to order food y, is this possible?"


    Thank you for your help!

    - Al
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,228

    Re: Multi dependent dropdowns with auto-generated cell

    in C3

    =INDEX(Master!$B$3:$H$7,MATCH(Dropdown!$A3,Master!$A$3:$A$7,0),MATCH(Dropdown!$B3,Master!$B$2:$H$2,0))

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

    Re: Multi dependent dropdowns with auto-generated cell

    Do you also need help with generating the dropdown lists? Do you want those lists to update automatically if you add more "restaurants" or "food choices?"
    Set up a defined name Restaurants, "refers to"
    =Master!$A$3:INDEX(Master!$A$1:$A$100, COUNTA(Master!$A$1:$A$100)-1)

    Food
    =Master!$B$2:INDEX(Master!$B$2:$Z$2, COUNTA(Master!$B$2:$Z$2))
    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

  4. #4
    Forum Expert torachan's Avatar
    Join Date
    12-27-2012
    Location
    market harborough, england
    MS-Off Ver
    Excel 2010
    Posts
    4,304

    Re: Multi dependent dropdowns with auto-generated cell

    Just one table - no on-sheet formula.
    It does not matter if you add another to the bottom of the table out of order the combos will deal with the sort.
    torachan.
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    05-24-2021
    Location
    Sussex
    MS-Off Ver
    Office 365
    Posts
    6

    Re: Multi dependent dropdowns with auto-generated cell

    Quote Originally Posted by JohnTopley View Post
    in C3

    =INDEX(Master!$B$3:$H$7,MATCH(Dropdown!$A3,Master!$A$3:$A$7,0),MATCH(Dropdown!$B3,Master!$B$2:$H$2,0))
    Hi JohnTopley,

    This formula does indeed work, thank you!

  6. #6
    Registered User
    Join Date
    05-24-2021
    Location
    Sussex
    MS-Off Ver
    Office 365
    Posts
    6

    Re: Multi dependent dropdowns with auto-generated cell

    Quote Originally Posted by ChemistB View Post
    Do you also need help with generating the dropdown lists? Do you want those lists to update automatically if you add more "restaurants" or "food choices?"
    Set up a defined name Restaurants, "refers to"
    =Master!$A$3:INDEX(Master!$A$1:$A$100, COUNTA(Master!$A$1:$A$100)-1)

    Food
    =Master!$B$2:INDEX(Master!$B$2:$Z$2, COUNTA(Master!$B$2:$Z$2))
    Hi ChemistB,

    In regards to the dropdown list, I have just made a separate tab and copied the headers from the master table and done a data validation.
    I would quite like the option to have an automatic update feature as the table continues to grow.

  7. #7
    Registered User
    Join Date
    05-24-2021
    Location
    Sussex
    MS-Off Ver
    Office 365
    Posts
    6

    Re: Multi dependent dropdowns with auto-generated cell

    Quote Originally Posted by torachan View Post
    Just one table - no on-sheet formula.
    It does not matter if you add another to the bottom of the table out of order the combos will deal with the sort.
    torachan.
    Torachan,

    This does look very good, thank you for taking the time to provide this.
    I have no experience with macros / widgets before but I would like to start.

    On the original SS I am working on there are a few more options other than "NO" or "YES" for availability.
    How did you create this table with all the corresponding options?

  8. #8
    Forum Expert torachan's Avatar
    Join Date
    12-27-2012
    Location
    market harborough, england
    MS-Off Ver
    Excel 2010
    Posts
    4,304

    Re: Multi dependent dropdowns with auto-generated cell

    The table is your original with some of the data transposed.
    In this format the array loading the comboboxes is just filtered accross its columns - 'the raw power of VBA'

+ 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 Dropdowns & Auto Filling Cells based on table
    By Mic_ExcelNoob in forum Excel General
    Replies: 9
    Last Post: 08-03-2020, 04:01 AM
  2. [SOLVED] Dependent Dropdowns
    By cr130 in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 09-13-2019, 05:13 PM
  3. 2 dependent dropdowns that then autopopulate a specific cell
    By seanomuiri in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-19-2018, 05:09 AM
  4. Dependent Dropdowns
    By ea223 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 02-26-2015, 12:33 PM
  5. [SOLVED] Dependent Dropdowns
    By Meabh in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 01-29-2015, 08:11 AM
  6. [SOLVED] Dependent Dropdowns, clearing dependent value when parent value changes
    By ptmald in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-14-2013, 01:52 PM
  7. Dependent dropdowns
    By Jogier505 in forum Excel General
    Replies: 5
    Last Post: 12-30-2009, 08:39 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