SEARCH - False Match

gldurand

Board Regular
Joined
Jun 8, 2006
Messages
178
Office Version
  1. 2016
Platform
  1. Windows
Hi Experts,

I am using the following formula to find multiple values in a cell.

=SUMPRODUCT(--ISNUMBER(SEARCH({"#4","#5","#13","#44"},Y2)))>0

The problem is I am getting a False Match because it is finding TRUE values like #54, #55, #130 etc.

Is there a way to FIND the true value of what i am looking for

Any help would be great assistance

thanks Again for bailing me out....
 

Excel Facts

Remove leading & trailing spaces
Save as CSV to remove all leading and trailing spaces. It is faster than using TRIM().
How are they separated in the cell? Space, comma, or just the # sign? If it's a comma for example, you could try:

=SUMPRODUCT(--ISNUMBER(SEARCH({"#4,","#5,","#13,","#44,"},Y2&",")))>0
 
Upvote 0
The cells include all sorts of values... but usually separated by semi-colon

POLYPE;#90;#ADÉNOME;#4;#REFLUX GASTRO-OESOPHAGIEN;#100

Your suggestion seems to work, but when the last value is #53, it tells me TRUE, which is not.
 
Upvote 0
You're using the semi-colon in the formula? I'm not sure why the #53 would be a problem. Can you post your formula, as well as the data in the cell that produces the incorrect result?
 
Upvote 0

Forum statistics

Threads
1,214,599
Messages
6,120,448
Members
448,966
Latest member
DannyC96

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