Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
in B2
=IF(ROW()=2,IF(SIGN(A1)<SIGN(A2),A2,A1+A2),IF(SIG N(A1)<SIGN(A2),A2,A2+B1)) Then select b2 and drag down the column in C1 =min(B:B) -- Regards, Tom Ogilvy "Eric" wrote in message ... Thank everyone for suggestion Yes, I am interested on the consecutive loss sequences of any length, and return the highest loss for the result. Thank you Eric " wrote: "Eric" wrote: Under A Colume, there are a list of numbers Profit 100 101 -50 -60 50 -50 -20 -10 80 Under Colume B, I would like to determine the maximum consecutive loss from Colume A, in this case, it should return -50-60 = -110 Clarification needed .... For the 3 rows starting in the 4th row from the end, do you want -50-20-10 = -80? And you would want that to be the "maximum consecutive loss" if -60 were -20 in the 4th row (so that -50-20 = -70, not -110), right? In other words, you are not just interested in pairwise "consecutive" losses, but consecutive loss sequences of any length. Is that right? |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
How do i execute a VBA function by clicking on an excel cell? | Excel Discussion (Misc queries) | |||
Excel option to store trendline's coefficients in cells for use | Charts and Charting in Excel | |||
The description of the ATAN2 function in Microsoft Excel is not 1. | Excel Worksheet Functions | |||
Access Module coded converted to Excel Function | Excel Discussion (Misc queries) | |||
I cant use englisch function names in a swedich version of excel | Excel Discussion (Misc queries) |