apostrophe in cell

juster21

Well-known Member
Joined
Jun 3, 2005
Messages
867
when I click on a cell it shows '12345 in the formula bar but only the number in the cell. I am trying to compare to columns to see if they are equal. The result is false and I believe the apostrophe may be the reason. How can I remove this apostrophe from several thousand rows?
 

Excel Facts

What is the fastest way to copy a formula?
If A2:A50000 contain data. Enter a formula in B2. Select B2. Double-click the Fill Handle and Excel will shoot the formula down to B50000.
If they are all numeric entries that you are trying to remove the "text qualifier" (apostrophe) from, simply highlight the column, change the format to General or Numeric, select Text to Columns from the Data menu, and click Finish.
 
Upvote 0
If this is in column A for example, press Alt+F11, then Ctrl+G, and type this into what is known as the Immediate Window and press Enter:
Columns(1).Value = Columns(1).Value

Then press Alt+Q and the apostrophes will be gone.

Modify for column. If the apostrophes are in a bunch of places, then select that range and you'd enter
Selection.Value = Selection.Value

In the latter case make sure you are not selecting cells with formulas ! Selecting that range with constants only would be via selecting the range, then click Edit > GoTo > Special > Constants > OK
and then follow the steps as outlined above to get to the Immediate Window.
 
Upvote 0

Forum statistics

Threads
1,214,772
Messages
6,121,459
Members
449,033
Latest member
Kcolwell16

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