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)
 

Some videos you may like

Excel Facts

VLOOKUP to Left?
Use =VLOOKUP(A2,CHOOSE({1,2},$Z$1:$Z$99,$Y$1:$Y$99),2,False) to lookup Y values to left of Z values.

JoeMo

MrExcel MVP
Joined
May 26, 2009
Messages
16,692
If there are spaces on either side of the 2 (or 7) change your search to:

SEARCH(" 2 ",...)
 

Forum statistics

Threads
1,089,422
Messages
5,408,139
Members
403,186
Latest member
123hpeinstall

This Week's Hot Topics

  • help please
    SORRY NOT ANY GOOD AT EXCEL SO HELP WOULD BE MUCH APPRECIATED this formula is in a sheet called ignore...
  • two formulas needed
    Hello, I'll try my best to explain this: First formula needed in Sheet1 cell A2: If Sheet1 cell B2 = Sheet2 cell B2 then return a 1. If not then...
  • Dynamic Counts
    Good afternoon, we are tidying up some data & the data seems to be growing quicker than we are tidying it up! What we confirm (by reviewing it...
  • Help Excel formula eliminate duplicate values and keep only 2 identical rows.
    as picture below column A has a duplicate value. but the values are not the same as the rule. sometimes 4 rows, sometimes 10 rows or 7 or 9...
  • Macro Compile Error Sub or Function not defined
    Hello, I am trying to run macros from a validation list, all macros have been created and run perfectly on there own but I'm getting a compile...
  • Last row combined with Current Region VBA
    I'm generally happy finding the last row of data through something like Lastrow = Cells(Rows.Count, "D").End(xlUp) but I don't always receive data...
Top