Forum Discussion
Raymond Sanner
Oct 04, 2018Copper Contributor
Sumifs function
Quantity Sold Product 5 Apples 4 Apples 15 Artichokes 3 Artichokes 27 22 Bananas 12 Bananas 61 10 Carrots 33 Carrots Formula Description...
Lorenzo Kim
Oct 04, 2018Bronze Contributor
try:
=SUMIF(B2:B9,"=A*",A2:A9)+SUMIF(B2:B9,"=B*",A2:A9)
HTH
Detlef_Lewin
Oct 04, 2018Silver Contributor
Or a bit shorter:
=SUM(SUMIFS(A2:A9,B2:B9,{"A*";"B*"}))
- Lorenzo KimOct 04, 2018Bronze Contributorneat!