To include double quotes inside a formula, you can use additional double quotes. In the example shown, the formula in C5 is:
="The movie """&B5 &""" is good."
To include double quotes inside a formula, you can use additional double quotes as escape characters. By escaping a character, you are telling Excel to treat the " character as literal text. You'll also need to include double quotes wherever you would normally in a formula.
For example, if cell A1 contains the text: The Graduate and you want wrap that text inside double quotes (""), you can use this formula:
Because the text on either side of A1 consists of only of a double quote, you need """" . The outer quotes (1 & 4) tell Excel this is text, the 2nd quote tells Excel to escape the next character, and the 3rd quote is displayed.
If you want to add the movie to other text to create, you can concatenate the movie title inside double quotes with a formula like this:
="The 1960's movie """&A1&""" is famous"
The result: The 1960's movie "The Graduate" is famous
Working with extra double quotes can get confusing fast, so another way to do the same thing is to use the CHAR function with the number 34:
="The 1960's movie "&CHAR(34)&A1&CHAR(34)&" is famous"
In this case, CHAR(34) returns the double quote character (") which is included in the result as literal text.
CHAR is handy for adding other text that is hard to work with in a formula as well. You can use CHAR(10) to insert a line break character into a formula on Windows. On a Mac, use CHAR(13):
=CHAR(10)// win line break=CHAR(13)// mac line break
The Excel CHAR function returns a character when given a valid character code. CHAR can be used to specify characters that are hard to enter in a formula. For example, CHAR(10) returns a line break on Windows, and CHAR(13) returns a line break on...
Formulas are the key to getting things done in Excel. In this accelerated training, you'll learn how to use formulas to manipulate text, work with dates and times, lookup values with VLOOKUP and INDEX & MATCH, count and sum with criteria, dynamically rank values, and create dynamic ranges. You'll also learn how to troubleshoot, trace errors, and fix problems. Instant access. See details here.