Find the Maximum number in a series of Data

mayanksaini11

New Member
Joined
Aug 7, 2014
Messages
9
I have an Excel file in which I record my equity Portfolio value on a daily basis at the end of every day. I have a column named 'Drawdown' where I calculate the portfolio value from the peak portfolio value. When the value is below zero that means my portfolio is running below the peak. On the contrary, where the Drawdown value is zero, it means that the portfolio value is at its peak.
Now with this, I have a series of values in the Drawdown column. What I am trying to do is to find a minimum value in a series of values whenever I am in the drawdown phase. The output that I am trying to display in column E is mentioned below: Please suggest to me the formula to display the below output in column E in excel 2010.
A1B1C1D1E1
Trade DateDayPortfolio ValueDrawDownMax DrawDown
15/03/2023Wednesday16,848-
16/03/2023Thursday2,075-14,773
20/03/2023Monday-369-17,217Minimum
21/03/2023Tuesday1,313-15,535
23/03/2023Thursday5,900-10,948
24/03/2023Friday8,431-8,417
27/03/2023Monday4,929-11,919
28/03/2023Tuesday1,008-15,840
29/03/2023Wednesday6,295-10,553
31/03/2023Friday3,821-13,027
03/04/2023Monday18,594-
05/04/2023Wednesday20,683-
06/04/2023Thursday28,711-
11/04/2023Tuesday33,247-
12/04/2023Wednesday38,362-
18/04/2023Tuesday36,708-1,653
19/04/2023Wednesday35,694-2,667Minimum
20/04/2023Thursday43,699-
24/04/2023Monday38,567-5,132Minimum
25/04/2023Tuesday40,795-2,904
26/04/2023Wednesday43,977-
 
on 24/4 The portfolio value made a Max DD point or Lowest Point or Minimum point i.e. 38567 of Portfolio value in the 3rd DD phase. on 25/04 the Portfolio value recovered to 40795 which is up from the lowest point. Therefore 24/04 is the Max DD point and not 25/04. I hope I could make my point clear.
Okay, I'm reviewing the earlier statement now, which may answer my questions.
 
Upvote 0

Excel Facts

Waterfall charts in Excel?
Office 365 customers have access to Waterfall charts since late 2016. They were added to Excel 2019.
in this statement:
"In the Excel file column D is derived from formulas =C3 - MAX(C$2:C3). The comparison is to happen within the series of DD, 1st phase of DD is within Cells D4 to D12, 2nd phase of DD is within Cells D18 to D19 and then 3rd phase of DD is within Cells D21 to D22."​
I know DD is is shorthand for drawdown, but is that also idential to the values in column D?
I sort understand your three different comparison ranges, but I don't understand where the C3-Max(C$2:C3) is compared to anything.
Are wanting to compare "C3 - MAX(C$2:C3)" to the three ranges? So you will see only minimum in one cell of each of those 3 ranges?
 
Upvote 0
in this statement:
"In the Excel file column D is derived from formulas =C3 - MAX(C$2:C3). The comparison is to happen within the series of DD, 1st phase of DD is within Cells D4 to D12, 2nd phase of DD is within Cells D18 to D19 and then 3rd phase of DD is within Cells D21 to D22."​
I know DD is is shorthand for drawdown, but is that also idential to the values in column D?
I sort understand your three different comparison ranges, but I don't understand where the C3-Max(C$2:C3) is compared to anything.
Are wanting to compare "C3 - MAX(C$2:C3)" to the three ranges? So you will see only minimum in one cell of each of those 3 ranges?
Column C is the cumulative value of the Portfolio. Column C and Column D are identical in the sense that based on the values of column C, the DD values are calculated in column D. If the current Portfolio value is at a peak compared to previous portfolio values there is no DD. On the other hand, if the current Portfolio value is lower than the previous portfolio's peak value then the DD figure will come from the formula =C5 - MAX(C$2:C5).
The purpose is to determine the Max DD point in each DD phase. I suppose it can be derived from column D easier than from column C.
 
Upvote 0
again, still gibberish to me. I need to think mathematically and not invest-like. I need to know why/how values in Column D are calculated based upon what is in C.
You use "Current Portfolio Value".. is that the sum of $C$2:C"whatever day is on that line"? You also use cumulative value for C.. so that is in conflict with the last sentence since if I'm summing I am adding cumulative values over and over.

So, Current Portfolio Value which I'm thinking for EVERYDAY is column C. is at a peak?.... Peak in what range... the 3 phases you mentioned... so you want the maximum of those three sections, is that right? But how does the first formula with only the first 2 days fit into the picture? Or do you have 4 phases?

In the earlier example you used C3-Max(C2:C3) now you are using C5-Max(C2:C5)... is this always from C2 or will it be the first "C" in each phase?

I'm sure I have other questions but those are a start.
 
