Hi all,
Background: I was searching for a formula (for conditional formatting) that checks if a specific cell (text format) contains a specific text of an adjunctive cell as a substring. If there is no match, the cells should be highlighted red. As an example:
[TABLE="width: 500"]
<tbody>[TR]
[TD]01[/TD]
[TD]ABC_01_XXX[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]22[/TD]
[TD]ABC_22_XXX[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]01[/TD]
[TD]ABC_88_XXX[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
I want to check if column B contains the content of column A as a substring. So in the example the row 3 should be highlighted.
I've tried
This did'nt work. When trying to crack down the issue, I tried parts of the formula to check, what goes wrong.
When I try to search for the substring manually:
it returns "#VALUE"
Instead, when I try
it works and returns "1"
But shouldn't the search-formula find the substring and return the position of the given text?
Thanks,
Richie
Background: I was searching for a formula (for conditional formatting) that checks if a specific cell (text format) contains a specific text of an adjunctive cell as a substring. If there is no match, the cells should be highlighted red. As an example:
[TABLE="width: 500"]
<tbody>[TR]
[TD]01[/TD]
[TD]ABC_01_XXX[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]22[/TD]
[TD]ABC_22_XXX[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]01[/TD]
[TD]ABC_88_XXX[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
I want to check if column B contains the content of column A as a substring. So in the example the row 3 should be highlighted.
I've tried
Code:
=ISNUMBER(SEARCH($B$1;$A$1))
This did'nt work. When trying to crack down the issue, I tried parts of the formula to check, what goes wrong.
When I try to search for the substring manually:
Code:
=SEARCH($B$1;"01")
Instead, when I try
Code:
=SEARCH($B$1;"ABC_01_XXX")
But shouldn't the search-formula find the substring and return the position of the given text?
Thanks,
Richie