Guys I am trying to write a dynamic sum formula where the array range starts from a cut-off date ( this date changes every month ).
I have the periods in the top first row 201801 in A2
, 201802 in B2
etc.
and starting from A3
I have the sales' figures.
e.g. the cut-off date is 201806, so I need my sum formula to be =sum($F3:L3)
what I was trying to do is =sum(ADDRESS(3,MATCH($B$1,$A$2:$L$2,0),3):L3)
ADDRESS(3,MATCH($B$1,$A$2:$L$2,0),3)
returns $F3
which does not work in the sum formula!
=SUM(INDIRECT(ADDRESS(3,MATCH($B$1,$A$2:$L$2,0),3) &":L3"))
. - SJR