+ Reply to Thread
Results 1 to 6 of 6

I can't get Excel to show values from matrix using two dropdown menus

  1. #1
    Registered User
    Join Date
    11-02-2018
    Location
    Brussels, Belgium
    MS-Off Ver
    Excel 2016
    Posts
    3

    I can't get Excel to show values from matrix using two dropdown menus

    Hello everyone

    I'm new to Excel, so this might be an easy question to answer. I've calculated the distance between 10 cities around the world. You can find the distances in the blue colored matrix. Now, I've added two dropdown menus that contain a list with the 10 cities, in cell A20 and B20. I want Excel to show me the distance between the selected cities, which I already calculated in the blue colored matrix, from the dropdown menus in cell C20.

    Capture.PNG

    Don't mind the data outside the blue colored matrix.

    Thanks in advance!
    Attached Files Attached Files
    Last edited by GloryDays; 11-02-2018 at 11:27 AM.

  2. #2
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2403 Win 11 Home 64 Bit
    Posts
    23,810

    Re: I can't get Excel to show values from matrix using two dropdown menus

    Will you please attach a sample Excel workbook? We are not able to work with or manipulate a picture of one and nobody wants to have to recreate your data from scratch.

    1. Make sure that your sample data are REPRESENTATIVE of your real data. The use of unrepresentative data is very frustrating and can lead to long delays in reaching a solution.

    2. Make sure that your desired results are also shown (mock up the results manually).

    3. Make sure that all confidential data is removed or replaced with dummy data first (e.g. names, addresses, E-mails, etc.).

    4. Try to avoid using merged cells as they cause lots of problems.

    Unfortunately the attachment icon doesn't work at the moment, so to attach an Excel file you have to do the following: just before posting, scroll down to Go Advanced and then scroll down to Manage Attachments. Now follow the instructions at the top of that screen.

    Please pay particular attention to point 2 (above): without an idea of your intended outcomes, it is often very difficult to offer appropriate advice.
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

  3. #3
    Registered User
    Join Date
    11-02-2018
    Location
    Brussels, Belgium
    MS-Off Ver
    Excel 2016
    Posts
    3

    Re: I can't get Excel to show values from matrix using two dropdown menus

    I uploaded the Excel file. Hope it's a bit clear what I'm trying to say.

  4. #4
    Forum Expert Sam Capricci's Avatar
    Join Date
    06-14-2012
    Location
    Palm Harbor, Florida
    MS-Off Ver
    16.83 for Mac MS 365
    Posts
    8,480

    Re: I can't get Excel to show values from matrix using two dropdown menus

    you can try this in cell C20 =SUMPRODUCT(($J$4:$S$13)*($J$3:$S$3=A20)*($A$4:$A$13=B20))
    Make contributors happy, click on the "* Add Reputation" as a way to say thank you.
    Sam Capricci

  5. #5
    Registered User
    Join Date
    11-02-2018
    Location
    Brussels, Belgium
    MS-Off Ver
    Excel 2016
    Posts
    3

    Re: I can't get Excel to show values from matrix using two dropdown menus

    That did the trick. Thank you very much

  6. #6
    Forum Expert Sam Capricci's Avatar
    Join Date
    06-14-2012
    Location
    Palm Harbor, Florida
    MS-Off Ver
    16.83 for Mac MS 365
    Posts
    8,480

    Re: I can't get Excel to show values from matrix using two dropdown menus

    Great! Glad that worked for you AND thank you for the rep!

+ 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. Show column headings and corresponding values/text based on dropdown selection
    By deedee90 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 05-03-2018, 07:03 AM
  2. Multiple Dependant Dropdown lists - need to show unique values only please
    By parsonsamie in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 08-27-2014, 07:04 PM
  3. Replies: 4
    Last Post: 05-22-2013, 03:23 PM
  4. Dropdown menus with VBA
    By krlmlt89 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 12-06-2012, 05:00 AM
  5. pivot table won't show other dropdown field values
    By nugundam93 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 08-07-2008, 06:00 AM
  6. Help with dropdown menus
    By [email protected] in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 08-24-2005, 06:05 PM
  7. [SOLVED] show a set of diagonal values in a matrix as a set of consecutive.
    By Kelvin in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 03-08-2005, 09:06 AM

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