Isnumber(find( but not "a",

Long Nose

Board Regular
Joined
Nov 19, 2007
Messages
67
Office Version
  1. 365
Platform
  1. Windows
Hi all,

Excel 2010

I am trying to use a wild card in a Sumproduct formula. It is working to find the "a" in a column and returning the expected value, but what I really want to do is exclude the "a" cells. Any ideas?

formula
=SUMPRODUCT(--(SUB580AAL_SubsSalesBySource.xlsx!$A$1:$A$3000="CM"),--(SUB580AAL_SubsSalesBySource.xlsx!$A$1:$A$3000<>""),--ISNUMBER(FIND("A",SUB580AAL_SubsSalesBySource.xlsx!$C$1:$C$3000)),--(SUB580AAL_SubsSalesBySource.xlsx!$B$1:$B$3000=TYPE_S),--(SUB580AAL_SubsSalesBySource.xlsx!$E$1:$E$3000=Curr_Mo),--(SUB580AAL_SubsSalesBySource.xlsx!$F$1:$F$3000=Curr_YR),SUB580AAL_SubsSalesBySource.xlsx!$H$1:$H$3000)

This is the part I need to find a fix for. I need to exclude the "a".
--ISNUMBER(FIND("A",SUB580AAL_SubsSalesBySource.xlsx!$C$1:$C$3000)),
 
Last edited:
Just at a glance...

Replace ISNUMBER with ISERROR.

Thank you, T. Valko! This helped me. The following allowed me to return values conating "ABC" but not "XYZ":
Code:
=IF(AND(ISNUMBER(SEARCH("ABC",A6)),ISERROR(SEARCH("XYZ",A6))),A6,"")
 
Last edited:
Upvote 0
Thank you, T. Valko! This helped me. The following allowed me to return values conating "ABC" but not "XYZ":
Code:
=IF(AND(ISNUMBER(SEARCH("ABC",A6)),ISERROR(SEARCH("XYZ",A6))),A6,"")

Also:

=IF(ISNUMBER(LOOKUP(9.99999999999999E+307,SEARCH({"ABC","XYZ"},A6))),A6,"")
 
Upvote 0

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