6 Ways to Remove Single Quotes in Excel

People may add single quotation marks or apostrophes (‘) to Excel cells for various reasons. One common reason is to treat the value in the cell as text instead of a number or a date. But after adding the single quotation marks (‘), it can be harder to work with the data. Thankfully, there are ways to remove single quotes from Excel cells to ensure smooth data handling. In this article, I will discuss 6 easy ways to remove single quotes in Excel and make sure your data is ready for analysis.

In the following dataset, I have 2 columns (With Single Quotation Mark and Without Single Quotation Mark). It is important to note that, the single quotation mark (‘) is present in all cells of the column With Single Quotation Mark, but they are apparently invisible. But, when I select any of these cells and check at the Formula Bar, it is visible there.

Now, I will show how you can remove single quotes (‘) from the cells in Excel.

Remove Single Quotes in Excel by Using Text to Columns Feature

The fastest way to remove the single quotes (‘) is by using the Text to Columns feature. You can do it within 5 effortless steps.

To remove the single quotes in Excel using the Text to Column feature, follow these steps:

  1. Select your target cell range, cell A2:A10.
  2. Go to the Data tab.
  3. From the Data Tools group, click on the Text to Columns option.Opening the Text to Column feature to remove single quotes in Excel
  4.  Select Delimited as the file type on the Convert Text to Columns Wizard.
  5. Lastly, hit the Finish button.Using Text to Column feature to remove single quotes in Excel

Now, the leading zero of the number trail and the single quotes (‘) have gone.

Updated result using the text to columns feature in Excel

Remove Single Quotes in Excel Using the SUBSTITUTE Function

Another fastest way to remove the single quotes (‘) is by using the SUBSTITUTE function. What I am going to do is, as an alternative to the apostrophes, use a blank space.

Syntax

=SUBSTITUTE(text, old_text, new_text, [instance_num])

Formula

=SUBSTITUTE(A2,” ’ ”, “ “)

Formula Explanation

  • A2 is the text. It is the cell reference that you want to change or modify.
  • “ ‘ ” is the old_text. It is the cell reference that you want to change or modify.
  • “ “ is the new_text. It is the mention of the new characters that you want to replace the old_text with.
  • [instance_num] is an optional argument. It defines the occurrence of the old_text that you want to replace. If you omit this argument, all instances of old_text will be replaced.

To remove the single quotation mark in Excel with SUBSTITUTE function, follow these steps:

  1. At first, place an empty cell (B2) beside the original column.
  2. Type this formula in cell B2: =SUBSTITUTE(A2,” ’ ”, “ “)
  3. Press ENTER.Applying the SUBSTITUTE Function to Remove Single Quotes in Excel
  4. Now, copy down the formula using the Fill Handle icon in the cell range B2:B10.Using the SUBSTITUTE Function with Fill Handle icon to Remove Single Quotes in Excel
  5. Next, select the cell range B2:B10.
  6. Press CTRL+C to copy the cell range B2:B10.Result using the SUBSTITUTION function after removing single quote
  7. Then, right-click on the top cell B2.
  8. Lastly, from the context menu, select the Paste (Values) option.Paste (Values) the SUBSTITUTE Function to Remove Single Quotes in Excel

If you want to display the leading zeroes of your inputs, you can use this method. This way, the leading zeroes do not vanish from the results.

Removed single quote in Excel with the SUBSTITUTE function



Remove Single Quotes in Excel by Multiplying the Cells with 1

Another amazing technique to remove the single quotes (‘) is multiplying your target cell range with 1 and after that, returning them as values in the cell addresses.

To remove the single quotation mark in Excel by multiplying the cells with 1, follow this step-by-step guide:

  1. Type 1 in a separate cell (A12) beside the dataset.
  2. Copy cell A12.Dataset with 1 in a different cell in Excel
  3.  Select your target cell range A2:A10.
  4. Right-click on the top cell A2.
  5. Select the Paste Special option from context menu.Paste Special option to remove single quote in Excel
  6. Now, select Values as the Paste option and select Multiply as the Operation option
  7. Lastly, Click OK.Multiply Cells with 1 to Remove Single Quotes in Excel

You will see the apostrophes are no longer present in the dataset.

Update result after removing the single quote in Excel

Use Text Format Feature to Remove Single Quotes in Excel

You can also format the cells in the Text Format in Excel to remove single quotes.

Follow these steps to use the Text Format to Remove Single Quotes in Excel:

  1. Take a spare cell (C2) beside your dataset.
  2. Go to the Home tab.
  3. Now, from the Number group, click on the Number Format drop-down menu.
  4. From the list, select Text.Use Text Format to Remove Single Quotes in Excel
  5. Now copy cell C2 by pressing the CTRL+C key.
  6. After that, select the cell range A2:A10.
  7. Then, on the top cell A2, right-click to open the context menu.
  8. Go to Paste Special from the context menu. Using Paste Special feature in Excel The Paste Special window will appear instantly.
  9. Now select Formats as the Paste option.
  10. Lastly, click OK to apply it.Using Formats option from Paste Special window in Excel The cells are now in text format and do not have single quotes anymore.Updated result after converting the dataset into text format in Excel

