+ Reply to Thread
Results 1 to 9 of 9

Dynamic Chart Data Table

  1. #1
    Forum Expert RobertMika's Avatar
    Join Date
    06-22-2009
    Location
    Haverhill, UK
    MS-Off Ver
    Excel 2003-13
    Posts
    1,530

    Dynamic Chart Data Table

    I know how to build Dynamic Chart but is there a way to create dynamic "Chart Data Range"?
    If you build a table using OFFSET formula
    Let say
    =OFFSET('Chart RFT'!$A$3,,,'Chart RFT'!$A$2+1,'Chart RFT'!$G$3+1)
    where
    'Chart RFT'!$A$2+1 is the height
    and
    'Chart RFT'!$G$3+1 is the width

    and call it ChartTable

    you can use it in the "Chart Data Range" but as soon as you close the "Data source" box, the Named Range will change to the table reference
    ='Chart RFT'!$A$3:$B$6
    and any update to the hight or width is not longer reflected on the ranges.

    Any ideas?
    If you are http://www.excelforum.com/image.php?type=sigpic&userid=125481&dateline=1392355029happy with the results, please add to the contributor's
    reputation by clicking the reputation icon (star icon).




    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.
    http://www.excelaris.co.uk

  2. #2
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,431

    Re: Dynamic Chart Data Table

    Unfortunately not. As you have discovered whilst the select data dialog will allow you to use a named range as the source it converts that to normal range references for each series.

    If you could it would allow for dynamic series as well as dynamic categories.
    Cheers
    Andy
    www.andypope.info

  3. #3
    Forum Expert RobertMika's Avatar
    Join Date
    06-22-2009
    Location
    Haverhill, UK
    MS-Off Ver
    Excel 2003-13
    Posts
    1,530

    Re: Dynamic Chart Data Table

    Thank you Andy
    So is the a way to build Dynamic stack column Chart?

    I need the Series to appear only when they are needed.
    I have dates on top of the table,(5 cells) categories (basedon formulas)on the left an the table is based on formulas.

    Let say today I have just one entry for "cat 1"
    This will show first series only.

    Tomorrow I will have 2 for "cat1" and 3 for "cat2".
    So what I would like to see is on chart is two days with :
    first day with "cat1" and
    the second day with "cat1" & ""cat2".

    Is this do-able?

  4. #4
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,431

    Re: Dynamic Chart Data Table

    Sorry that's a little confusing. when you say cat do you mean series?

    Can you post a workbook example with the data and chart for each day, perhaps that would make it clearer.

  5. #5
    Forum Expert RobertMika's Avatar
    Join Date
    06-22-2009
    Location
    Haverhill, UK
    MS-Off Ver
    Excel 2003-13
    Posts
    1,530

    Re: Dynamic Chart Data Table

    Hi Andy
    Entries are made in "Jan-Mar 2014" tab.
    With this set up I would like to see the "ef" category on 17/02/2014

    But this "ef" may not be needed till 17 and let say tomorrow a new category will come up in cell A6 gfh) and that should be visible only tomorrow
    Excelf2.xlsx

  6. #6
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,431

    Re: Dynamic Chart Data Table

    With named ranges you can extend the number of data points in know series.
    You can't (that I know of) add new series.

    To add new series you would need to use VBA code.

    Alternatively you could change your data layout and use pivot table/chart
    Attached Files Attached Files

  7. #7
    Forum Expert RobertMika's Avatar
    Join Date
    06-22-2009
    Location
    Haverhill, UK
    MS-Off Ver
    Excel 2003-13
    Posts
    1,530

    Re: Dynamic Chart Data Table

    Thank you Andy for the alternatives -still PT need to be manually refreshed.

    With the VBA code, would you mind to give an example?
    Would that be based on Intersect in column A for each series?
    ?

  8. #8
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,431

    Re: Dynamic Chart Data Table

    Please Login or Register  to view this content.
    I have updated your formula in column G, which calculates width of category, to handle any potential errors.

    You will still need to run the macro when new data changes.
    Attached Files Attached Files

  9. #9
    Forum Expert RobertMika's Avatar
    Join Date
    06-22-2009
    Location
    Haverhill, UK
    MS-Off Ver
    Excel 2003-13
    Posts
    1,530

    Re: Dynamic Chart Data Table

    Thank you Andy.


    Another feature that MS can incorporate in next Excel version.

+ 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] Help with building a dynamic table and chart
    By thelegazy in forum Excel Charting & Pivots
    Replies: 5
    Last Post: 07-12-2013, 11:59 AM
  2. Dynamic table and chart
    By Planteplankton in forum Excel Charting & Pivots
    Replies: 0
    Last Post: 02-06-2013, 03:23 AM
  3. Dynamic Chart with Horizontal Table
    By timarcarze in forum Excel Charting & Pivots
    Replies: 18
    Last Post: 12-20-2012, 11:35 AM
  4. Dynamic table formula for sorting data to another table dynamic
    By 650dozer in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 08-21-2012, 07:22 PM
  5. Replies: 4
    Last Post: 06-25-2012, 03:25 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