String "TEMAN" is not recognized in namedrange for SEARCH command?

dellzy

Board Regular
Joined
Apr 24, 2013
Messages
146
Hi Excel Experts,

I came across very weird situation here. Hopefully, somebody can give me solution. I'm trying to create a formula that will search the string(s) in a namedrange and return "Yes" if one of them matches in the sentence of the referred cell and return "" if no match. However, I really don't understand, when it comes to the string "Teman" in the sentence, it will return "" although "Teman" has already been added in the namedrange. Is there something wrong with my formula?

Example:-

namedrange: IncludeMe
Teman
You
sorry

SentenceFormulaOutput
You have deleted the number in your 8PAX list.IF(SUMPRODUCT(--ISNUMBER(SEARCH(Include,$A2)))>0,"Yes","")Yes
You have deleted the number in your TEMAN list.IF(SUMPRODUCT(--ISNUMBER(SEARCH(Include,$A3)))>0,"Yes","")
Sorry, you have reached the limit in your TEMAN list.IF(SUMPRODUCT(--ISNUMBER(SEARCH(Include,$A4)))>0,"Yes","")
Sorry, you have reached the limit in your FRIEND's list.IF(SUMPRODUCT(--ISNUMBER(SEARCH(Include,$A5)))>0,"Yes","")Yes

<tbody>
</tbody>

FYI, when I tested with static string "Teman" in the formula, then it will return the value "Yes" as expected.
eg. IF(ISNUMBER(SEARCH("Teman",$A5))=TRUE,"Yes","").
However, I want to keep it neat in a namedrange because the strings for search is expected to grow up to 100 and the formula needs to run across more than 10k rows of variety of sentences. Also, am not sure if it's only gonna be only "Teman" which gives this type of unexplained result, so, setting a static string each time for each of this similar issue can be very messy.

Appreciate your expertise.

Thank you in advance.
DZ
 
Thanks for the lists. Just to make sure:

=IF(AND(SUMPRODUCT(--ISNUMBER(SEARCH(Include,$A2)))>0,SUMPRODUCT(--ISNUMBER(FIND(Exclude,$A2)))=0),"MT","")

will invariably return a blank when A2 contains TEMAN (from Include) and NGIN (from Exclude). Is this result what you are after?

Hi,
Your interpretation for the formula is opposite from the real result. The formula supposedly return "MT" when A2 contains any word from Include and non from Exclude.
 
Upvote 0

Excel Facts

Create a chart in one keystroke
Select the data and press Alt+F1 to insert a default chart. You can change the default chart to any chart type
Hi,
Your interpretation for the formula is opposite from the real result. The formula supposedly return "MT" when A2 contains any word from Include and non from Exclude.

My question/observation was: A2 contains both TEMAN and NGIN.

A2 is: UBAHMIGYESS:$msg="Caj RM5 akan ditolak dr akaun anda utk beralih ke pelan NGIN Xpax Baru. Bonus & 8pax/15pax/Teman20 tidak terdpt dlm pelan ini.Htr MIG YES ke 28882 utk teruskan" if $language eq '2';

The result will be a blank. Is this the intended outcome?
 
Upvote 0

Forum statistics

Threads
1,215,447
Messages
6,124,907
Members
449,195
Latest member
Stevenciu

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