However, if you are worried about the green little triangle signs, these are alert signs.

Green Error Signs

Green error signs appear to alert you to certain actions. But they don’t interfere with any functionality on the spreadsheet. When numbers are saved as text in a cell, Excel often detects this and displays an alert next to the cell. When you see a green error sign in a cell, you can click on the cell to see a drop-down menu that provides information about the error and suggests potential solutions.

You can remove the error signs by following these two steps:

  1. Click on the yellow alert button located in the top-left corner of the top cell.
  2. Then select Ignore Error from the drop-down menu.

Selecting Ignore Error from the drop-down menu in Excel

By turning the cells into text format, the numbers have shifted on the left side of the cells. If you wish you can move them to the right side again.

Displaying numbers are in text form



Use VBA Codes to Remove Single Quotes in Excel

If you want to use VBA codes to remove the single quotes (‘) from your dataset in Excel, you can use this specific code. Just Copy the code from here and insert the code inside a new Module in your Visual Basic Editor. Finally, Run it. Done!

Sub RemoveSingleQuotes()

    Dim cell As Range
    For Each cell In Selection.Cells
        cell.Value = Replace(cell.Value, "'", "")
    Next cell

End Sub

To remove single quote from the cells of Excel using VBA code, you can follow these steps:

  1. Press ALT + F11 to open the Visual Basic Editor.
  2. Now right-click on the sheet name.
  3. Now, choose Insert > Module.Opening Module in the Visual Basic Editor in ExcelThis will create a new Module.
  4. Copy the VBA code mentioned above in this article.
  5. Now paste it into the Module.
  6. Go back to your sheet.
  7. Select the cells containing the single quotes you want to remove.
  8. Then, click the Macros button on the Developer tab.Accessed Macros tool in the Developer tab in ExcelThe Macro window will pop up immediately.
  9. Now, select the RemoveSingleQuotes macro.
  10. Finally, click Run.Using Macro in Excel

The VBA has perfectly done the job of removing single quotes from the cells in Excel.

Removed single quoted with VBA code in Excel

Use Flash Fill Feature to Remove Single Quotes in Excel

The technique I am going to show you is using the Flash Fill feature to remove the apostrophes (‘) from the Excel sheets. Flash Fill helps to automatically fill values based on patterns it recognizes in the data. For that reason, you have to manually input the first cell.

Follow these steps to use the Flash Fill feature to remove single quotation mark in Excel:

  1. On cell B2, type the raw content of cell A2 without the single quotation mark (‘).Raw content in the column with single quotation mark in Excel
  2. Go to the Data tab.
  3. Lastly, from the Data Tools group, hit the Flash Fill icon.

Using Flash Fill Feature to Remove Single Quotes in Excel

Note: Sometimes you may not see the single quotes visible before raw data of cell inputs, but they are actually present. You can assure about the presence of the single quotation mark just by looking at the formula bar. In cell B2, I wrote the same input as cell A2, just without a single quote.

Updated result without single quotation mark in Excel

The Flash Fill correctly recognized the output pattern and returned all the cell values without the single quotes in the column Without Single Quotation Mark.

Conclusion

In conclusion, there are several ways to remove single quotes in Excel. Whether you prefer to use built-in functions or VBA code or Flash Fill feature, Excel provides a variety of options for manipulating your data. By following the methods outlined in this article, you can easily remove single quotes from your cells in Excel. I hope you find this article helpful. To read more about removing specific characters in Excel, click here. And also, feel free to comment in the comment section if you find anything confusing. Thanks for reading!

Frequently Asked Questions

How do I remove quotes from Excel?

To remove quotes from text in Excel, use the SUBSTITUTE function. Here’s a simple formula: =SUBSTITUTE(cell_reference, “”””, “”)
Replace “cell_reference” with the reference to the cell containing the text with quotes. The SUBSTITUTE function removes double quotes by replacing them with an empty string. This is a quick and efficient way to eliminate quotation marks from your Excel data.

How do you remove single quotes from a string?

To remove single quotes from a string in Excel, use the SUBSTITUTE function. Here’s a formula you can use: =SUBSTITUTE(cell_reference, “‘”, “”)
Replace “cell_reference” with the reference to the cell containing the text with single quotes. The SUBSTITUTE function replaces single quotes with an empty string, effectively removing them from the Excel string. This method provides a straightforward way to clean up text data by eliminating unwanted single quotes.

What is the shortcut to remove quotes from a string?

In Excel, the shortcut to remove quotes from a string is by using the SUBSTITUTE function. A quick formula can be applied: =SUBSTITUTE(cell_reference, “”””, “”)
Replace “cell_reference” with the reference to the cell containing the text with quotes. This SUBSTITUTE function effectively removes double quotes by substituting them with an empty string. It’s a convenient and efficient way to handle quote removal in Excel.

Related Articles

Rate this post

Leave a Reply

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