SUM multiple criteria

M

modene1

Scenario:
Data: A B
1 x 100
2 y 150
3 z 200
4 a 50
5
6 ("x","a")

I would like a formula that does something like:

sum the values in column B if the values in column A equals ANY of the
values in A6 i.e. A6 is a list or array of criteria. Partial criteria match
would be great too e.g. A3 is replaced with "apple" and A6 contains
(....,"ppl",...)
 
J

Jacob Skaria

With data arrange as below; try this formula

=SUMPRODUCT(SUMIF(A1:A5,"*" & C1:C2 & "*",B1:B5))

Col A Col B Col C
apple 1 app
apple 2 ora
orange 3
mango 4
mango 5


If this post helps click Yes
 

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