+ Reply to Thread
Results 1 to 10 of 10

Investment Max Drawdown (1-Cell) Formula without VBA

  1. #1
    Registered User
    Join Date
    09-20-2012
    Location
    UK
    MS-Off Ver
    Excel 2007
    Posts
    6

    Question Investment Max Drawdown (1-Cell) Formula without VBA

    Hi Guys, this is my first post so I apologise for anything incorrect.

    I'm almost certain that this isn't possible to do without the use of VBA (Which I have developed a code for) but I would like to see if excels in built functions on arrays will make it possible. See the attached:

    Running Drawdown Monitor..xlsx

    As you can see in the attachment, I want to calculate the Maximum Drawdown of an investment (defined as the largest % drop from a local maximum before recovery), and as you can see, I have done it (cell F5) with the help of two helper columns (the 3rd is just for graphing and isnt important). The only necessary columns are the two performance columns (B:C) and the NAV (D). I have been wondering if it is possible to make this calculation possible in just one cell...

    So if i am not mistaken, this problem boils down to - can I make an IF formula work on an array of arrays?

    My belief is NO , not without VBA due to the process requiring looping, but I thought I would consult the Elders before I give up as I have never looked into iterations and circular references in excel and if they could be applicable here

    Alternatively any further simplification would be cool.

    Like I said though, I already have a VBA solution to it, but I like to avoid VBA where possible as it tends to scare some people.

    Thanks for any help you can offer,

    Thecrell

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

    Re: Investment Max Drawdown (1-Cell) Formula without VBA

    A different approach and you can do away with one helper column and the array formulas..

    Calculate drawdown by using in Row 11

    =MIN((D11-MAX($D$11:D11))/MAX($D$11:D11),0)

    Copy down..See Column H of attached

    Does this help?
    Attached Files Attached Files
    Life's a spreadsheet, Excel!
    Say thanks, Click *

  3. #3
    Registered User
    Join Date
    09-20-2012
    Location
    UK
    MS-Off Ver
    Excel 2007
    Posts
    6

    Re: Investment Max Drawdown (1-Cell) Formula without VBA

    Thanks for that, Ace. I didnt see that more elegant way of doing it when I put it together, very helpful

  4. #4
    Registered User
    Join Date
    02-25-2013
    Location
    Australia
    MS-Off Ver
    Excel 2010
    Posts
    1

    Re: Investment Max Drawdown (1-Cell) Formula without VBA

    Hi, is it possible to calculate the max drawdown in the one cell, simply using the monthly return column without using a separate helper column

  5. #5
    Registered User
    Join Date
    05-25-2011
    Location
    US
    MS-Off Ver
    Excel 2003
    Posts
    4

    Re: Investment Max Drawdown (1-Cell) Formula without VBA

    I also would like to know if it's possible to do this in one formula in one cell as well. I haven't come up with a solution. The reason I don't want to use a helper column is that I would like to calculate maximum drawdown with different starting dates, which would require multiple helper columns.

    By the way, an even simpler formula for the above excel spreadsheet is just =D11/MAX($D$11:D11)-1.

    Thanks if anybody knows a way to loop this into one cell.

  6. #6
    Registered User
    Join Date
    05-29-2013
    Location
    New York, USA
    MS-Off Ver
    Excel 2007
    Posts
    1

    Re: Investment Max Drawdown (1-Cell) Formula without VBA

    Can you please explain how to create the dynamic line color in the drawdown graph?

    Thanks!

  7. #7
    Registered User
    Join Date
    11-13-2013
    Location
    Rio de Janeiro, Brazil
    MS-Off Ver
    Excel 2011
    Posts
    1

    Re: Investment Max Drawdown (1-Cell) Formula without VBA

    Does anybody here knows how could I calculate the Maximum drawdown in my spread sheet?

    If you want that I translate the spread sheet, just ask me. Basically, I just need this to complete my spread sheet.

    If it is possible without VBA it will be better.
    Attached Files Attached Files

  8. #8
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: Investment Max Drawdown (1-Cell) Formula without VBA

    phvecchiati,

    Unfortunately you need to post your question in a new thread, it's against the forum rules to post a question in the thread of another user. If you create your own thread, any advice will be tailored to your situation so you should include a description of what you've done and are trying to do. Also, if you feel that this thread is particularly relevant to what you are trying to do, you can surely include a link to it in your new thread.
    If I have helped, Don't forget to add to my reputation (click on the star below the post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)
    Use code tags when posting your VBA code: [code] Your code here [/code]

  9. #9
    Registered User
    Join Date
    02-12-2021
    Location
    NewYork
    MS-Off Ver
    2019
    Posts
    1

    Re: Investment Max Drawdown (1-Cell) Formula without VBA

    It doesn't work

  10. #10
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,946

    Re: Investment Max Drawdown (1-Cell) Formula without VBA

    Quote Originally Posted by jhon011 View Post
    It doesn't work
    what doesnt work, and why have you not started your own thread with your question?
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

+ 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