Hi All,
I have a formula as below. It's a dynamic range sumif
Code
=SUMIF(OFFSET($B$2,0,0,COUNTA($B$2:$B$100000)-4,1),"Actual",OFFSET(C2,0,0,COUNTA(C2:C100000)-4,1))
Column B has four tags, "Actual, Forecast, Variance, Variance %",
Then in each column after B, I have number and dollar values.
I want to add them with a dynamic range as above. Interestingly the formula works for the first column (C), but when I drag across the formula to the next columns, the number doesn't update and I get the same value as Column C total.
If I go into Column D formula:
Code
=SUMIF(OFFSET($B$2,0,0,COUNTA($B$2:$B$100000)-4,1),"Actual",OFFSET(D2,0,0,COUNTA(D2:D100000)-4,1))
Make it an array then, un array it, the value updates and I get the value I want.
Why doesn't it automatically update and is there a better way to do this?