<strong>Consider the following two formulas:</strong>
=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 <strong>
*</strong> character, but this returns "true" for all cells. I can only assume that Excel sees <strong>
*</strong> as a wildcard maybe.
How do you detect the existence of a <strong>
*</strong> in Excel?
According to this reference of <a href="http://support.microsoft.com/kb/214138" rel="nofollow">microsoft</a> you should be able to use
Microsoft Excel uses the tilde (~) as a marker to indicate that the next character is a literal. When you use the Find and Replace dialog box to find or replace a character such as a tilde (~), an asterisk (*), or a question mark (?), you must add a tilde (~) before the character in the Find what box.</blockquote>
=IF(SEARCH("*", A1), "true", "false") to
=IF(SEARCH("~*", A1), "true", "false") and it should work.