the disadvantage of sumif is that if we use a different source file, then when we close the current file, the results of our formula will change to #value .
Do you know what the other alternatives besides sumif
Use SUMPRODUCT(--(A:A="Criteria"), SumRange)
ranges must be the same size
you can set whatever criteria you want so instead of A:A="Criteria" you could maybe want, if it's for customer john in column B
B:B="John" or if column c is >100, C:C>100, etc
and for your sum range you can just grab the same as the sum range for a sum if