How can I escape quotes in Excel?

To escape quotes in Excel, users can use the double quote symbol (“”) or the escape character () before the quotes to indicate that it is part of the text and not the beginning or end of a formula. This allows for special characters, such as quotes, to be included in Excel formulas without causing any errors or changes to the desired output. By using these methods, users can effectively escape quotes in Excel and ensure the accuracy of their data and formulas.

Escape Quotes in Excel (With Example)


There are two ways to escape quotes in formulas in Excel:

Method 1: Wrap Quotes Around Quotes

=CONCATENATE("""",A2,"""")

Method 2: Use CHAR(34)

=CONCATENATE(CHAR(34),A2,CHAR(34))

Both of these formulas will wrap the string in cell A2 in double quotes.

Note: The function CHAR(34) corresponds to double quotes in the current Unicode table.

The following examples show how to use each method in practice with the following list of strings in Excel:

Example 1: Wrap Quotes Around Quotes

We can type the following formula into cell B2 to wrap the string in cell A2 in double quotes:

=CONCATENATE("""",A2,"""")

We can then drag and fill this formula down to each remaining cell in column B:

Excel escape quotes

Notice that each cell in column B contains the corresponding cell in column A with double quotes wrapped around it.

Example 2: Use CHAR(34)

We can type the following formula into cell B2 to wrap the string in cell A2 in double quotes:

=CONCATENATE(CHAR(34),A2,CHAR(34))

We can then drag and fill this formula down to each remaining cell in column B:

Excel escape quotes using CHAR(34)

Notice that each cell in column B contains the corresponding cell in column A with double quotes wrapped around it.

Note that the function CHAR(34) corresponds to double quotes in the current Unicode table.

Thus, this formula concatenates one double quote at the beginning of the string in column A, then concatenates another double quote at the end of the string.

Note: You can find the complete documentation for the CHAR function in Excel .

Additional Resources

The following tutorials explain how to perform other common operations in Excel:

x