+ Reply to Thread
Results 1 to 9 of 9

Help calculating drawdown

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

    Help calculating drawdown

    Hi,

    I am trying to calculate the Drawdown of the cumulative Profit & Loss (P&L) and am having a difficulty in doing so. The issue is that the cumulative p&l has many cells in it that are '#na', thus I am getting an error when calculating the drawdown. I cannot change the cumulative p&l to empty or 0 for the cells in which it states '#na' because it is linked to a much larger spreadsheet. Thus, I want to know if anyone can help me to calculate the drawdown while keeping the cells in the cumulative p&l column (column a) as #na. Currently, cells a3:a137 are #na and the data begins in cell a138, but I would like the drawdown formula to incorporate cells a3 and beyond, as sometimes there will be data in these cells and sometimes it will be #na. My current formula for drawdown is:=IF(Isnumber(a3),a3-max($a$3:a3),a3). This simply returns #na in all of the cells. Could you please advise?

    Thanks,

    Maani
    Attached Files Attached Files
    Last edited by maani; 07-27-2009 at 10:59 AM.

  2. #2
    Forum Expert
    Join Date
    04-14-2009
    Location
    Taiwan
    MS-Off Ver
    Excel 2016,2019,O365
    Posts
    2,004

    Re: Help calculating drawdown

    Try this,

    B2
    Please Login or Register  to view this content.
    committed with Ctrl+Shift+Enter, then copied down

    Hope this helps,
    WindKnife

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

    Re: Help calculating drawdown

    Hi WindKnife,

    Thanks for the reply. When I put the formula you suggested, it returned the result of '0' in all the cells until the #na result stops (b137), then from b138 onwards it just returned #na in the drawdown column. I'm looking to capture the drawdown in this case from b138 onwards in numerical form.

    Maani

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

    Re: Help calculating drawdown

    My apologies. I went through and used the CTRL+SHIFT+ENTER function and it works! What does CTRL+SHIFT+Enter do? I have never used that combination within a formula. Thanks again!

    Maani

  5. #5
    Forum Expert
    Join Date
    04-14-2009
    Location
    Taiwan
    MS-Off Ver
    Excel 2016,2019,O365
    Posts
    2,004

    Re: Help calculating drawdown

    Have you committed with Ctrl+Shift+Enter after inputing formula?

  6. #6
    Forum Expert
    Join Date
    04-14-2009
    Location
    Taiwan
    MS-Off Ver
    Excel 2016,2019,O365
    Posts
    2,004

    Re: Help calculating drawdown

    It's array formula. You can learn it from many articles in this site.

    WindKnife

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

    Re: Help calculating drawdown

    Also, would there be a way to return the result #NA instead of 0 whenever the data hasn't started (in this case, cells a3:a137)? I tried to change this by changing the formula to #na at the end of it, but the result comes back as #name. The reason I am asking to change this is because for graphing purposes, #na doesn't take into account empty values, whereas 0 is graphed.

  8. #8
    Forum Expert
    Join Date
    04-14-2009
    Location
    Taiwan
    MS-Off Ver
    Excel 2016,2019,O365
    Posts
    2,004

    Re: Help calculating drawdown

    Try this,
    Please Login or Register  to view this content.
    Committed with Ctrl+Shift+Enter

    HTH,
    WindKnife

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

    Re: Help calculating drawdown

    Thanks WindKnife

+ 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