Skip to content
Free Excel Tutorials
  • Home
  • Excel For Beginners
  • Excel Intermediate
  • Advanced Excel For Experts

Data Analysis

  • Subtotal function in Excel
  • How To Perform and Interpret Regression Analysis in Excel
  • Conflicting Multiple Conditional Formatting Rules in Excel
  • Remove Duplicates Example in Excel
  • Use Data Form to input, edit and delete records in Excel

References

  • Basic INDEX MATCH approximate in Excel
  • How to get relative column numbers in a range in Excel
  • How to retrieve first match between two ranges in Excel
  • How to get last column number in range in Excel
  • Extract all partial matches in Excel

Data Validations

  • Excel Data validation only dates between
  • Excel Data validation date in specific year
  • Excel Data validation no punctuation
  • Excel Data validation must contain specific text
  • 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:   Add line break based on OS 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:   How to add a line break with a formula while joining text strings 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:   Remove line breaks in a 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:

Put names into proper case — Manipulating NAMES in Excel

Next Post:

Create One-dimensional and Two-dimensional Array

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

Logical Functions

  • IFERROR function: Description, Usage, Syntax, Examples and Explanation
  • How to use Excel AND Function
  • AND function: Description, Usage, Syntax, Examples and Explanation
  • Nested IF function example in Excel
  • How to use Excel NOT Function

Date Time

  • DAY function: Description, Usage, Syntax, Examples and Explanation
  • Get work hours between dates custom schedule in Excel
  • Get work hours between dates in Excel
  • Basic Overtime Calculation Formula in Excel
  • How to calculate project start date based on end date in Excel

Grouping

  • Map text to numbers in Excel
  • Calculate conditional mode with criteria in Excel
  • Group numbers at uneven intervals in Excel
  • If cell contains one of many things in Excel
  • How to randomly assign data to groups in Excel

General

  • Count cells that contain errors in Excel
  • List sheet names with formula in Excel
  • AutoRecover file that was never saved in Excel
  • How to Create Calendar in Excel
  • Share Excel data with Word documents
© 2023 xlsoffice . All Right Reserved. | Teal Smiles | Abbreviations And Their Meaning