How do I get rid of tick marks?

Galena1

Active Member
Joined
Jun 10, 2010
Messages
305
I have a worksheet with a column of data that is in this format:

'12345

Whenever I operate on it formulaically it retains the tick mark. It cannot be cell formatted out.

I don't want to co thru the hassle of saving it as .txt file and then re-importing into my Excel workbook, making sure to delimit it and import as text, and finally copy paste special values over existing data, although we all know this method does work.

Isn't there a cleaner or easier way to deal with this cleansing?

btw, this is a text value string, not a date integer.


:p
 

Excel Facts

Return population for a City
If you have a list of cities in A2:A100, use Data, Geography. Then =A2.Population and copy down.
Code:
Sub ApostroRemove()
    For Each currentcell In Selection
        currentcell.Value = currentcell.Value
    Next
End Sub
Select range of cells and run macro code.
 
Upvote 0
My bad John. Your macro works fine. It does remove the tick (apostrophe) nicely. I can still see the 'tick' if I mouse over the cell, which of course signifies it is still text string. But, I just looked at my data and I actaully needed to converted to a value (1234), NOT text ('1234). Again, my bad. Sorry.

:p
 
Upvote 0
Code:
Sub x()
    With Intersect(ActiveSheet.UsedRange, Selection.Areas(1))
        .Value = .Formula
    End With
End Sub
 
Upvote 0
'x' macro seemed to work at first. Now stopped working. It too still converts tick maked text to label '1234. Need it to convert to integer (value) 1234...:eek:
 
Upvote 0
The selection needs to cover the cells of interest.
 
Upvote 0
Also, the cells of interest must be formatted as something other than Text.
 
Upvote 0

Forum statistics

Threads
1,221,010
Messages
6,157,380
Members
451,416
Latest member
Ilu

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top