sumif function

J

John Smith

I have several SUMIF formulas in a worksheet but can only get a
calculation for a formula with only criteria like SUMIF A1:A9, "s",
A2:A10. How do I make it work if the criteria is "s" or "SP" or "sb". etc.?
 
D

daddylonglegs

If your criteria don't all begin with "S" you can use a formula like

=SUM(SUMIF(A1:A6,{"sp","ab","xy"},B1:B6)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top