Consider the following two formulas:
=IF(SEARCH("*", A1), "true", "false")
=IF(SEARCH(CHAR(42), A1), "true", "false")
I am using this to try and detect if a cell contains a *
character, but this returns "true" for all cells. I can only assume that Excel sees *
as a wildcard maybe.
How do you detect the existence of a *
in Excel?
According to this reference of microsoft you should be able to use
~
So change
=IF(SEARCH("*", A1), "true", "false")
to=IF(SEARCH("~*", A1), "true", "false")
and it should work.