I'm trying to do a form autocomplete formula like "Ben Collin's Tutorial" that adds more formulas down a column as values are added in an adjacent column. This works with if functions, sum, basic arithmetic etc. but with sumifs, the first value is repeated. There have been attempted solutions on stackoverflow before, but it relies on the keys to be as long as the display or it uses queries so that the columns have to be adjacent or well behaved. Really, the vocabulary and labels are sufficient or consistent enough to describe the problem with an example so I made one on google sheets.
The formula in e2 is:
=arrayformula(if($A2:$A<>"",sumifs(data!C:C,data!A:A,$A2:$A,data!B:B,"k"),""))
It would be nice if the results were the results of column f. I don't know what is going on in the background so that this would ever be a desired results, but I also tried this, and it failed.
=arrayformula(if(A2:A<>"",sumifs(data!C:C,data!A:A,A2:A,data!B:B,"k"),""))
or
=arrayformula(if(A$2:A<>"",sumifs(data!C:C,data!A:A,A$2:A,data!B:B,"k"),""))
Suffice it to say, the $ don't work here the way they work with conditional formatting rules, which is a pity.