False positive using IF(SUMPRODUCT(--ISNUMBER(SEARCH

MHamid

Active Member
Joined
Jan 31, 2013
Messages
472
Office Version
  1. 365
Platform
  1. Windows
  2. MacOS
Hello,

I am using the below formula and it is giving me FALSE positives for some items.
Excel Formula:
=IF($AB206<>"",UPPER(VLOOKUP($L206,Check_YTD!$B:$T,19,0)),IF(SUMPRODUCT(--ISNUMBER(SEARCH(CBNA_LVID,BC206)))>0,"YES",IF($AB206="",VLOOKUP($L206,Prelim_AuditPlan!$B:$K,10,0),"NO")))

The false positive occurs in this section of the formula:
Excel Formula:
=SUMPRODUCT(--ISNUMBER(SEARCH(CBNA_LVID,BC206))

CBNA_LVID is a list of numbers (some with letters ... numbers in these cells are formatted as text if that makes a difference). Below is a sample of the long list.
LVID Child
C0021
C0036
C0034
C0026
E0129
C0035
C0050
E0372
24118
00312
02587
09220
24119

The within_text portion of the formula goes back to a cell in the main sheet that would look like this: AO Citigroup Global Markets(06024) - 06024. Some cells in column BC for the main sheet may contain multiple codes. The number portion of the within_text cell is what I need searched.

What I am trying to do is see if the code number in cell BC### of the main sheet is within the list of codes in another sheet named range CBNA_LVID. It is giving a false positive for the example code above (06024).

What am I missing in my formula to correct the FALSE positives?


Thank you,
 

Excel Facts

What do {} around a formula in the formula bar mean?
{Formula} means the formula was entered using Ctrl+Shift+Enter signifying an old-style array formula.
First you said the code

No your saying the dash is after the code. :unsure:
Sorry, didn't mean to say dash. I thought I said space. "There's always a space between the dash and the 5 digit code" ... that's what i thought i said.
This is what the string would look like separated by the semicolon:
TESTING (06553) - 06553;TESTING (06497) - 06497;TESTING (05218) - 05218;TESTING (07996) - 07996;TESTING - 06500
 
Upvote 0
Ok, in that case try
Excel Formula:
=SUMPRODUCT(--(ISNUMBER(SEARCH("- "&CBNA_LVID,BC206))))
 
Upvote 0
Solution

Forum statistics

Threads
1,214,827
Messages
6,121,803
Members
449,048
Latest member
greyangel23

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