Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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?

like image 996
Allain Lalonde Avatar asked Oct 19 '08 16:10

Allain Lalonde


People also ask

How do I put double quotes in a string in Excel?

You can also insert a double quote in an Excel formula using the CHAR function. The CHAR function takes the ASCII value and returns the corresponding character value. The ASCII value for a double quote is 34.

How do you declare a double quote in a string?

To place quotation marks in a string in your code In Visual Basic, insert two quotation marks in a row as an embedded quotation mark. In Visual C# and Visual C++, insert the escape sequence \" as an embedded quotation mark. For example, to create the preceding string, use the following code.

How can you include a double quote character into a literal string?

To have a double quote as a character in a string literal, do something like, char ident[] = "ab"cd"; The backslash is used in an escape sequence, to avoid conflict with delimiters. To have a double quote as a character, there is no need for the backslash: '”' is alright.


1 Answers

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" 
like image 197
YonahW Avatar answered Sep 23 '22 06:09

YonahW