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
[TABLE="width: 500"]
<tbody>[TR]
[TD]Sentence[/TD]
[TD]Formula[/TD]
[TD]Output[/TD]
[/TR]
[TR]
[TD]You have deleted the number in your 8PAX list.[/TD]
[TD]IF(SUMPRODUCT(--ISNUMBER(SEARCH(Include,$A2)))>0,"Yes","")[/TD]
[TD]Yes[/TD]
[/TR]
[TR]
[TD]You have deleted the number in your TEMAN list.[/TD]
[TD]IF(SUMPRODUCT(--ISNUMBER(SEARCH(Include,$A3)))>0,"Yes","")[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Sorry, you have reached the limit in your TEMAN list.[/TD]
[TD]IF(SUMPRODUCT(--ISNUMBER(SEARCH(Include,$A4)))>0,"Yes","")[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Sorry, you have reached the limit in your FRIEND's list.[/TD]
[TD]IF(SUMPRODUCT(--ISNUMBER(SEARCH(Include,$A5)))>0,"Yes","")[/TD]
[TD]Yes[/TD]
[/TR]
</tbody>[/TABLE]
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
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
[TABLE="width: 500"]
<tbody>[TR]
[TD]Sentence[/TD]
[TD]Formula[/TD]
[TD]Output[/TD]
[/TR]
[TR]
[TD]You have deleted the number in your 8PAX list.[/TD]
[TD]IF(SUMPRODUCT(--ISNUMBER(SEARCH(Include,$A2)))>0,"Yes","")[/TD]
[TD]Yes[/TD]
[/TR]
[TR]
[TD]You have deleted the number in your TEMAN list.[/TD]
[TD]IF(SUMPRODUCT(--ISNUMBER(SEARCH(Include,$A3)))>0,"Yes","")[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Sorry, you have reached the limit in your TEMAN list.[/TD]
[TD]IF(SUMPRODUCT(--ISNUMBER(SEARCH(Include,$A4)))>0,"Yes","")[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Sorry, you have reached the limit in your FRIEND's list.[/TD]
[TD]IF(SUMPRODUCT(--ISNUMBER(SEARCH(Include,$A5)))>0,"Yes","")[/TD]
[TD]Yes[/TD]
[/TR]
</tbody>[/TABLE]
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