Table of Contents
Understanding the Need for Single Quotes in Microsoft Excel
While Microsoft Excel is primarily known for handling numerical calculations and complex data analysis, there are frequent scenarios in data management where users need to manipulate text strings. One highly specific, yet common, requirement is enclosing existing text or data points within single quotes (apostrophes). This necessity often arises when preparing data for export to external systems, such as SQL databases, programming scripts, or specialized software interfaces, which require text values to be properly delimited. Failure to correctly enclose text values can lead to syntax errors, data import failures, or misinterpretation of the data by the receiving application.
The challenge in Excel stems from the fact that formulas are inherently designed to process values. To treat a quote mark as literal text rather than part of the formula structure, special handling is required. Excel provides two robust and reliable methods for achieving this concatenation task. Both methods are highly efficient and can be easily applied across large datasets using the fill handle functionality. Understanding both approaches allows the user to choose the one that aligns best with their existing knowledge base or specific formula complexity requirements.
We will explore these two primary techniques in detail. The first method involves using the standard concatenation operator (&) combined with double quotes to define the single quote character. The second method utilizes the dedicated CHAR function, referencing the specific ASCII code for the single quote. Both achieve the identical result of surrounding the content of a cell—for instance, cell A2—with apostrophes.
Method 1: Leveraging the Concatenation Operator (&) with Double Quotes
The most straightforward and often most intuitive method for adding single quotes involves string concatenation. Concatenation is the process of linking two or more text values together into a single, combined string. In Excel, the ampersand symbol (&) serves as the primary concatenation operator. To apply this, we construct a formula that links three distinct components: the opening single quote, the original cell content, and the closing single quote.
However, when dealing with quotes in Excel formulas, a crucial rule must be followed: any literal text you wish to include in the output string must itself be enclosed in double quotes (” “). Since we want the output to include a single quote (‘), we must define the single quote character by nesting it within double quotes, resulting in “‘”. This sequence tells Excel: “Treat the character inside the double quotes—which is the single quote—as literal text.”
To surround the text in cell A2, the structure requires defining the leading quote, linking it to the cell content, and then linking the trailing quote. This process ensures that the resulting string is correctly formatted for external use. The resulting formula is concise and highly readable, making it a favorite for many Excel users who frequently manipulate text data.
The formula structure is as follows:
="'"&A2&"'"This formula effectively performs the following actions:
- “‘”: Defines the literal starting single quote.
- &A2: Appends the content of cell A2 immediately after the starting quote.
- &”‘”: Appends the literal closing single quote immediately after the content of A2.
This method is preferred for its directness and minimal reliance on specialized functions, leveraging basic string manipulation principles.
Method 2: Utilizing the CHAR Function (ASCII Code 39)
An alternative, highly robust method for inserting special characters into an Excel string is by using the CHAR function. The CHAR function takes a numerical input corresponding to a character code (typically the ASCII standard) and returns the character associated with that code. This is particularly useful when dealing with characters that might otherwise conflict with Excel’s formula syntax, or for non-printable control characters.
The single quote character, or apostrophe, is assigned the ASCII code 39. By utilizing CHAR(39), we instruct Excel to generate the single quote character directly, bypassing the need to enclose it in double quotes as literal text. This provides a cleaner, albeit less immediately intuitive, way to generate the required delimiters. This method is often favored by users who work extensively with character codes or who need maximum compatibility across different regional settings where quote interpretation might vary slightly.
Similar to Method 1, we use the concatenation operator (&) to link the generated characters with the cell content. The CHAR(39) function replaces the need for the “‘” structure entirely. This approach separates the generation of the quote character from the literal text interpretation, potentially simplifying debugging in extremely complex formulas involving multiple layers of quoting.
The formula structure using the CHAR function is:
=CHAR(39)&A2&CHAR(39)It is essential to remember that CHAR(39) is the specific Excel character code that corresponds precisely to the single quote mark. This function returns the single quote as a text value, allowing it to be seamlessly concatenated with the content of cell A2 using the ampersand operator.
Practical Demonstration: Applying Both Techniques
To illustrate how these methods operate in a real-world scenario, let us apply them to a simple dataset. Suppose we have a list of basketball team names in column A, and our objective is to prepare this list for integration into a system that requires each team name to be enclosed in single quotes.
Consider the following initial data setup in Excel:

