How to Concatenate a Double Quote in Excel
In this article
To concatenate a double quote in Excel, you need to represent the quote character as four double quotes inside a formula: """". For example, ="He said """"&A1&""""" will wrap the value in cell A1 in quotation marks. This is necessary because Excel uses double quotes to delimit text strings, so a literal quote must be escaped by doubling it. The technique works in all modern versions of Excel, including Excel for Microsoft 365, Excel 2021, 2019, 2016, and Excel for Mac. The same principle applies to Google Sheets and LibreOffice Calc, though the exact formula syntax is identical. No add-ins or special settings are required.
What You'll Need
- Excel installed on your computer (any version from Excel 2010 onward) or Excel for the web.
- A worksheet with data, or just an empty cell to test the formula.
- Basic familiarity with typing formulas that start with an equals sign (=).
Step-by-Step
- Select the cell where you want the result. Click any empty cell, for example C2.
- Start the formula with an equals sign. Type
=to begin entering a formula. - Type the first part of the text you want, including the escaped quote. To include a double quote character, type four double quotes in a row:
"""". For example, to start with a quote, type="""". This tells Excel to treat the first and last quotes as string delimiters and the middle two as a literal quote character. - Add the ampersand (&) to concatenate. After the escaped quote, type
&to join it to the next piece. - Reference the cell or type the text you want to include. For example, type
A2to use the value from cell A2. If you want to add more text, put it in double quotes, like" says hello". - Add another escaped quote if you need a closing quotation mark. Type
&""""to append a literal double quote at the end. - Close the formula with a parenthesis if needed and press Enter. For example, the complete formula
=""""&A2&""""will display the value of A2 surrounded by double quotes. Press Enter to see the result. - Copy the formula down or across as needed. Drag the fill handle to apply the same logic to other rows.
If you are using Excel for the web or Excel for Mac, the same steps apply. The formula bar behaves identically. Note that menu labels and ribbon options can differ slightly between versions and platforms, but the formula syntax is consistent.
Common Mistakes
- Using only two double quotes. Typing
=""produces an empty string, not a quote character. You need four double quotes to get one literal quote. - Forgetting the ampersand. Without
&, Excel will not join the pieces; it will either error or treat the whole thing as a single string. - Mismatched parentheses. If you use functions like CONCATENATE or TEXTJOIN, ensure every opening parenthesis has a closing one.
- Using smart quotes. If you copy a formula from a word processor or website, curly quotes (“ ”) may be pasted instead of straight quotes (" "). Excel will not recognize curly quotes as string delimiters. Retype them manually.
- Confusing the display with the underlying value. The cell may show a quote, but the formula bar shows the four quotes. That is normal.
Tips
- Use the
CHAR(34)function as an alternative to four double quotes.CHAR(34)returns a double quote character. For example,="He said "&CHAR(34)&A2&CHAR(34)is easier to read and less error-prone. - If you are building a long string with many quotes, consider using the
TEXTJOINfunction (available in Excel 2019 and later, and Microsoft 365) withCHAR(34)as a delimiter, but remember TEXTJOIN inserts the delimiter between items, not around them. - To add a double quote inside a text string that is already in quotes, you still need to double it. For example,
="She said ""Hello"" to me"displays as: She said "Hello" to me. - When concatenating many cells, the
&operator is limited to a certain number of arguments (Excel allows up to 255 text arguments in a formula, but practical limits are lower). For large ranges, useTEXTJOINorCONCAT. - If you need to output a formula as text (for documentation), prefix it with an apostrophe or format the cell as Text before typing.
Troubleshooting
- Formula shows #NAME? error: Check for misspelled function names or missing quotes around text strings. Also ensure you are not using a function not available in your Excel version (e.g., TEXTJOIN in Excel 2016 or earlier).
- Formula shows #VALUE! error: One of the concatenated items may be an error value. Check the referenced cells for errors.
- Result shows extra quotes: You may have typed too many double quotes. Remember: four double quotes produce one literal quote. If you type six, you get two literal quotes plus delimiters, which may not be what you want.
- Quotes not appearing: Ensure you are using straight quotes, not curly quotes. Also check that the cell is not formatted as Text in a way that displays the formula as text.
- Formula not calculating: Press F9 to recalculate, or check that automatic calculation is enabled (Formulas > Calculation Options > Automatic).
- If that did not work: Try simplifying the formula to just
=""""in a blank cell. If that displays a single double quote, the escaping works. Then build up the formula piece by piece to isolate the problem.
Frequently Asked Questions
Why do I need four double quotes to get one double quote?
Excel uses double quotes to mark the beginning and end of a text string. To include a literal double quote inside the string, you must double it. So the sequence """" is parsed as: opening quote, escaped quote (two quotes), closing quote. That yields one literal quote character.
Can I use single quotes instead?
No, single quotes (') are treated as ordinary text characters in Excel formulas. Only double quotes have special meaning as string delimiters. If you need a double quote, you must use the four-quote method or CHAR(34).
Does this work in Excel for Mac?
Yes, the formula syntax is identical on Excel for Mac. The only differences may be in menu locations, but typing formulas works the same.
What about Google Sheets?
Google Sheets uses the same escaping rule: four double quotes for one literal double quote. The CHAR(34) function also works.
How do I concatenate a double quote with a cell reference?
Use the ampersand: =""""&A1&"""" will put quotes around the value in A1. You can also use CONCATENATE("""", A1, """") but note that CONCATENATE requires each argument to be separated by commas, and the escaped quotes are still four double quotes per literal quote.
Can I use a named range or table reference?
Yes, the concatenation operator works with any valid reference, including structured table references like Table1[Column1]. Just replace A1 with the appropriate reference.