I have a row in mid year which I want to get the tax value of the previous year-end row.
Sometimes it will be year-12-31
and sometime there will not be that date, but a few days before it.
So in B17
I want to hold B12
. There are dates for the last 10 years and only on YYYY-03-08
I want to hold the previous year end tax value.
I tried =MAX(IF(A2:A17<=DATE(YEAR(A17)-1,12,31),A2:A17))
And =MATCH(MAX(A2:A17-DATE(YEAR(A17)-1,12,31),0),A2:A17)
no luck.