Welcome to the Excel Forum

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed.

Please Register to Remove these Ads

Please Register to Remove these Ads



Reply
  #1  
Old 07-02-2009, 02:34 PM
sajeel sajeel is offline
Registered User
 
Join Date: 13 Mar 2009
Location: London, England
MS Office Version:Excel 2003
Posts: 32
sajeel is becoming part of the community
High Water Mark(Draw down Calculation)

Please Register to Remove these Ads

Trying to use the High water Mark method in order to establish a draw down, from new high to low.In the sheet attached looking at "Simple Example" Column V gives the Time series. So the highs occur at 36,48,56,61,70 and 75.What I am trying to calculate is the lowest values between 2 highs. For example between 1st High(36) and 2nd High(48) the minimum value was 12.Between the 2nd High (48) and 3rd High(56) the minimum value was 20 and so on. Thus the draw down between 1st and 2nd High was 1st High-Min value(1st high-2ndhigh)=36-12=24.

Thus in a whole time series I need to produce an automated calculation rather than manually looking at the values and by hand selecting the ranges.

I have made an attempt with the complex example side.
Attached Files
File Type: xlsx High Water Mark Draw downs.xlsx (92.2 KB, 18 views)
Reply With Quote
  #2  
Old 07-02-2009, 03:00 PM
DonkeyOte's Avatar
DonkeyOte DonkeyOte is offline
Forum Guru
 
Join Date: 22 Oct 2008
Location: Suffolk, UK
MS Office Version:2002 & 2007
Posts: 13,660
DonkeyOte has a reputation beyond repute DonkeyOte has a reputation beyond repute DonkeyOte has a reputation beyond repute DonkeyOte has a reputation beyond repute DonkeyOte has a reputation beyond repute DonkeyOte has a reputation beyond repute DonkeyOte has a reputation beyond repute DonkeyOte has a reputation beyond repute DonkeyOte has a reputation beyond repute DonkeyOte has a reputation beyond repute DonkeyOte has a reputation beyond repute
Re: High Water Mark(Draw down Calculation)

It's not clear to me if you were looking to compress all of your calcs into one calculation... that was my take...

If we use the data in A & B in your sample file then set:

Code:
C3: 1

C4:
=IF($B4>IF(COUNT($C$3:$C3)=1,$B3,LOOKUP(9.99999999999999E+307,$C$3:$C3,$B$3:$B3)),IF(COUNT($C$3:$C3)=1,$B4,LOOKUP(9.99999999999999E+307,$C$3:$C3,$B$3:$B3))-MIN(INDEX($B$3:$B3,MATCH(9.99999999999999E+307,$C$3:$C3)):$B3),"")
copied down
Based on my analysis C will replicate your results in N without need for any data other than that stored in B.

Was the above approach your intention ?

Last edited by DonkeyOte; 07-02-2009 at 03:02 PM.
Reply With Quote
  #3  
Old 07-02-2009, 03:12 PM
DonkeyOte's Avatar
DonkeyOte DonkeyOte is offline
Forum Guru
 
Join Date: 22 Oct 2008
Location: Suffolk, UK
MS Office Version:2002 & 2007
Posts: 13,660
DonkeyOte has a reputation beyond repute DonkeyOte has a reputation beyond repute DonkeyOte has a reputation beyond repute DonkeyOte has a reputation beyond repute DonkeyOte has a reputation beyond repute DonkeyOte has a reputation beyond repute DonkeyOte has a reputation beyond repute DonkeyOte has a reputation beyond repute DonkeyOte has a reputation beyond repute DonkeyOte has a reputation beyond repute DonkeyOte has a reputation beyond repute
Re: High Water Mark(Draw down Calculation)

In hindsight this is a little simpler than most Local Min / Max analysis given the new Max is not determined by a threshold from the last Local Min rather it is simply when the value exceeds last Max, meaning it must always be the biggest number thus far... we can therefore simplify somewhat to:

Code:
C4
=IF(AND($A4>1,$B4>MAX($B$3:$B3)),MAX($B$3:$B3)-MIN(INDEX($B$3:$B3,MATCH(9.99999999999999E+307,$C$3:$C3)):$B3),"") 
copied down
Reply With Quote
  #4  
Old 07-04-2009, 03:11 PM
sajeel sajeel is offline
Registered User
 
Join Date: 13 Mar 2009
Location: London, England
MS Office Version:Excel 2003
Posts: 32
sajeel is becoming part of the community
Re: High Water Mark(Draw down Calculation)

Thanks a lot works perfectly!
Reply With Quote


Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Forum Jump