How to create strings containing double quotes in Excel formulas?
How can I construct the following string in an Excel formula:
Maurice "The Rocket" Richard
If I'm using single quotes, it's trivial = "Maurice 'The Rocket' Richard"
but what about double quotes?
Have you tried escaping with an additional double-quote? By escaping a character, you are telling Excel to treat the " character as literal text.
= "Maurice ""The Rocket"" Richard"
Alternatively, you can use the CHAR
function:
= "Maurice " & CHAR(34) & "Rocket" & CHAR(34) & " Richard"
Three double quotes: " " " x " " "
= "x"
Excel will auto change to one double quote. e.g.:
=CONCATENATE("""x"""," hi")
= "x" hi