Quote symbol in excel

April 30, 2012 / Updated: October 24, 2021 / Lena Shore
Filed under: Tutorials

This tip is going to be mostly helpful to people who working with databases. But, if you work with Excel and find yourself needing to deal with repetitive formatting, you might also appreciate the technique.

When working with CSV files you may need to add quotes to either side of a cell’s contents in order to upload them properly to your database. You can easily find yourself working with an Excel file from a workmate that needs to be formatted.

You got this:

But really need this:

This can be a big damn deal if you have hundreds of fields. No one wants to add this by hand. Fortunately, the solution is a snap! It all has to do with applying specific formatting to your cells.

  • Highlight the cells you want to add the quotes.
  • Go to Format –> Cells –> Custom
  • Copy/Paste the following into the Type field: ”@”
  • Click “okay”
  • Be happy you didn’t do it all by hand.

NOTE: It’s always a good idea to open your file in a text editor to double-check your CSV export. Sometimes you need to do a little find/replace action to get your file picture perfect.

Lena is a full-time freelancer and nerd that specializes in web development, graphic design, and illustration. She enjoys building things, learning new things, pursuing creative endeavors, and giving free advice.

Excel for Microsoft 365 Excel for Microsoft 365 for Mac Excel for the web Excel 2021 Excel 2021 for Mac Excel 2019 Excel 2019 for Mac Excel 2016 Excel 2016 for Mac Excel 2013 More…Less

We often hear that you want to make data easier to understand by including text in your formulas, such as «2,347 units sold.» To include text in your functions and formulas, surround the text with double quotes («»). The quotes tell Excel it’s dealing with text, and by text, we mean any character, including numbers, spaces, and punctuation. Here’s an example:

=A2&» sold «&B2&» units.»

For this example, pretend the cells in column A contain names, and the cells in column B contain sales numbers. The result would be something like: Buchanan sold 234 units.

The formula uses ampersands (&) to combine the values in columns A and B with the text. Also, notice how the quotes don’t surround cell B2. They enclose the text that comes before and after the cell.

Here’s another example of a common task, adding the date to worksheet. It uses the TEXT and TODAY functions to create a phrase such as «Today is Friday, January 20.»

=»Today is » & TEXT(TODAY(),»dddd, mmmm dd.»)

Let’s see how this one works from the inside out. The TODAY function calculates today’s date, but it displays a number, such as 40679. The TEXT function then converts the number to a readable date by first changing the number to text, and then using «dddd, mmmm dd» to control how the date appears—«Friday, January 20.»

Make sure you surround «ddd, mmmm dd» date format with double quotes, and notice how the format uses commas and spaces. Normally, formulas use commas to separate the arguments—the pieces of data—they need to run. But when you treat commas as text, you can use them whenever you need to.

Finally, the formula uses the & to combine the formatted date with the words «Today is «. And yes, put a space after the «is.»

Need more help?

Want more options?

Explore subscription benefits, browse training courses, learn how to secure your device, and more.

Communities help you ask and answer questions, give feedback, and hear from experts with rich knowledge.

In this Excel lesson you will teach yourself how to deal with single quote issues.

Table of content:

How to quote a quote in Excel formula?

Using char 39

Using HTML code for a single quote

Using strings concatenation

Using ASCII code

Using formula bar

Using TEXT function

Using REPT function

In Excel there is a problem that ‘yourtext’ (text inside single quotes) displays without leading single quote. There is an easy way to deal with this issue.

  1. Right click your cell.
  2. Choose Format Cells to format a data type for the cell.
  3. Click Custom Category.
  4. Write down ‘@ (single quote and at) as a type.

mytext single quotation problem

That’s it. Your single quotes are displaying correctly since now.

How to quote a quote in Excel formula?

Excel formulas are used to do some simple calculations, to drive results using other cell values and sometimes we use some alphabetical strings in excel formulas which involve quotes : «.

E.g When the formula contain a string like :

a. My height is 70 «

b. My height is 70 inches.

Now statement b can easily be inserted in an excel formula like = «My height is 70 inches.»

quote a quote

But for statement a we cannot write like: =» My height is 70 » «

quote a quote transpose

It will return formula errors:

quote error

So whenever we have quotes in a formula we have to understand that we have to escape the double quotes with double apostrophes to let Excel read it properly.

So the correct value: = » My height is 70 «» «

quote a quote proper formula

Using char 39

Another way to do this is using CHAR(39) for single quotes. The CHAR function allows you to enter a specific character code and display the corresponding character in a cell.

Like we used quotes before apostrophes in previous example, here we are using char(39) instead of writing the quotes:

=» My height is 70 » & CHAR(39)

And the result will be same: My height is 70 ‘

quote a quote formula proper formula

The code for a double quote is 34, so you can use the following formula to display a double quote:

=CHAR(34) & «Your text here» & CHAR(34)

Using HTML code for a single quote

There is another method you can use to display a single quote in an Excel cell, which is to use the HTML code for a single quote, which is '. To display a single quote, you can use the following formula:

Your text here ' single quote«

For example, if you want to display the text «Don’t stop now» in a cell, you would enter the following formula:

=«Don't stop now»

The result in the cell will be:

Don’t stop now

Using strings concatenation

