example: SUMIFS


ABCD
1PX1

formula: SUMIFS(C1:C4, A1:A4, "Q", B1:B4, "X")


2PY2

3QX3

4QY4


ABCD
1121

formula: SUMIFS(C1:C4, A1:A4, ">1", B1:B4, "==2")


2242

sum(a1,b2)

3323

4444