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

Create a chart in one keystroke
Select the data and press Alt+F1 to insert a default chart. You can change the default chart to any chart type

Joe4

MrExcel MVP, Junior Admin
Joined
Aug 1, 2002
Messages
63,302
Office Version
  1. 365
Platform
  1. Windows
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.
 

Tom Urtis

MrExcel MVP
Joined
Feb 10, 2002
Messages
11,270
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.
 
Master Excel Bundle

Excel contains over 450 functions, with more added every year. That’s a huge number, so where should you start? Right here with this bundle.

Forum statistics

Threads
1,164,019
Messages
5,834,980
Members
430,331
Latest member
Syed Yasir Hannan

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
Top