View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Nick Hodge Nick Hodge is offline
external usenet poster
 
Posts: 1,173
Default using a single quote ' in SEARCH function

ExTexan

Just wrapping the single in doubles or using a tilde ~ both work for me in
XL2007 RTM. The only time this won't work is if you have a single apostrophe
as the first character, as Excel uses this to signify text entry (You'll
also notice it doesn't show|) adding a second will return 1 from the SEARCH
function

--
HTH
Nick Hodge
Microsoft MVP - Excel
Southampton, England
DTHIS
www.nickhodge.co.uk


"ExTexan" wrote in message
...
I'm trying to see if the text in a cell contains the single quote (or
apostrophe). How can I put that in my SEARCH function. Surrounding the
single quotes with double quotes, like this SEARCH("'", A1) doesn't work.
I
know there must be a forcing character to embed special characters in
string
literals, but the documentation with 2007 Beta 2 is somewhat lacking, or I
just can't find it.
--
ExTexan