Tip: Other languages are Google-Translated. You can visit the English version of this link.
Log in
x
or
x
x
Register
x

or

How to remove leading apostrophe from numbers in Excel?

doc remove leading apostrophe 1

Supposing you have a list of numbers which are preceded by a hidden apostrophe, and the apostrophe only be seen in the Formula bar when you select the cell as following screenshot. And now, you want to remove the leading apostrophe from the cell value. To remove them one by one will spend much time, here, I will talk about some quick tricks for solving this problem.

Remove leading apostrophe from numbers with paste as values

Remove leading apostrophe from numbers with Text to Column

Remove leading apostrophe from numbers with VBA code

Remove leading apostrophe from numbers with Kutools for Excel


Remove leading hidden apostrophe from numbers:

Kutools for Excel’s Convert between Text and Number feature can help you quickly convert the text format numbers to real numbers and convert the numbers to text format as you need.

doc remove leading apostrophe 10

Kutools for Excel: with more than 200 handy Excel add-ins, free to try with no limitation in 60 days. Download and free trial Now!



You can use a simple feature – paste as values to finish this task, please do as follows:

1. Select the data range that you want to remove the leading apostrophe, and press Ctrl + C to copy them.

2. Then click one cell where you want to put the result, and right click, then choose 123 value from the Paste Options, see screenshot:

doc remove leading apostrophe 2

3. And you can see the leading apostrophe has been removed from the numbers.

doc remove leading apostrophe 4  2 doc remove leading apostrophe 5

In Excel, the Text to Column function also can help you to solve this task.

1. Select the data range that you want to remove the leading apostrophe.

2. Then click Data > Text to Column, and in the Convert Text to Columns Wizard, click Finish button directly, see screenshot:

doc remove leading apostrophe 6

3. And now, you will find all the leading apostrophes have been removed from the numbers.


If you are interested in VBA code, I can create a code for you to deal with this task.

1. Hold down the ALT + F11 keys in Excel, and it opens the Microsoft Visual Basic for Applications window.

2. Click Insert > Module, and paste the following code in the Module Window.

VBA code: Remove leading apostrophe from numbers

Sub remove_Apostrophe()
'Updateby20150521
Dim rng As Range
Dim WorkRng As Range
On Error Resume Next
xTitleId = "KutoolsforExcel"
Set WorkRng = Application.Selection
Set WorkRng = Application.InputBox("Range", xTitleId, WorkRng.Address, Type:=8)
Set WorkRng = WorkRng.SpecialCells(xlCellTypeConstants, xlNumbers)
For Each rng In WorkRng
    If Not rng.HasFormula Then
        rng.Formula = rng.Value
    End If
Next
End Sub

3. Then press F5 key to run this code, and in the popped out prompt box, select the data range that you want to use, see screenshot:

doc remove leading apostrophe 7

4. And then click OK, all the leading apostrophes have been removed from the selected cells.


Kutools for Excel’s Convert between Text and Number utility can help you to convert the numbers formatted as text to normal numbers with one click, and remove the leading apostrophe at the same time.

Kutools for Excel : with more than 300 handy Excel add-ins, free to try with no limitation in 60 days

After installing Kutools for Excel, please do as follows:

1. Select the data range that you want to use.

2. Click Kutools > Content > Convert between Text and Number, see screenshot:

doc remove leading apostrophe 8 8

3. In the Convert between Text and Number dialog box, choose Text to number under the Convert type, then click Ok or Apply button, the selected numbers stored as text have been converted to real numbers, and the leading apostrophes are removed at once. If you want to convert it back, only need to check Number to text in Convert between Text and Number dialog.see screenshots:

doc remove leading apostrophe 9 9  2 doc remove leading apostrophe 10 10

Click to know more about this Convert between Text and Number feature.

Download and free trial Kutools for Excel Now !


Kutools for Excel: with more than 200 handy Excel add-ins, free to try with no limitation in 60 days. Download and free trial Now!


Recommended Productivity Tools

Ribbon of Excel (with Kutools for Excel installed)

300+ Advanced Features Increase Your Productivity by 71%, and Help You To Stand Out From Crowd!

Would you like to complete your daily work quickly and perfectly? Kutools For Excel brings 300+ cool and powerful advanced features (Combine workbooks, sum by color, split cell contents, convert date, and so on...) for 1500+ work scenarios, helps you solve 82% Excel problems.

  •  Deal with all complicated tasks in seconds, help to enhance your work ability, get success from the fierce competition, and never worry about being fired.
  •  Save a lot of work time, leave much time for you to love and care the family and enjoy a comfortable life now.
  •  Reduce thousands of keyboard and mouse clicks every day, relieve your tired eyes and hands, and give you a healthy body.
  •  Become an Excel expert in 3 minutes, and get admiring glance from your colleagues or friends.
  •  No longer need to remember any painful formulas and VBA codes, have a relaxing and pleasant mind, give you a thrill you've never had before.
  •  Spend only $39, but worth than $4000 training of others. Being used by 110,000 elites and 300+ well-known companies.
  •  60-day unlimited free trial. 60-day money back guarantee. Free upgrade and support for 2 years. Buy once, use forever.
  •  Change the way you work now, and give you a better life immediately!

Office Tab Brings Efficient And Handy Tabs to Office (include Excel), Just Like Chrome, Firefox, And New IE

  • Increases your productivity by 50% when viewing and editing multiple documents.
  • Reduce hundreds of mouse clicks for you every day, say goodbye to mouse hand.
  • Open and create documents in new tabs of same window, rather than in new windows.
  • Help you work faster and easily stand out from the crowd! One second to switch between dozens of open documents!
Say something here...
symbols left.
You are guest ( Sign Up? )
or post as a guest, but your post won't be published automatically.
Loading comment... The comment will be refreshed after 00:00.
  • To post as a guest, your comment is unpublished.
    Caio · 11 months ago
    Public Sub REMOVE_APOSTROPHE()

    Dim R_CELL As Range
    Dim TEMP_VALUE As Variant

    For Each R_CELL In Selection

    TEMP_VALUE = R_CELL.Value
    R_CELL.Clear
    R_CELL.Value = TEMP_VALUE

    Next R_CELL

    End Sub
  • To post as a guest, your comment is unpublished.
    Tom · 1 years ago
    Thanks for the tip - I used text to columns; great advice thankyou
  • To post as a guest, your comment is unpublished.
    Daniel · 1 years ago
    When the first two tricks do not work (this was in my case), I found another simple trick. This trick only works when all cells have the same number of characters behind an annoying ' that cannot be removed for whatever reason. 1-insert column next to cells with ' 2- enter into the new column formula "right" referring to cells with ' and insert no. characters after '. 3- Copy cells with formula-result and paste as values in the original column. 4- remove added column with formula.
  • To post as a guest, your comment is unpublished.
    Joseph · 2 years ago
    Thanks, text to column work for me... :-)
  • To post as a guest, your comment is unpublished.
    FDL · 3 years ago
    i LOVE THE vba CODE in theory but it didn't work :(