Another method to display a single quote in an Excel cell is to use a formula that concatenates text strings. You can use the ampersand & operator to concatenate text strings in a formula. To display a single quote in a formula, you can use two double quotes together «» to represent a single quote.

For example, if you want to display the text «Don’t stop now» in a cell, you would enter the following formula:

=«Don» & «»«» & «t stop now»

The result in the cell will be:

Don‘t stop now

You can also use the concatenation formula to display other special characters, such as double quotes or new lines, in an Excel cell.

Using ASCII code

Another method to display a single quote in an Excel cell is to use the ASCII code for a single quote, which is 39. You can use the CODE function to return the ASCII code for a character, and the CHAR function to return the character for a given ASCII code. To display a single quote, you can use the following formula:

=CHAR(CODE(«‘»)) & «Your text here» & CHAR(CODE(«‘»))

For example, if you want to display the text «Don’t stop now» in a cell, you would enter the following formula:

=CHAR(CODE(«‘»)) & «Don’t stop now» & CHAR(CODE(«‘»))

The result in the cell will be:

Don‘t stop now

Using formula bar

Another method to display a single quote in an Excel cell is to use the Excel formula bar to enter the text. To do this, you can simply enter the text in the formula bar, rather than in the cell itself. To enter a single quote, you can press the single quote key on your keyboard.

For example, if you want to display the text «Don’t stop now» in a cell, you would do the following:

  1. Select the cell in which you want to display the text.
  2. Click on the formula bar above the worksheet to activate it.
  3. Type the text Don’t stop now in the formula bar.
  4. Press the Enter key to confirm the entry.

Using TEXT function

Another method to display a single quote in an Excel cell is to use the formula text function. The text function allows you to format a number as text. To display a single quote in a formula, you can use the text function to format a blank text string as text.

For example, if you want to display the text «Don’t stop now» in a cell, you would enter the following formula:

=TEXT(«»,«Don'»»t stop now»)

You can also use the text function to format numbers as text, and to apply custom formatting to numbers. The text function is useful for preventing unwanted changes to your data, such as the removal of leading zeros or the conversion of numbers to dates.

Using REPT function

Another method to display a single quote in an Excel cell is to use the REPT function. The REPT function allows you to repeat a character or a string a specified number of times. To display a single quote, you can use the REPT function to repeat a single quote character.

For example, if you want to display the text «Don’t stop now» in a cell, you would enter the following formula:

=«Don» & REPT(«‘»,1) & «t stop now»

In conclusion, there are several methods for displaying a single quote in an Excel cell, including:

  1. Using the CHAR function with the code for a single quote (39).
  2. Using the formula bar to enter the text.
  3. Using the TEXT function to format a number or text as text.
  4. Using the REPT function to repeat a single quote character.
  5. Using the HTML code for a single quote (').
  6. Using the concatenation operator & to combine two or more strings.

Each of these methods has its own advantages and limitations, and the best method will depend on your specific needs and requirements. Regardless of the method you choose, the key is to understand how to properly enter the formula or text in the cell to ensure that the single quote is displayed correctly.

Excel uses double quote character to identify text, you need to a different approach. This article shows you How to use double quotes in Excel formulas in two ways: with and without a function.

Syntax

=»»»»

=CHAR(34)

How

There are 2 ways to use double quotes in Excel formulas:

  1. Without a function
  2. With a function

Without a function

This is the generic and most commonly used approach to add double quote characters in a formula. Type double quote twice, like double-double quotes («»). Although using double quotes twice is our preferred approach, when these double-double quotes come together with double quotes that specify a text, things can get mess.

=»The «&B3&» is a «»»&C3&»»» type Pokémon»

It may be really hard to count double quotes in smaller screens. Here is an alternative way to distinguish string separators from the double quotes used for text.

With a function

The function is called CHAR which returns the character of a specific number. It can get a number from 1 to 255 as it argument and returns the character from your computer’s character set that matches the number. The character sets are different for Windows and Mac systems. While Windows machines uses ANSI code system, Mac machines uses Mac OS Roman.

Windows Character Set

MAC OS Character Set

Thankfully, the double quote character shares same numeric code for both systems, 34. So you can use CHAR function with code 34 to insert a double quote.

=»The «&B4&» is a «&CHAR(34)&C4&CHAR(34)&» type Pokémon»

Microsoft Excel uses double quotation marks to signify text within formulas. When it sees these marks, it uses the text and discards the quotes. Typing quotation marks directly into a cell is not an issue because Excel automatically recognizes that you are entering text and therefore keeps the quotation marks. However, when typing formulas, you need to use a special character formula to output quotation marks.

  1. Open Microsoft Excel.

  2. Type quotation marks in an Excel cell without adding an equal sign. For example, if you entered the following text, it would appear exactly as you entered it:

    «text»

    However, if you entered an equal sign before it, you would only get the text inside the quotation marks.

  3. Use «CHAR(34)» within formulas where you need to output quotation marks. For example, to add quotes around the text in cell A1, you would type «=CHAR(34)&A1&CHAR(34)» in an empty cell.

Like this post? Please share to your friends:
  • Quote quotes in excel
  • Radio station the word
  • Quotations with the word idea in
  • Quotation marks in word
  • Quiz questions with one word answers