+ Reply to Thread
Results 1 to 8 of 8

Dynamic chart sheet

  1. #1
    Registered User
    Join Date
    04-18-2012
    Location
    Norway, Ålesund
    MS-Off Ver
    Microsoft office 2010/2013
    Posts
    51

    Dynamic chart sheet

    Is there a way to make a chart sheet dynamic without using VBA? Like for example use defined name and the index formula.
    For example =A1:INDEX(B1:B2;E11)

    Someone made a workbook that only works for windows and not mac, so i try to figure what's wrong and how I can fix it...
    Last edited by Buster^; 06-18-2013 at 05:37 PM.

  2. #2
    Forum Expert teylyn's Avatar
    Join Date
    10-28-2008
    Location
    New Zealand
    MS-Off Ver
    Excel 365 Insider Fast
    Posts
    11,372

    Re: Dynamic chart sheet

    Strictly speaking, a "chart sheet" cannot be made dynamic. It just displays a chart that shows values from a data source.

    But the data source can be made dynamic. If the chart references a dynamic range name instead of a fixed cell range, then it will update when the data that is feeding the range name changes.

    Your sample range name formula is a good start. Whether or not it works depends on what value is in cell E11.

    There are many ways to construct dynamic range names. The perfect formula for your need can only be determined if you share your requirements, preferably as a sample file with dummy data, not real names or addresses.

  3. #3
    Registered User
    Join Date
    04-18-2012
    Location
    Norway, Ålesund
    MS-Off Ver
    Microsoft office 2010/2013
    Posts
    51

    Re: Dynamic chart sheet

    Original.xlsSo the workbook in the attachments is the one I am talking about, now the VBA is used for updating the charts, but I would much rather preffered that it does that by not using VBA or at least mak it compatible with Mac. Because I know that the buttons won't work with mac, and I hav tried to fix it, but that's not the main problem. If the charts cna be updated by something else than VBA it would be great! (All the cells that are green are user input, also cell D11 is the count for how many rows)
    The rest of the code/buttons you don't have to think about. The chart sheets are "Enhetsdiagram" and "Totaldiagram".

    (This is in norwegian, so if any questions please post or send me a message)

  4. #4
    Registered User
    Join Date
    06-16-2013
    Location
    Yorkshire
    MS-Off Ver
    Excel 2013
    Posts
    33

    Re: Dynamic chart sheet

    Either:
    A) Use dynamic named ranges (either Index method, or offset method. See below)

    OR

    B) Covert your data to a table and use structured referencing rather than referencing cell ranges. I.e Use the table column headers instead of A1:A100 etc. As your table expands, the charts should update. (I think)

    Index method:
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Offset method:
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Replace COUNT with COUNTA for non-numeric data

  5. #5
    Forum Expert Palmetto's Avatar
    Join Date
    04-04-2007
    Location
    South Eastern, USA
    MS-Off Ver
    XP, 2007, 2010
    Posts
    3,978

    Re: Dynamic chart sheet

    Easiest way: convert the data source into an Excel Table feature, then, with the table selected, create a Pivot Table/Chart.
    With this approach there is no need for named ranges or VBA.

    Optionally, seeing as you have Excel 2010/2013, you can create slicers as controls to filter the chart.
    Pivot tables do require a refresh everytime changes are made to the source data, but this is a simple button click which, if you like, may be automated with a few lines of VBA code.

    Do some searching on:
    Excel 2010 Tables
    Excel Pivot Charts / Slicers
    Palmetto

    Do you know . . . ?

    You can leave feedback and add to the reputation of all who contributed a helpful response to your solution by clicking the star icon located at the left in one of their post in this thread.

  6. #6
    Forum Expert teylyn's Avatar
    Join Date
    10-28-2008
    Location
    New Zealand
    MS-Off Ver
    Excel 365 Insider Fast
    Posts
    11,372

    Re: Dynamic chart sheet

    Some Excel features like Tables, new Pivot Table features like Slicers, etc, will not be available if the file is run in compatibility mode. You need to decide: do you run 2010/2013? If so, convert the file to the new version and benefit from the new features.

    If you run the file in compatibility mode, your options will be rather limited, and tables and slicers will not be available at all.

    If you have 2010 or newer, what is the rationale for using an *.xls file?

    cheers, teylyn

  7. #7
    Registered User
    Join Date
    04-18-2012
    Location
    Norway, Ålesund
    MS-Off Ver
    Microsoft office 2010/2013
    Posts
    51

    Re: Dynamic chart sheet

    Hmm, the spreadsheet was made before the .xlsx and therefore it has that .xls format (Note: the spreadsheet was not made by me, I am just trying to work it out). But as most people (pupils have excel 2010 or excel 2011(mac) there is no need for compatibility mode

    Edit*if need here is the spreadsheet in new format: Original2.xlsm

    Just a quick question, how can I do it so that 0 is not displayed in a chart?
    Last edited by Buster^; 06-18-2013 at 03:03 PM.

  8. #8
    Registered User
    Join Date
    04-18-2012
    Location
    Norway, Ålesund
    MS-Off Ver
    Microsoft office 2010/2013
    Posts
    51

    Re: Dynamic chart sheet

    So after so time spending, if found a way to do this, using the old NA trick with :D

    If anyone knows a good excel book that talks (primarily or only) about charts, please send me a PM, think I need to learn a bit more (I have changed to excel 2013 so, it would be nice if the book was made for excel 2013, due to new layout system...)
    Last edited by Buster^; 06-19-2013 at 03:56 AM.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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