Upvote 0
the C3-Max($C$2:C3) doesn't match your column D.
mr excel questions 29.xlsm
ABCDEFG
1Trade DateDayPortfolio ValueDrawDownMax DrawDown=C3-Max($C2:C3) copy down
22023-03-15Wednesday16,848-
32023-03-16Thursday2,075-14,773-14,773
42023-03-20Monday-369-17,217Minimum-2,444
52023-03-21Tuesday1,313-15,5350
62023-03-23Thursday5,900-10,9480
72023-03-24Friday8,431-8,4170
82023-03-27Monday4,929-11,919-3,502
92023-03-28Tuesday1,008-15,840-3,921
102023-03-29Wednesday6,295-10,5530
112023-03-31Friday3,821-13,027-2,474
122023-04-03Monday18,594-0
132023-04-05Wednesday20,683-0
142023-04-06Thursday28,711-0
152023-04-11Tuesday33,247-0
162023-04-12Wednesday38,362-0
172023-04-18Tuesday36,708-1,653-1,654
182023-04-19Wednesday35,694-2,667Minimum-1,014
192023-04-20Thursday43,699-0
202023-04-24Monday38,567-5,132Minimum-5,132
212023-04-25Tuesday40,795-2,9040
222023-04-26Wednesday43,977-0
Mayanksaini11
Cell Formulas
RangeFormula
G3:G22G3=C3-MAX($C2:C3)
 
Upvote 0
the C3-Max($C$2:C3) doesn't match your column D.
mr excel questions 29.xlsm
ABCDEFG
1Trade DateDayPortfolio ValueDrawDownMax DrawDown=C3-Max($C2:C3) copy down
22023-03-15Wednesday16,848-
32023-03-16Thursday2,075-14,773-14,773
42023-03-20Monday-369-17,217Minimum-2,444
52023-03-21Tuesday1,313-15,5350
62023-03-23Thursday5,900-10,9480
72023-03-24Friday8,431-8,4170
82023-03-27Monday4,929-11,919-3,502
92023-03-28Tuesday1,008-15,840-3,921
102023-03-29Wednesday6,295-10,5530
112023-03-31Friday3,821-13,027-2,474
122023-04-03Monday18,594-0
132023-04-05Wednesday20,683-0
142023-04-06Thursday28,711-0
152023-04-11Tuesday33,247-0
162023-04-12Wednesday38,362-0
172023-04-18Tuesday36,708-1,653-1,654
182023-04-19Wednesday35,694-2,667Minimum-1,014
192023-04-20Thursday43,699-0
202023-04-24Monday38,567-5,132Minimum-5,132
212023-04-25Tuesday40,795-2,9040
222023-04-26Wednesday43,977-0
Mayanksaini11
Cell Formulas
RangeFormula
G3:G22G3=C3-MAX($C2:C3)
I found my error here. So, I have data in column D that matches your column D. Now I just need a better understanding of how you want to populate column E with the word Minimum. YOu have row gaps in your assessment of column D.
 
Upvote 0
@awooha - I think what the OP is wanting is if you look at cell D2 and D11 they are 0 (or "-"). He is looking for the min of the array from D2 to D11, which is D4.
Then the next array between zeros is D16 to D19 and they want the min in this range and the next range for the min would be D19 to D22.
 
Upvote 0
Okay, I have it 50% match. You need to tell me what is wrong.

mr excel questions 29.xlsm
ABCDEF
1Trade DateDayPortfolio ValueDrawDownMax DrawDownYour Expectation
22023-03-15Wednesday16,848Minimum
32023-03-16Thursday2,075-14,773 
42023-03-20Monday-369-17,217MinimumMinimum
52023-03-21Tuesday1,313-15,535 
62023-03-23Thursday5,900-10,948 
72023-03-24Friday8,431-8,417 
82023-03-27Monday4,929-11,919 
92023-03-28Tuesday1,008-15,840 
102023-03-29Wednesday6,295-10,553 
112023-03-31Friday3,821-13,027 
122023-04-03Monday18,5940 
132023-04-05Wednesday20,6830 
142023-04-06Thursday28,7110 
152023-04-11Tuesday33,2470 
162023-04-12Wednesday38,3620 
172023-04-18Tuesday36,708-1,654 
182023-04-19Wednesday35,694-2,668MinimumMinimum
192023-04-20Thursday43,6990 
202023-04-24Monday38,567-5,132 Minimum
212023-04-25Tuesday40,795-2,904Minimum
222023-04-26Wednesday43,9770 
Mayanksaini11
Cell Formulas
RangeFormula
E2:E22E2=IF(CHOOSE(IFS(ROW(E2)<=3,4,ROW(E2)<=12,1,ROW(E2)<=17,4,ROW(E2)<=19,2,ROW(E2)=20,4,ROW(E2)<=22,3,ROW(E2)>22,4),MIN($D$4:$D$12),MIN($D$18:$D$19),MIN($D$21:$D$22),"")=D2,"Minimum","")
D3:D22D3=C3-MAX($C$2:C3)
 
Upvote 0
@awooha - I think what the OP is wanting is if you look at cell D2 and D11 they are 0 (or "-"). He is looking for the min of the array from D2 to D11, which is D4.
Then the next array between zeros is D16 to D19 and they want the min in this range and the next range for the min would be D19 to D22.
I sort of figured that out. But if you see my last post, there is still some disconnect.
If you can figure it out... before a reply from OP, then that would be great.
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,181
Members
453,022
Latest member
Mohamed Magdi Tawfiq Emam

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top