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

Lookup and Reference Examples

  • Two-column Lookup in Excel
  • Approximate match with multiple criteria in Excel
  • How to create dynamic named range with OFFSET in Excel
  • Complete List of Excel Lookup and Reference Functions, References and Examples
  • Offset in Excel

Data Analysis Examples

  • How to create Gauge Chart in Excel
  • How To Load Analysis ToolPak in Excel
  • How to calculate correlation coefficient Correlation in Excel
  • How To Compare Two Lists in Excel
  • How To Insert and Customize Sparklines in Excel

Data Validation Examples

  • Excel Data validation number multiple 100
  • Excel Data validation exists in list
  • Excel Data validation unique values only
  • How To Create Drop-down List in Excel
  • Excel Data validation whole percentage 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 get last line in cell 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 find nth occurrence of character 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
  • Find function vs Search function in Excel
  • UNICHAR function: Description, Usage, Syntax, Examples and Explanation
  • Put names into proper case — Manipulating NAMES in Excel
  • How to count specific characters in a cell in Excel
  • BAHTTEXT function: Description, Usage, Syntax, Examples and Explanation
  • Series of dates by day
  • Convert text date dd/mm/yy to mm/dd/yy in Excel
  • Add workdays to date custom weekends in Excel
  • How to get Holiday Date from Year in Excel
  • Roll back weekday to Friday base on a particular date in Excel
  • DURATION function: Description, Usage, Syntax, Examples and Explanation
  • PDURATION function: Description, Usage, Syntax, Examples and Explanation
  • FVSCHEDULE function: Description, Usage, Syntax, Examples and Explanation
  • DOLLARFR function: Description, Usage, Syntax, Examples and Explanation
  • TBILLPRICE function: Description, Usage, Syntax, Examples and Explanation
Acronyms, Abbreviations, Initialism & What They Stand For
© 2021 xlsoffice. All Rights Reserved | Teal Smiles