+ Reply to Thread
Results 1 to 6 of 6

Running sum in a lined chart

  1. #1
    Registered User
    Join Date
    04-05-2009
    Location
    ZG
    MS-Off Ver
    2010
    Posts
    12

    Running sum in a lined chart

    The issue is better described here: http://answers.yahoo.com/question/in...8025955AAT7mSK

    My question is, is there a way to create a steadily rising lined chart (all numbers in the table are positive) with the existing numbers in a table? I could do it by creating a new table with running sums but I would like to use the existing numbers and some kind of a formula.

    Example: a column with numbers 3 1 5 2 would translate into points 3 4 9 11 on a chart

    I hope it is clear enough.

  2. #2
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,463

    Re: Running sum in a lined chart

    For instant we are working in sheet1, A1:A4 = 3,1,5,2
    First, create a defined name, i.e, chart =SUBTOTAL(109,OFFSET(Sheet1!$A$1:$A$4,,,{1,2,3,4},))
    this is a running sum list: 3,4,9,11
    Next, Insert/ chart/design/select data: Legend Entries / Add/ Series value:sheet1!chart
    Then , OK
    Sth like this:
    Untitled.png
    Quang PT

  3. #3
    Registered User
    Join Date
    04-05-2009
    Location
    ZG
    MS-Off Ver
    2010
    Posts
    12

    Re: Running sum in a lined chart

    That looks like a good job for a fixed number of rows, but what if there is much more than 4 rows of numbers to add (let's say 100) and the range is expanding? Still possible this way or is it just more convenient to create an additional table? Thanks btw!

  4. #4
    Forum Expert Ace_XL's Avatar
    Join Date
    06-04-2012
    Location
    UAE
    MS-Off Ver
    2016
    Posts
    6,074

    Re: Running sum in a lined chart

    Taking on from bebo's solution try this in the defined name range

    =SUBTOTAL(109,OFFSET(Sheet1!$A:$A,,,ROW(A1:INDEX(A:A,COUNT(A:A))),))
    Life's a spreadsheet, Excel!
    Say thanks, Click *

  5. #5
    Registered User
    Join Date
    04-05-2009
    Location
    ZG
    MS-Off Ver
    2010
    Posts
    12

    Re: Running sum in a lined chart

    This formula has turned my Excel completely crazy, it was already slow and occasionaly 'not responding' when working with the name manager but now the formula has a life of it's own changing itself at will and sometimes crashing the program and claiming it is out of ressources. It will take me some time to figure out why. It's not like I have a slow computer, it's a core 2 duo processor which should do the job I expect it to do.

  6. #6
    Registered User
    Join Date
    04-05-2009
    Location
    ZG
    MS-Off Ver
    2010
    Posts
    12

    Re: Running sum in a lined chart

    Ok, I have finally managed to make it work. It took some adapting to my real table which is more complicated than the example above. Another problem was the lacking $ in front of every letter and number in a reference which was making my whole computer go crazy with cpu and memory usage shooting up, Excel not responding, everything taking an eternity to display and not doing it correctly, formula changing itself miraculously, etc. The formula in my case is the equivalent of:

    =SUBTOTAL(109,OFFSET(Sheet1!$A$1:$A$4,,,ROW(Sheet1!$A$1:INDEX(Sheet1!$A:$A,COUNT(Sheet1!$A:$A))),))

    It's still a bit slow and buggy (deleting a number in a table sometimes freezes the chart in it's current position and only restarting Excel helps) but I put it down to the name manager (for whatever reason), not the formula. Thanks to both bebo and Ace.

+ 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. Values from different columns lined up in one column, in pivot table?
    By dromedar in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 09-12-2013, 03:00 PM
  2. Replies: 0
    Last Post: 06-10-2013, 05:28 PM
  3. [SOLVED] RE: Question about numbers lined up against dates
    By Mag\(\)\(\) in forum Excel General
    Replies: 0
    Last Post: 05-11-2006, 02:55 PM
  4. Question about numbers lined up against dates
    By Mag\(\)\(\) in forum Excel General
    Replies: 1
    Last Post: 05-09-2006, 06:30 PM
  5. [SOLVED] Lined Monthly Calendar
    By tennisolivia in forum Excel General
    Replies: 1
    Last Post: 02-15-2005, 01:06 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