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?
 

Some videos you may like

Excel Facts

Using Function Arguments with nested formulas
If writing INDEX in Func. Arguments, type MATCH(. Use the mouse to click inside MATCH in the formula bar. Dialog switches to MATCH.

Joe4

MrExcel MVP, Junior Admin
Joined
Aug 1, 2002
Messages
55,457
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,222
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.
 

Watch MrExcel Video

Forum statistics

Threads
1,118,760
Messages
5,574,083
Members
412,566
Latest member
TexasTony
Top