I\'m trying to have a similar function to SUMIFS (like SUMIF but with more than a single criterion) in a Google Spreadshe
I found a faster function to fill up the "pivot table":
=ARRAYFORMULA(SUM(((Sample!$A:$A)=$A2) * ((Sample!$B:$B)=B$1) * (Sample!$C:$C) ))
It seems to run much faster without the heavier String and Query functions.