# SUMPRODUCT with fuzzy wildcard search but also with NOT statement

#### useless at my job really

##### New Member
Hello all

I have a working formula that will provide me a count on the basis of explicitly stated search criteria, a fuzzy 'wildcard' based search. It is the following:

=SUMPRODUCT((\$A\$4:\$A\$2851=\$M8)*(--(ISNUMBER(SEARCH(N\$2,\$C\$4:\$I\$2851))*(--(ISNUMBER(SEARCH(\$L8,\$C\$4:\$I\$2851)))))))

However, as part of this count I would like to exclude the count from any cells that contain for instance the word 'boost'. To achieve this, in cell J9 I have written *boost* and changed the formula to the following:

=SUMPRODUCT((\$A\$4:\$A\$2851=\$M9)*(--(ISNUMBER(SEARCH(N\$2,\$C\$4:\$I\$2851))*(--(ISNUMBER(SEARCH(\$L9,\$C\$4:\$I\$2851)*(--(NOT(ISNUMBER(SEARCH(\$J9,\$C\$4:\$I\$2851)))))))))))`

This however has not excluded any matches that also include the term 'boost' in the cell. It simply produces exactly the same count as before.

Could any help possibly be given with this please?

Much appreciated

### Excel Facts

Excel Wisdom
Using a mouse in Excel is the work equivalent of wearing a lanyard when you first get to college

#### steve the fish

##### Well-known Member
You have misplaced brackets plus you dont need the * in the cell. Try this:

=SUMPRODUCT((\$A\$4:\$A\$2851=\$M9)*(ISNUMBER(SEARCH(N\$2,\$C\$4:\$I\$2851)))*(ISNUMBER(SEARCH(\$L9,\$C\$4:\$I\$2851)))*(NOT(ISNUMBER(SEARCH(\$J9,\$C\$4:\$I\$2851)))))

#### useless at my job really

##### New Member
Thank you very much Steve ! Appears to work perfectly. I guess I don't need the -- prefix to the isnumber then. Also good to know I don't need the * when searching the cell - I guess this is only perhaps needed with SUMIFS / Index Match etc.

Hope I can be a credit to the world with something like what you do one day !

Replies
2
Views
124
Replies
15
Views
575
Replies
5
Views
180
Replies
0
Views
134
Replies
3
Views
59

1,141,415
Messages
5,706,306
Members
421,441
Latest member
VapesRub

### 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?

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