Use SUMPRODUCT to count cells which CONTAINS certain text/numbers

booYEAH

New Member
Joined
Apr 30, 2005
Messages
49
I am attempting to sum the number of occurrences for the following:
(1) Column C contains the number 3 (all cells in this column contain both text and numbers)
(2) Column B equals "Open"
(3) Column K equals "Design"

This is my working formula, but isn't working. The error is in the first array, I've forgotten how to find/sum cells which contain certain text/numbers.

=SUMPRODUCT(
--ISNUMBER(MATCH('AIM data'!$C$2:$C$10000,{"*3*"},0)),
--('AIM data'!$B$2:$B$10000="Open"),
--('AIM data'!$K$2:$K$10000="Design"))

TIA -James
 

Excel Facts

Excel Joke
Why can't spreadsheets drive cars? They crash too often!
Use SEARCH, instead of MATCH

=SUMPRODUCT(--(ISNUMBER(SEARCH(3,'AIM data'!$C$2:$C$10000)),
--('AIM data'!$B$2:$B$10000="Open"),
--('AIM data'!$K$2:$K$10000="Design"))
 
Upvote 0
Thanks for the quick response, Brian. Excel doesn't like that setup, it won't allow me to enter that configuration? That's odd.
 
Upvote 0
Hi

There's just one parenthesis missing in the first condition:

=SUMPRODUCT(--(ISNUMBER(SEARCH(3,'AIM data'!$C$2:$C$10000))),...
 
Upvote 0

Forum statistics

Threads
1,214,653
Messages
6,120,751
Members
448,989
Latest member
mariah3

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