+ Reply to Thread
Results 1 to 6 of 6

Drop down excel graph

  1. #1
    Registered User
    Join Date
    09-09-2019
    Location
    Texas, USA
    MS-Off Ver
    365
    Posts
    11

    Drop down excel graph

    Everyone,

    I have ~10+ columns of data that I have made individual X Y scatter plots for but as my data set grows I would like to be able to select a drop down and only see that one chart. I have seen tutorials for basically a matrix where it looks up X and Y names and returns that 1 specific value but I am looking to plot thousands of data points in columns.

    My column "titles" are simply 1, 2, 3, 4, etc. one tab is all of the X values and another tab all of the Y values I want to plot. Is there a way I can get this drop down feature to work so that I can just click "Test 12" and it shows that graph?

    Thanks for any help, fairly new to dynamic properties in excel. I have attached an example sheet.
    Attached Files Attached Files
    Last edited by jexcelboi; 10-02-2019 at 11:15 AM.

  2. #2
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,053

    Re: Drop down excel graph

    Will you please attach a SMALL sample Excel workbook (10-20 rows of data is usually enough)? However, please give us an indication of the approximate number of rows of data you want the solution to work with (100, 1000, 100,000 or whatever). Please DO NOT attach a picture of an Excel sheet (I do not have the patience to re-type any/all your stuff before starting).

    1. It does NOT have to be your real sheet - mock up a SAMPLE if you need to. But not 1000's of rows!!! It makes manual checking so tedious. Whatever you do... make sure that all confidential information is removed first!!

    2. Make sure that your sample data are truly REPRESENTATIVE of your real data. For example, don't show text in a column if it's really a number. The use of unrepresentative data is very frustrating and can lead to long delays in reaching a solution.

    3. Make sure that your desired solution is also shown (mock up the results manually). To be honest, I am not interested in seeing a non-working formula... or a pile of blank cells. However, I am very interested in seeing your EXPECTED results in their EXPECTED location.

    4. Try not to use merged cells. They cause lots of problems and are DEFINITELY best avoided!

    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.
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

  3. #3
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,728

    Re: Drop down excel graph

    Use cell L1 for the drop-down, so select it and click on Data | Data Validation (twice), and in the Allow box choose List, then enter 12,13,14,15 in the Source box, then click OK. Use this drop-down to select the set of values that you wish to see.

    Put the headings X Values and Y Values in L2 and M2, then these two formulae in the cells stated:

    L3: =IF($L$1="","",INDEX($A3:$D3,MATCH($L$1,$A$2:$D$2,0)))

    M3: =IF($L$1="","",INDEX($F3:$I3,MATCH($L$1,$F$2:$I$2,0)))

    Copy these down as far as required. Verify that the values change when you select a different data set in L1.

    Then you can use this table of values as the source data for your graph (I assume you know how to do that, from your opening post).

    Hope this helps.

    Pete

  4. #4
    Forum Guru
    Join Date
    04-13-2005
    Location
    North America
    MS-Off Ver
    2002/XP and 2007
    Posts
    15,829

    Re: Drop down excel graph

    Here's how I did it in your sample file:

    1) Enter 12 (or 13 or 14 or 15) in K1. Data Validation can easily be used to make this into a dropdown: https://support.office.com/en-us/art...6-eff3ce5f7249
    2) Enter the text "x" and "y" into K2 and L2.
    3) In K3, enter a lookup function to return the appropriate value from the x columns. I used something like =INDEX(A3:D3,MATCH($K$1,A$2:D$2,1)). Note the mix of relative and absolute references for easy copying.
    4) In L3, enter a similar lookup function for the y columns.
    5) Copy/fill K3:L3 down as far as needed.
    6) Create scatter chart from from columns K and L
    7) Because a scatter chart is not going to like the text "X" that you have towards the bottom of each column, I replaced those "X"s with =NA() errors. Excel's scatter charts ignore can ignore N/A errors, but text strings will mess up the scatter chart. (See essay here: https://support.office.com/en-us/art...6-eff3ce5f7249 ).

    Will something like that work for you?
    Quote Originally Posted by shg
    Mathematics is the native language of the natural world. Just trying to become literate.

  5. #5
    Registered User
    Join Date
    09-09-2019
    Location
    Texas, USA
    MS-Off Ver
    365
    Posts
    11

    Re: Drop down excel graph

    Thank you both! This is working perfectly. I have a drop down now showing all of my charts. This has REALLY cleaned up my chart tab and this file continually grows with each passing test. This has made looking at the data much easier. I can simply make two of these drop downs now, select the various tests I want to compare and I should be able to get a great visual. I appreciate all of the feedback!

  6. #6
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,728

    Re: Drop down excel graph

    Glad to help.

    If that takes care of your original question, please take a moment to select Thread Tools from the menu above and to the right of your first post in this thread, and mark the thread as SOLVED.

    Also, since you are relatively new to the forum, you might like to know that you can directly thank those who have helped you by clicking on the small "star" icon located in the lower left corner of a post that you have found to be helpful (not just in this thread - for any post that has helped you). This also adds to the reputation of the poster (the small green bars in the poster's profile).

    Pete

+ 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] Two Drop Down Menus for the one Table and Graph
    By mrtimnus in forum Excel General
    Replies: 3
    Last Post: 08-12-2016, 08:04 AM
  2. Plot two series in same graph selected by "Drop Box" graph title
    By Ochimus in forum Excel Charting & Pivots
    Replies: 8
    Last Post: 02-06-2016, 10:11 AM
  3. Graph with drop down list
    By mma3824 in forum Excel Charting & Pivots
    Replies: 3
    Last Post: 04-21-2014, 07:38 PM
  4. [SOLVED] Drop down in Graph (excel 2003)
    By Excel Dumbo in forum Excel Charting & Pivots
    Replies: 2
    Last Post: 02-10-2014, 02:44 AM
  5. Drop down in Graph (excel 2003)
    By Excel Dumbo in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 01-31-2014, 01:43 AM
  6. Drop down in Graph (excel 2003)
    By Excel Dumbo in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 01-31-2014, 01:42 AM
  7. Drop Down Box + Chart/Graph
    By soemrush in forum Excel General
    Replies: 2
    Last Post: 10-13-2011, 04:05 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