example: SUMIF

categoryvalueformulaSUMIF
cat12sumif(A1:A5, "cat1", B1:B5) = 

cat134sumif(B1:B5, ">5") = 

cat16

cat28

cat110