Looking for Excel formula

tul01

New member
Joined
Jan 23, 2020
Messages
1
Reaction score
0
Points
0
Excel Version(s)
2013
Parameter Value Answer
3.25110
2
3
4
2.15523
6
4
8
3.25821
9
4
4.544


Looking for Formula to get the Answer of above problem where same parameter repeats number of time but sum only need when the first parameter is end not till end.
 
This array formula should do it.

=IF($A3<>"",SUM(B3:INDEX($B$1:$B$20,MIN(MIN(IF($A4:$A$20<>"",ROW($A4:$A$20)-1,99^99),ROWS($A$1:$A$20))))),"")

Change the 20 in the cell references to your last row (plus at least 1).
 
For reference

Assuming valid date is in A1:B999,

C1=IF(A1="","",SUM(OFFSET(B1,,,MIN(IF(A2:$A$999<>"",ROW(A2:$A$999)-ROW(),999)),1))) Control+Shift+Enter, copy down
 
Back
Top