+ Reply to Thread
Results 1 to 4 of 4

Dynamic Horizontal + Vertical chart

  1. #1
    Registered User
    Join Date
    03-12-2013
    Location
    South Africa
    MS-Off Ver
    Excel 2007
    Posts
    3

    Dynamic Horizontal + Vertical chart

    Hi,

    I need a chart to can be expanded vertically (limited to say 10 rows) and horizontally (no real limit).

    Now I don't have a lot of experience with excel. From what I have seen so far is that you give it the range to use (but this gets replaced with a absolute value) then you edit the seriesNames and add a OFFSET formula for the values. The Label range is also a OFFSET formula.

    The only way I have found to make the graph expand vertically as well is to add the empty rows below the current ones to the graph as series and a OFFSET for the empty values so when this is populated its added to the graph. EDIT: ok it seems like you can't use a OFFSET formula that has all its fields empty as a values field for a graph.

    I would just like to know if there is another/better way to do this.
    I have attached a sample excel file (it does not have the empty rows added as series values etc)

    testingGraph.xlsx
    Last edited by kluchy; 03-12-2013 at 03:20 AM.

  2. #2
    Valued Forum Contributor Sean Thomas's Avatar
    Join Date
    03-25-2012
    Location
    HerneBay, Kent, UK
    MS-Off Ver
    Excel 2007,2016
    Posts
    971

    Re: Dynamic Horizontal + Vertical chart

    hi
    check this link, it might help with dynamic ranges with charts

    http://chandoo.org/wp/2009/10/15/dyn...t-data-series/
    Regards
    Sean

    Please add to my reputation if you think i helped
    (click on the star below the post)
    Mark threads as "Solved" if you have your answer
    (Thread Tools->Mark thread as Solved)
    Use code tags when posting your VBA code:
    [code] Your code here [code]
    Please supply a workbook containing example Data:
    It makes its easier to answer your problem & saves time!

  3. #3
    Registered User
    Join Date
    03-12-2013
    Location
    South Africa
    MS-Off Ver
    Excel 2007
    Posts
    3

    Re: Dynamic Horizontal + Vertical chart

    Hi,

    Yes I used that to get a start, but all these examples are only for a chart that expands either horizontally or vertically. Mine needs to expand BOTH ways. And as far as I can tell you need to add each series ( the vertical growth ) and set its values to a offset formula.

    Did you look at the file I attached?


    EDIT: The link basically tells you that you need to add every series value separately with its own offset formula then it expands either horizontally or vertically (since the value can't be more than one row/column)
    Last edited by kluchy; 03-12-2013 at 04:36 AM.

  4. #4
    Registered User
    Join Date
    03-12-2013
    Location
    South Africa
    MS-Off Ver
    Excel 2007
    Posts
    3

    Re: Dynamic Horizontal + Vertical chart

    Ok, so I found a way to (kinda)do it myself.

    What I did was add empty series to the graph as the vertical expansion. Then for the value I used a formula like:
    =OFFSET(Test1!$B$185,,,1,COUNTIF(Test1!$B$183:$HH$183,">-1"))
    Where:
    COUNTIF(Test1!$B$183:$HH$183,">-1")) is a populated row before it so its not equal to 0 like a regular COUNTA would do for that row ( which causes a problem when used as a
    series value.

    Its a really long *** way to do it but its the only way I have found.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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