Complex SUMIF question

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Or I think it is a sumif, but I can't seem to make the conditional work so
I'm not sure.

Here is what I need to do.

Add up all the numbers in column C if column B (text) includes the string
"FCOM" or "F/COM"

Sample data

Column B Column C
RSAS F/COM 25
RSAS MR 35
BES FCOM 5
UB/MR 10
F/COM, UB, MR 20

In this example, I want to add up rows 1,3,&5 and return 50.

Can anybody help me out?

Thanks.
 
One possible way

=SUM(SUMIF(B2:B6,{"*F/COM*";"*FCOM*"},C2:C6))
 
try
=sumproduct(isnumber(search("FCOM",B1:B5))+isnumber(search("F/COM",B1:B5)),C1:C5)
 

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

Similar Threads


Back
Top