+ Reply to Thread
Results 1 to 10 of 10

Extract Data with dependent dropdown from multiple tables

  1. #1
    Registered User
    Join Date
    05-17-2021
    Location
    Germany
    MS-Off Ver
    365
    Posts
    4

    Extract Data with dependent dropdown from multiple tables

    Hello everybody,

    my goal is to implement a dependent drop down list which will show me the bills of material of a finished product.

    Select category: -> Data Validation -> List: Engine A, Engine B, Engine C, Engine D, Engine E

    Every Engine has subcategories: Engine A: A033 Diesel, A055 Diesel ; Engine B: A122 Gas... which are linked to their main category with Data Validation and the indirect formula.

    Engines A-E have their own data sheet and within the data sheets there are 3-8 tables which represent the Bills of Material of each product.

    Every table is setup with these headers.

    level category products description quantity (I applied names to my tables, example): A033 Diesel
    1 Engine A 03154545 motor housing 1
    . . . . .
    . . . . .

    i have setup the dependent dropdownlists but i am struggling to find a formula which returns a whole table and not just a cellvalue.( i guess vlookup wouldn't work here??)

    Hoping someone can help me out. Thanks!
    Attached Files Attached Files
    Last edited by bsolutions; 05-18-2021 at 04:06 AM.

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

    Re: Extract Data with dependent dropdown from multiple tables

    We'd need to see how the tables are set up on the individual sheets. I suggest uploading a dummy workbook showing how you have your tables set up, how and where your dropdowns are and where you want your data returned. Follow the instructions in the yellow banner to attach a workbook.
    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
    Registered User
    Join Date
    05-17-2021
    Location
    Germany
    MS-Off Ver
    365
    Posts
    4

    Re: Extract Data with dependent dropdown from multiple tables

    okay, I've uploaded a dummy workbook.

  4. #4
    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
    31,181

    Re: Extract Data with dependent dropdown from multiple tables

    My initial response is to suggest you have one table on a single sheet rather than multiple sheets which makes any formulae more complex : even more so, if you simply want to extract data for a particular engine type.

    You have 2 tables onn a sheet which I assume represent the specific engine type but there is no data which identifies them as such.

    I don't have 365 so i wont offer an "old" solution as 365 has many new functions which make data extract easier.

  5. #5
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,710

    Re: Extract Data with dependent dropdown from multiple tables

    Show the expected results in the file.
    Why there are two tables in Engine A and B sheets.
    Last edited by kvsrinivasamurthy; 05-18-2021 at 05:16 AM.
    Pl note
    Array formula should be confirmed with Ctrl+Shift+Enter keys together.
    If answere is satisfactory press * to add reputation.

  6. #6
    Registered User
    Join Date
    05-17-2021
    Location
    Germany
    MS-Off Ver
    365
    Posts
    4

    Re: Extract Data with dependent dropdown from multiple tables

    Hello kvsrinivasamurthy,

    unfortunately i cant upload the real file, because of sensitive data. Why there are two tables:

    In my orginal file, i work with something else than engines (just made that up, to show as an example).

    Engine A, all engines in this category are Diesel engines.All the engines within this category are built similar but it may be that the first engine in this category has components which another one doesnt have(comparing A033_Diesel with A055_Diesel). For that reason i made a table for every single product. Engine A sheet: table 1 represents: A033_Diesel and table 2 on this sheet represents: A055_Diesel. (Giving a name to each table, by selecting it and typing name in the cell on the top left)

    Some Bills of Materials have 40 rows with information where others only have 20. Creating one big table, would probably make this easier.

    I would need a formula that looks for the value of the dependent cell (example) -> 1.Dropdown Engine A --> 2.Dropdown A033_Diesel

    and after selecting A033_Diesel it should return the whole table (which is table 1 from Sheet Engine A in this example)

    Vlookup would search for A033_Diesel, but it wouldn't return the whole table, because vlookup only returns the value of one cell.

    If i search for an electric engine i dont want components listed with 0 that arent in this product. Do you know what i mean?

    Im probably thinking to difficult to solve this problem.

  7. #7
    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
    31,181

    Re: Extract Data with dependent dropdown from multiple tables

    All data in "Engine A" sheet

    in F5

    =IFERROR(INDEX('Engine A'!$B$3:$F$33,AGGREGATE(15,6,1/('Engine A'!$C$3:$C$33='BOM-Searchbar'!$D$3)*(ROW('Engine A'!$A$3:$A$33))-ROW($A$2),ROWS($1:1)),MATCH('BOM-Searchbar'!F$4,'Engine A'!$B$2:$F$2,0)),"")

    Copy across

    will need amending for "Table" format
    Attached Files Attached Files
    Last edited by JohnTopley; 05-18-2021 at 09:15 AM.

  8. #8
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,710

    Re: Extract Data with dependent dropdown from multiple tables

    Pl see file. Use both the codes .
    When D3 value changed the data in the table is loaded to the sheet by codes.
    Worksheet event code

    Please Login or Register  to view this content.
    Worksheetevent

    To paste the code
    Right click on Sheet tab --> view code
    Visual Basic (VB) window opens.
    Paste the code
    Close the VB window.

    Macro code to be copied to Module.
    Please Login or Register  to view this content.
    Attached Files Attached Files

  9. #9
    Registered User
    Join Date
    05-17-2021
    Location
    Germany
    MS-Off Ver
    365
    Posts
    4

    Re: Extract Data with dependent dropdown from multiple tables

    thank you guys for your help. Very much appreciated!!
    Have a nice weekend and stay safe!

    Best Regards

  10. #10
    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
    31,181

    Re: Extract Data with dependent dropdown from multiple tables

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED.

    Also, you may not be aware that you can thank those who have helped you by clicking the small star icon located in the lower left corner of the post in which the help was given. By doing so you can add to the reputation(s) of those who helped.

+ 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. [SOLVED] Multiple Dependent Dropdown List
    By hanif in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-09-2018, 08:47 AM
  2. [SOLVED] Multiple Dependent Dropdown List
    By hanif in forum Excel Formulas & Functions
    Replies: 12
    Last Post: 05-29-2018, 08:45 AM
  3. [SOLVED] Dependent dropdown validation - dependent data is string
    By jnewby in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 02-12-2014, 07:50 PM
  4. [SOLVED] Dependent Data Validation From Pivot Tables for multiple-line-use
    By Bertrand_V in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 01-07-2014, 01:48 PM
  5. [SOLVED] Lookup Multiple Tables, match, and extract relevant data
    By q8books in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 07-15-2013, 03:51 PM
  6. [SOLVED] Multiple Dependent Dropdown Box's in Excel
    By voelkerl in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 06-08-2013, 09:33 AM
  7. Multiple Dependent dropdown
    By dimitrz in forum Excel General
    Replies: 4
    Last Post: 11-20-2008, 08:40 AM

Tags for this Thread

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