Sumproduct Isnumber Search is returning same result for different values

labruzzi

New Member
Joined
Nov 6, 2019
Messages
2
Hello - I utilizing a formula that is intended to count the number of visible entries in a table that meets multiple criteria utilizing Sumproduct, Isnumber, and Search. However; I have just realized that in some instances the formula is including results it should not.

For example, in the below forumla, to be counted, the row needs to contain "X" in column (E), contain "F" in column (K), and contain "2" in column (H) - the formula should also only be counting visible results. However, it looks like if column (H) has the number "12" it is counting it. Similarly if I adjust the formula to search for "7" in column (H), it will count those that have "17".

How can I adjust the formula to count only exact matches for "2" or "7" in column (H)?


=SUMPRODUCT(SUBTOTAL(3,OFFSET($F$11:$F$23733,ROW($F$11:$F$23733)-MIN(ROW($F$11:$F$23733)),,1)),ISNUMBER(SEARCH("X",E11:E23733))+0,ISNUMBER(SEARCH("F",$K$11:$K$23733))+0,ISNUMBER(SEARCH("2",$H$11:$H$23733))+0)
 

Excel Facts

How to fill five years of quarters?
Type 1Q-2023 in a cell. Grab the fill handle and drag down or right. After 4Q-2023, Excel will jump to 1Q-2024. Dash can be any character.
If there are spaces on either side of the 2 (or 7) change your search to:

SEARCH(" 2 ",...)
 
Upvote 0

Forum statistics

Threads
1,224,820
Messages
6,181,155
Members
453,021
Latest member
Justyna P

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