+ Reply to Thread
Results 1 to 7 of 7

Price Menu -Dependent drop downs with lookup function based on multiple selections

  1. #1
    Registered User
    Join Date
    06-12-2006
    Location
    Santa Ana, CA USA
    MS-Off Ver
    Office 365
    Posts
    25

    Price Menu -Dependent drop downs with lookup function based on multiple selections

    Can't figure out how to approach this.

    I'm trying to put together a price menu based on selections from a user based on car info: make, model, category and service.

    Once a user selects a service based on those criteria via drop downs the hour for the job is populated from a pricing table.


    Suggestions?
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    01-05-2013
    Location
    Singapore
    MS-Off Ver
    H&B2016 & H&B2021
    Posts
    3,057

    Re: Price Menu -Dependent drop downs with lookup function based on multiple selections

    Cell D13 = SUMIFS(PRICING[Labor Hours],PRICING[MAKE],$E$9,PRICING[MODEL],$F$9,PRICING[Category],[@Category],PRICING[Service],[@Service])

    Please complete your location and MS Office version.
    Last edited by josephteh; 05-13-2021 at 11:31 PM.

  3. #3
    Forum Expert
    Join Date
    02-10-2019
    Location
    Georgia, USA
    MS-Off Ver
    Office 365
    Posts
    2,827

    Re: Price Menu -Dependent drop downs with lookup function based on multiple selections

    Yes, you need to update your profile with your version - it makes a difference as far as the solution. If you are NOT using MS365, you can try this in cell D13:
    =INDEX(PRICING[Labor Hours],MATCH($E$9&$F$9&[@Category]&[@Service],PRICING[MAKE]&PRICING[MODEL]&[Category]&PRICING[Service],0))

    if you are on MS365, you can try this in D13:

    =XLOOKUP($E$9&F9&[@Category]&[@Service],PRICING[MAKE]&PRICING[MODEL]&PRICING[Category]&PRICING[Service],PRICING[Labor Hours],"Not found",0)

    or this:
    =FILTER(PRICING[Labor Hours],(PRICING[MAKE]=$E$9)*(PRICING[MODEL]=$F$9)*(PRICING[Category]=[@Category])*(PRICING[Service]=[@Service]),"None found")

  4. #4
    Forum Expert
    Join Date
    01-05-2013
    Location
    Singapore
    MS-Off Ver
    H&B2016 & H&B2021
    Posts
    3,057

    Re: Price Menu -Dependent drop downs with lookup function based on multiple selections

    Corrected formula in Post #2.

  5. #5
    Registered User
    Join Date
    06-12-2006
    Location
    Santa Ana, CA USA
    MS-Off Ver
    Office 365
    Posts
    25

    Re: Price Menu -Dependent drop downs with lookup function based on multiple selections

    Thanks, XLOOKUP worked. Awesome!!!

    I updated my profile I'm in the USA and on Office 365.

    I had to change first two cell references and make them both absolute.
    I also removed the "not found" message to blank ""
    =XLOOKUP($D$9&$E$9&[@Category]&[@Service],PRICING[MAKE]&PRICING[MODEL]&PRICING[Category]&PRICING[Service],PRICING[Labor Hours],"",0)


    This will work, but it'd be nice if . . .

    Is there a way to display only related choices in the drop downs? I couldn't figure out how to make drop downs from the PRICING table that only showed one instance for each make, then model . . .
    example: If Toyota is selected in the Make, can the model choice be limited to only Toyota models. Same thing would apply to the category and services.

    Thanks!
    Attached Files Attached Files

  6. #6
    Forum Expert
    Join Date
    02-10-2019
    Location
    Georgia, USA
    MS-Off Ver
    Office 365
    Posts
    2,827

    Re: Price Menu -Dependent drop downs with lookup function based on multiple selections

    I'm not an expert at it, but I made it happen for Make and Model on the attached and you can probably continue to the others. You may get better responses here, or by doing a google search.

    But here's what I've done in the past and what works for me. For the secondary level categories, I first create a table for one of the Top Level categories - for Ford for instance. I would select the column in the table, and give it the same name as the top level category (in this instance, I named it "Ford"). In your case, the user would be selecting the Make in cell D9, so when I'm in the cell where I want to see the secondary drop-down, I'll go to data validation and select "List", and in the "Source" box, I entered:

    =INDIRECT(SUBSTITUTE(SUBSTITUTE($D$9," ",""),"&",""))

    So the D9 is where the top level category is, and this assumes that the named range of your secondary level is named the same as your top level category.
    See attached.
    Attached Files Attached Files
    Last edited by Gregb11; 05-14-2021 at 09:46 PM. Reason: add attachment

  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
    28,178

    Re: Price Menu -Dependent drop downs with lookup function based on multiple selections

    How many Makes, Models, Categories and Service Types are there?

    See attached: Would "Price_tbl" work for you? As Models are unique to a Make they can be "ignored" in the Price table. the Make headings are purely for information.

    The Price "lookup" is simply a match between type of Service and Model.

    in D13

    =IFERROR(INDEX(Price_Tbl!$D$3:$K$9,MATCH($C13,Price_Tbl!$C$3:$C$9,0),MATCH($E$9,Price_Tbl!$D$2:$K$2,0)),"")

    A further possibility is to list (Data Validation) only those Service types applicable to a given Model, using the presence of an "Hourly Rate" as the criterion for including in the service list.

    Added a dynamic Named Range "Service_list" in sheet "Lists"

    in A2

    Copy down

    Data Validation C13

    List ==> "=Service_List"
    Attached Files Attached Files
    Last edited by JohnTopley; 05-15-2021 at 11:33 AM.

+ 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. Help with multiple dependent drop downs
    By vegkol in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 12-08-2020, 11:20 AM
  2. 3 Dependent drop downs based on multiple criteria
    By McKneezy in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 02-16-2020, 05:56 PM
  3. Please help! multiple drop downs dependent on first
    By D8THSTAR in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 08-23-2018, 02:49 PM
  4. Clearing multiple dependent drop downs.
    By CustardSquare in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-22-2014, 09:49 PM
  5. Create drop downs with multiple dependent cells
    By usurrao in forum Excel General
    Replies: 2
    Last Post: 09-22-2014, 05:45 AM
  6. multiple dynamic dependent drop downs
    By atomicrabbit in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 01-29-2014, 10:54 PM
  7. Replies: 17
    Last Post: 02-05-2013, 08:20 PM

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