+ Reply to Thread
Results 1 to 9 of 9

How to create a cumulative column based upon another column

  1. #1
    Registered User
    Join Date
    05-26-2009
    Location
    new york
    MS-Off Ver
    Excel 2007
    Posts
    76

    How to create a cumulative column based upon another column

    Hello,

    I have a model built that calculates the daily Profit and loss ('Data for Pivot' tab, column M). I would like to calculate the cumulative profit and loss and am having a difficult time doing this with a simple formula. The Daily P/L column is empty (#NA value is in the cells) up until cell C138 as there is no data before that (which is the way it is supposed to be). However, once data has begun to be populated the daily profit and loss is shown (in this case from M138 onwards). The issue I am having is that I cannot seem to be able to create a formula that will capture the cumulative P/L. My desired result is evident in cells N179 onwards, as it simply captures the cumulative p/l. However, this only works if I change the formula once data is populated (in this case cell N177 is where i put in a new formula; the previous formula can be seen in cells N3-N176). If I attempt to put in the formula that is in cell N177 for all of the cells in column N, it gives me an error. Thus, I think that this may need to be programmed via VBA, but I have not been successful in doing this. The issue is that the data population in this model begins on different cells based on the different inputs that I put in ('Mov_Avg_Chart' tab, cells c6 and c8). Thus, I can't hard-code a formula based on a particular cell. If anyone can help me with this, I'd greatly appreciate it, as I've just spent the better part of a day trying to figure this out and cannot.

    Thanks,

    Maanihttp://www.4shared.com/file/12029727...Version_4.html
    Last edited by maani; 07-24-2009 at 11:52 AM.

  2. #2
    Registered User
    Join Date
    11-11-2008
    Location
    Syracuse NY
    MS-Off Ver
    2007
    Posts
    90

    Re: How to create a cumulative column based upon another column

    Oh joy: "Websense blocks personal network storage and backup." Might want to put that file somewhere else.

  3. #3
    Registered User
    Join Date
    05-26-2009
    Location
    new york
    MS-Off Ver
    Excel 2007
    Posts
    76

    Re: How to create a cumulative column based upon another column

    Is that the error you are receiving when trying to download the file? I tried to download it from the link and had no problem downloading it. I do not know of any other sites to post the link on. Do you know of any sites you recommend?

  4. #4
    Registered User
    Join Date
    11-11-2008
    Location
    Syracuse NY
    MS-Off Ver
    2007
    Posts
    90

    Re: How to create a cumulative column based upon another column

    Sorry, I should have been more helpful. You can do it as an attachment on your post, like this. Hit the paperclip.
    Attached Images Attached Images

  5. #5
    Registered User
    Join Date
    05-26-2009
    Location
    new york
    MS-Off Ver
    Excel 2007
    Posts
    76

    Re: How to create a cumulative column based upon another column

    No worries. I can't attach the file to my post even once its zipped - it keeps saying upload of file failed even though its 6MB, which is under the maximum file zip file size. Do you know of any file sharing websites I could post it on that won't get caught up in your Webanese error? Sorry again about the inconvenience.

  6. #6
    Registered User
    Join Date
    11-11-2008
    Location
    Syracuse NY
    MS-Off Ver
    2007
    Posts
    90

    Re: How to create a cumulative column based upon another column

    I don't know of any sites that will work. Can you use your own domain if you have one, or give us a version with less data?

  7. #7
    Registered User
    Join Date
    05-26-2009
    Location
    new york
    MS-Off Ver
    Excel 2007
    Posts
    76

    Re: How to create a cumulative column based upon another column

    I tried the link through various other computers and it works on all of them. I cut down the file size all the way to 2mb and it still won't attach, even as a zip file. Could I email it to you?

    The link is http://www.4shared.com/file/12029727...Version_4.html

  8. #8
    Registered User
    Join Date
    05-26-2009
    Location
    new york
    MS-Off Ver
    Excel 2007
    Posts
    76

    Re: How to create a cumulative column based upon another column

    I have re-posted it with a much smaller file size; could you see if this works?

    http://www.4shared.com/file/12033667...Version_5.html

  9. #9
    Registered User
    Join Date
    11-11-2008
    Location
    Syracuse NY
    MS-Off Ver
    2007
    Posts
    90

    Re: How to create a cumulative column based upon another column

    I have Websense on my network here at work, I can't get to that site at all. If you can make the file 1 mb or less, you can post it as an attachment. Don't email it to me, I'm not making any guarantees about having time to work on it or even knowing how to solve the problem. The point is to make the file available to everybody. Ask a mod how to do that if you need to.

+ 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