Example 1: Implementing the Double Quotes with Single Quotes Method
We begin by applying Method 1. We will enter the formula into cell B2, targeting the team name in A2. This will generate the properly quoted text string for the first entry.
The formula entered into cell B2 is:
="'"&A2&"'"Once the formula is in B2, we can efficiently apply it to the remainder of the dataset. By clicking and dragging the formula down using the fill handle—the small square at the bottom right corner of the selected cell—we quickly populate column B with the quoted versions of every team name from column A.
The result of applying this formula down column B is clearly visible, demonstrating the successful enclosure of all text strings:

As shown, column B now contains the text from each corresponding cell in column A, flawlessly surrounded by single quotes, ready for export or further processing.
Example 2: Implementing the CHAR(39) Method
Next, we demonstrate the parallel application of Method 2 using the CHAR function. This method is equally effective in producing the exact same quoted string output.
We enter the following formula into cell B2 (assuming we clear the previous results or use a new column):
=CHAR(39)&A2&CHAR(39)Similar to the previous example, we then click and drag this formula down through the remaining cells in column B to process the entire list of team names.

It is important to notice that this method yields an identical result to Method 1. Column B successfully displays the text strings from column A delimited by single quotes. The consistency between the two methods confirms their reliability for general use.
Comparing the Methods and Best Practices
While both the double-quote nesting method and the CHAR(39) function method achieve the same functional outcome, users often develop a preference based on readability and context.
The primary benefit of Method 1 (Double Quotes) is its transparency. Seeing “‘” explicitly defined in the formula immediately tells the user that a single quote is being inserted. This makes the formula easier to read and debug for users who are less familiar with specific character codes. It relies only on the fundamental principle of string concatenation and literal text definition in Excel.
Conversely, Method 2 (CHAR(39)) offers superior handling of non-standard or highly complex characters, even though it requires knowledge of the specific ASCII value. In scenarios where you need to insert multiple special characters (such as line breaks or tabs), relying on CHAR codes can make the formula cleaner than trying to embed those characters directly within double quotes. For the simple single quote, however, the choice is purely based on user preference and comfort level.
When working with these formulas across large datasets, always remember to convert your formula results to static text values before exporting or manipulating the source data. If you delete column A, the formulas in column B will break unless you copy column B and paste the values back into the same column using the ‘Paste Values’ option. This ensures the integrity of your newly quoted strings. Ultimately, feel free to use whichever of these powerful methods you find most efficient and readable for your specific data preparation tasks.
Additional Resources
To continue mastering text manipulation and formula construction within Excel, explore the following related tutorials and concepts. These resources explain how to perform other common text preparation tasks essential for data cleaning and integration:
- Understanding how to use the TEXTJOIN function for advanced concatenation.
- Techniques for removing unwanted white spaces using TRIM and CLEAN.
- Strategies for handling numerical data that Excel incorrectly formats as text.
- In-depth exploration of the CHAR function for inserting other control characters (e.g., line feeds).
By mastering these foundational text formulas, you can significantly enhance your ability to clean, format, and prepare data for any destination system.
Cite this article
Mohammed looti (2025). Learn How to Add Single Quotes in Excel: A Comprehensive Guide. PSYCHOLOGICAL STATISTICS. Retrieved from https://statistics.arabpsychology.com/add-single-quotes-in-excel-with-examples/
Mohammed looti. "Learn How to Add Single Quotes in Excel: A Comprehensive Guide." PSYCHOLOGICAL STATISTICS, 10 Nov. 2025, https://statistics.arabpsychology.com/add-single-quotes-in-excel-with-examples/.
Mohammed looti. "Learn How to Add Single Quotes in Excel: A Comprehensive Guide." PSYCHOLOGICAL STATISTICS, 2025. https://statistics.arabpsychology.com/add-single-quotes-in-excel-with-examples/.
Mohammed looti (2025) 'Learn How to Add Single Quotes in Excel: A Comprehensive Guide', PSYCHOLOGICAL STATISTICS. Available at: https://statistics.arabpsychology.com/add-single-quotes-in-excel-with-examples/.
[1] Mohammed looti, "Learn How to Add Single Quotes in Excel: A Comprehensive Guide," PSYCHOLOGICAL STATISTICS, vol. X, no. Y, ص Z-Z, November, 2025.
Mohammed looti. Learn How to Add Single Quotes in Excel: A Comprehensive Guide. PSYCHOLOGICAL STATISTICS. 2025;vol(issue):pages.