
Originally Posted by
JeteMc
This is a proposed solution for the BR values. HD, HE and BA should follow the same pattern.
The dates are entered in column A using:
A2: =YEAR(MIN(Sheet1!A2:A6075))
A3:A30 =IF(A2< YEAR(MAX(Sheet1!A$2:A$6075)),SUM(A2,1),"")
The BR Max value of the year is populated using: =IF(A2="","",AGGREGATE(14,6,Sheet1!B$2:B$6075/(YEAR(Sheet1!A$2:A$6075)=A2),1))
The BR Min value of the year is populated using: =IF(A2="","",AGGREGATE(15,6,Sheet1!B$2:B$6075/(YEAR(Sheet1!A$2:A$6075)=A2),1))
The BR MinMax change % is populated using: =IF(A2="","",('Min-Max'!B2/'Min-Max'!C2)-1)
The BR start value of the year is populated using: =IF(A2="","",INDEX(Sheet1!B$2:B$6075,MATCH(AGGREGATE(15,6,Sheet1!A$2:A$6075/(YEAR(Sheet1!A$2:A$6075)=A2),1),Sheet1!A$2:A$6075,0)))
The BR end value of the year is populated using: =IF(A2="","",INDEX(Sheet1!B$2:B$6075,MATCH(AGGREGATE(14,6,Sheet1!A$2:A$6075/(YEAR(Sheet1!A$2:A$6075)=A2)/(Sheet1!B$2:B$6075<>"null"),1),Sheet1!A$2:A$6075,0)))
The BR StartEnd change % is populated using: =IF(A2="","",('Start-End'!C2/'Start-End'!B2)-1)
Let us know if you have any questions.
Bookmarks