+ Reply to Thread
Results 1 to 5 of 5

How do you match one cell to the selections made in two drop down menu's?

  1. #1
    Registered User
    Join Date
    12-24-2012
    Location
    Chesterfild
    MS-Off Ver
    Excel 2000
    Posts
    71

    How do you match one cell to the selections made in two drop down menu's?

    This one is a little complex top explain, but in effect i want an entry to appear in one cell that is dependent on the selections made in two different drop down menus

    On the attached:

    One drop menu is in cell N4, and the other in cell M9

    So taking cell G16 as an example,

    I want the value there to show the entry from cell P62 if the options chosen in the drop down menu's are AB and With Legs
    but i want the entry to match what is in cell R71 for example if AC and Face Fix is chosen

    I assume this is done using VLOOKUP rather than the MATCH command? But i cant get my head round how to get it to compare two separate entries to look up a third?

    Does it need tabulating differently or a table creating to make this work?

    many thanks for any help on this one!
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    10-10-2016
    Location
    Sheffield
    MS-Off Ver
    365 and rarely 2016
    Posts
    3,212

    Re: How do you match one cell to the selections made in two drop down menu's?

    your data in the look up table is in a painful format
    if you added the type by the side of the components in say column t in each row
    in u62 copied down =S62&T62

    then in g16
    =INDEX(P62:R139,MATCH(E16&N4,$U$62:$U$139,0),MATCH(M9,$P$61:$R$61,0))

    however E16 needs to be stringer, not stringers

  3. #3
    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
    30,954

    Re: How do you match one cell to the selections made in two drop down menu's?

    Yes : i suggest to revise your tables to have a single table with added column "TYPE" ("AB","AC" etc)

    Looking at the table the only difference appear to be GEN-FAB-xx01-10 where xx is AB, AC etc

    This is the "lookup" with current tables:

    =INDEX($P$62:$R$67,MATCH($E$16,$O$62:$O$67,0),MATCH($M$9,$P$61:$R$61,0))

    Change "Stringers" to "Stringer"

  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
    30,954

    Re: How do you match one cell to the selections made in two drop down menu's?

    Two other options;

    A single table, with each type as a named range (file has named ranges for AB and AC)

    OR a "common" table (see O118 onward) called "All_rng")

    For 1st option

    in G16

    =INDEX(INDIRECT($N$4&"_Rng"),MATCH($E$16,INDEX(INDIRECT($N$4&"_Rng"),0,1),0),MATCH($M$9,Hdr_rng,0))

    or

    In G18

    =SUBSTITUTE(INDEX(All_rng,MATCH($E$16,INDEX(All_rng,0,1),0),MATCH($M$9,Hdr_rng,0)),"XX",$N$4)
    Attached Files Attached Files

  5. #5
    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,050

    Re: How do you match one cell to the selections made in two drop down menu's?

    Just co clarify, using a DD is really no different to just typing into a cell. All it really does, is save some typing, helps avoid typos, and could be used to restrict data entry - other than that, as far as formulas are concerned, the data might as well have been typed in
    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

+ 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. Replies: 2
    Last Post: 07-14-2016, 09:44 AM
  2. Replies: 3
    Last Post: 01-09-2014, 05:55 PM
  3. [SOLVED] If two different selections made from drop down menu = to answer in new cell
    By randomfluky in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 07-17-2013, 05:54 AM
  4. Replies: 0
    Last Post: 01-15-2013, 05:59 PM
  5. Replies: 22
    Last Post: 02-04-2010, 06:11 PM
  6. Changing selections in a drop-down menu/list
    By littlepixie in forum Excel General
    Replies: 2
    Last Post: 02-29-2008, 02:42 PM
  7. [SOLVED] Multiple selections in a drop down menu
    By brmhl in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 03-02-2005, 12:06 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