Array sums with partial match

Drehinho

New Member
Joined
Mar 11, 2011
Messages
2
Hi everyone,

I'm trying to do an array sum but I have problems because I need to use partial matchs for finding the value I want to sum.

The following example is the simplified version of the sheet I use:

In column A there are a series of codes like the following

  • AC2 PO3.3 AI2.6 ME2.3
  • PO3.1 PO3.5 ME2.1 ME3.4 ME3.3
  • PO4.3 PO6.1 ME2.3 AI3.4
  • AC1 PO2.3 AI2.2 ME2.6
you can see that each cell contains multiple codes

In column B there's a series of Yes/No/Out of Scope

What I want to do is a report sheet were for each of the values (AC1, AC2,..., ME4.7) i count the number of Yes/No/Out oc Scope.
I tried with the following:
={SUM((Sheet1!$A$2:$A$200="*AC1*")*(Sheet1!$B$2:$B$200="Yes"))}
or, considering I have all the codes I may find in column A of the sheet:
={SUM((Sheet1!$A$2:$A$200="*" &A2&"*")*(Sheet1!$B$2:$B$200="Yes"))}

However the formula doesn't seem to accept the *

Can someone help me with that?

Thank you.
 
Last edited:

Excel Facts

What is the last column in Excel?
Excel columns run from A to Z, AA to AZ, AAA to XFD. The last column is XFD.
Hi there,

Welcome to the board.

Try:

=SUMPRODUCT(--(ISNUMBER(FIND("AC1",A1:A200)))*(B1:B200="yes"))
 
Upvote 0

Forum statistics

Threads
1,224,583
Messages
6,179,672
Members
452,937
Latest member
Bhg1984

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top