Skip to content
xlsoffice. All Rights Reserved
  • Home
  • Excel For Beginners
  • Excel Intermediate
  • Advanced Excel For Experts

Lookup and Reference Examples

  • How to use Excel FORMULATEXT function
  • Approximate match with multiple criteria in Excel
  • Count rows with at least n matching values
  • How to retrieve first match between two ranges in Excel
  • How to use Excel OFFSET function

Data Analysis Examples

  • Add Outline to Data in Excel
  • What-If Analysis: Scenarios and Goal Seek in Excel
  • How to Create Area Chart in Excel
  • Chart Axes in Excel
  • Filter Data Based on Date in Excel

Data Validation Examples

  • Excel Data validation date in specific year
  • Excel Data validation must contain specific text
  • Excel Data validation whole percentage only
  • Excel Data validation exists in list
  • Excel Data validation specific characters only

How to use double quotes inside a formula in Excel

by

If you need to include double quotes inside a formula, you can use additional double quotes as “escape characters”. By escaping a character, you are asking Excel to to treat the ” character as literal text. As always, 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:

Worked Example:   How to create simple in-cell histogram in Excel

=””””&A1&””””

Formula

=""""&A1&""""

Explanation

 

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 ” tells Excel to escape the next character, double quote 3 is included as literal text.

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

Worked Example:   Remove line breaks in a cell in Excel

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.

Worked Example:   How to get last line in cell in Excel

CHAR is handy for adding other text that is hard to work with in a formula as well. For example, you can use CHAR(13) to insert a line break character into a formula on Windows. On a Mac, use CHAR(10).

Post navigation

Previous Post:

How to count total words in a range in Excel

Next Post:

How to extract last two words from text string in Excel

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Learn Basic Excel

Ribbon
Workbook
Worksheets
Format Cells
Find & Select
Sort & Filter
Templates
Print
Share
Protect
Keyboard Shortcuts

Categories

  • Charts
  • Data Analysis
  • Data Validation
  • Excel Functions
    • Cube Functions
    • Database Functions
    • Date and Time Functions
    • Engineering Functions
    • Financial Functions
    • Information Functions
    • Logical Functions
    • Lookup and Reference Functions
    • Math and Trig Functions
    • Statistical Functions
    • Text Functions
    • Web Functions
  • Excel VBA
  • Excel Video Tutorials
  • Formatting
  • Grouping
  • Others
  • How to extract name from email address in Excel
  • Remove line breaks in a cell in Excel
  • Split dimensions into two parts in Excel Worksheet
  • How to count total words in a cell in Excel
  • How to extract last two words from text string in Excel
  • DAYS360 function: Description, Usage, Syntax, Examples and Explanation
  • DAY function: Description, Usage, Syntax, Examples and Explanation
  • How to show last updated date stamp in Excel
  • How to calculate workdays per month in Excel
  • How to calculate next day of week in Excel
  • YIELD function: Description, Usage, Syntax, Examples and Explanation
  • COUPDAYBS function: Description, Usage, Syntax, Examples and Explanation
  • PRICEDISC function: Description, Usage, Syntax, Examples and Explanation
  • ACCRINTM function: Description, Usage, Syntax, Examples and Explanation
  • YIELDMAT function: Description, Usage, Syntax, Examples and Explanation
© 2022 xlsoffice . All Right Reserved. | Teal Smiles