+ Reply to Thread
Results 1 to 8 of 8

Trying to make chart interactive, it works but only kind of

  1. #1
    Forum Contributor
    Join Date
    04-02-2012
    Location
    Ohio
    MS-Off Ver
    Excel 2010
    Posts
    452

    Trying to make chart interactive, it works but only kind of

    In the attached file I have an interactive data range where I can pull up various stats and the desired time period and a chart that displays a single stats. In A21 I have this formula,
    =OFFSET(INDEX(Chart_Options,MATCH(A19,Chart_Options,0)),0,1,1,(15-COUNTBLANK(B5:P5)))
    which I have used to created a defined name of input, which I have put in the chart series for source data.

    My problem is, if I change the desired charted stat in A19 the chart goes blank and I get an error message saying, "A formula in this worksheet contains one or more invalid references. Verify that your formulas contain a valid path, workbook, range name, and cell reference." Putting the cursor in A21, being in edit mode and hitting enter will then update the chart and fix the issue.

    Where did I make a mistake, I can't see it for myself?

    edit: I can't edit any part of the drop down menu without getting an error message.
    Attached Files Attached Files

  2. #2
    Forum Contributor
    Join Date
    02-04-2014
    Location
    NSW, Australia
    MS-Off Ver
    Excel 2010
    Posts
    136

    Re: Trying to make chart interactive, it works but only kind of

    Only briefly looking at it, but on your Summary Tab Cell A21, highlight formula then Ctrl+Shift+Enter

  3. #3
    Forum Contributor
    Join Date
    02-04-2014
    Location
    NSW, Australia
    MS-Off Ver
    Excel 2010
    Posts
    136

    Re: Trying to make chart interactive, it works but only kind of

    Charting.xlsx

    Think i found it, (what i did):

    On summary tab cell B19 used this formula: =VLOOKUP($A$19,$A$6:$L$16,2,0) and copied across (changing the 2 - column reference or as i did just put column numbers above and cell referenced them), then coloured it in white so not seen.
    I also lengthened out the chart data to incorporate cells B19:L19

    Also as a bit of a play:

    Added another secondary plot on your chart to take in your original cell reference and changed it to scatter chart.


    Have fun

  4. #4
    Forum Contributor
    Join Date
    04-02-2012
    Location
    Ohio
    MS-Off Ver
    Excel 2010
    Posts
    452

    Re: Trying to make chart interactive, it works but only kind of

    Thank you, I hadn't thought to do it that way.

  5. #5
    Forum Contributor
    Join Date
    04-02-2012
    Location
    Ohio
    MS-Off Ver
    Excel 2010
    Posts
    452

    Re: Trying to make chart interactive, it works but only kind of

    I am marking this thread as unsolved since unfortunately I couldn't hide the helper formulas and still have it work. I also tried this formula,
    =INDEX(B6:P16,MATCH(A19,Chart_Options,0),1):INDEX(B6:P16,MATCH(A19,Chart_Options,0),15-COUNTBLANK(B5:P5))
    and got some intermittent success with it. Whenever I changed cell a19 I got an error message. Opening the source data window would fix it, I wouldn't have to do anything with the source data, just open the window and then close it. For all the searching I have done on this subject, I am really surprised I haven't found anyone else that has done it. Is it even possible without VBA?

  6. #6
    Forum Expert
    Join Date
    08-12-2012
    Location
    Sydney, Australia
    MS-Off Ver
    Excel 2010
    Posts
    5,636

    Re: Trying to make chart interactive, it works but only kind of

    you cannot hide data you want in a chart

    your named range "input" was incorrect

    i have changed it to read
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    ie...you were missing the $
    Attached Files Attached Files
    Last edited by humdingaling; 03-31-2015 at 12:04 AM.
    If you are satisfied with the solution(s) provided, please mark your thread as Solved.
    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

  7. #7
    Forum Contributor
    Join Date
    04-02-2012
    Location
    Ohio
    MS-Off Ver
    Excel 2010
    Posts
    452

    Re: Trying to make chart interactive, it works but only kind of

    Thank you. So there can not be unlocked references in the defined name that is used for source data?

  8. #8
    Forum Expert
    Join Date
    08-12-2012
    Location
    Sydney, Australia
    MS-Off Ver
    Excel 2010
    Posts
    5,636

    Re: Trying to make chart interactive, it works but only kind of

    it gives unpredictable outcomes which is why it would work sometimes
    unsure why you unlocked references in your example though

+ 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. how to make this kind of graph in excel
    By ijazali in forum Excel Charting & Pivots
    Replies: 10
    Last Post: 12-15-2014, 07:49 AM
  2. how can i make this code works for multiple links it only works for one link
    By baig123 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 12-12-2014, 08:38 AM
  3. [SOLVED] This macro works... kind of. Please spot my error.
    By Alias1431 in forum Excel Programming / VBA / Macros
    Replies: 20
    Last Post: 01-10-2014, 02:31 PM
  4. How do I make this kind of database..?
    By Dan415 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-09-2009, 03:42 AM
  5. How do I make an interactive chart
    By randyvann in forum Excel Charting & Pivots
    Replies: 4
    Last Post: 10-24-2008, 11:36 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