Search EggHeadCafe's Job Board
EggHeadCafe Silverlight WPF ASP.NET VB.NET C# Excel SQL Server SharePoint
search
Office GroupsView
Excel
Excel Charting
Excel Crashesgpfs
Excel Misc
Excel Newusers
Excel Programming
Excel Setup
Excel Worksheet Functions
Word Application Errors
Word Conversions
Word Customization Menustoolbars
Word Docmanagement
Word Drawing Graphics
Word International Features
Word Mail
Word Mailmerge Fields
Word Newusers
Word Numbering
Word Oleinterop
Word Pagelayout
Word Printingfonts
Word Setup Networking
Word Spelling Grammar
Word Tables
Word Visual Basica Addins
Word Visual Basica Customization
Word Visual Basica General
Word Visual Basica Userforms
Works Win
Office Developer Automation
Office Developer Com Add_Ins
Office Developer Officedev Other
Office Developer Outlook Forms
Office Developer Outlook Visual Basica
Office Developer Visual Basica
Office Misc
Office Setup
Officeupdate
Onenote
Outlook
Outlook Bcm
Outlook Calendaring
Outlook Contacts
Outlook Fax
Outlook General
Outlook Installation
Outlook Interop
Outlook Mac
Outlook Printing
Outlook Program_Addins
Outlook Program_Forms
Outlook Program_Visual Basica
Outlook Teamfolders
Outlook Thirdpartyutil
Project
Project Developer
Project Server
Visio
Visio Developer
Visio General
Word Visual Basica Beginners
Outlookexpress General
Office Communicator
Word Programming
Office Templates Misc

Group SummariesView
.NET Framework
Access
BizTalk
Certifications
CRM
DDK
Exchange Server
FoxPro
French
French .NET
Games
German
German .NET
Graphic Design
IIS
Internet
ISA Server
Italian
Italian .NET
Maps
MCIS
Miscellaneous
Mobile Apps
Money
MSN
Networking
Office
Ops Mgr
Publisher
Security
SharePoint
Small Business
Spanish
Spanish .NET
SQL Server
Systems Management Server
Transaction Server
Virtual PC / Virtual Server
Visual Studio
Win32
Windows 2000
Windows 2003 Server
Windows 7
Windows Live
Windows Media
Windows Update
Windows Vista
Windows XP
 

View All Microsoft Excel Posts  Ask A New Question 

How can I remove hidden apostrophe in Excel?

JimMober posted on Wednesday, February 14, 2007 1:00 PM

Hi,

I have a spreadsheet of data and a number of the columns have data that is
preceeded by a hidden apostrophe.  The apostrophe can only be seen when you
click on the cell.  I have looked and can't find a post that addresses this.
Can anyone out there tell me how to remove this.  I have tried using the trim
function in conjuction with the clean function and it didn't work.  Ack!
reply

 

How can I remove hidden apostrophe in Excel?

Nozza posted on Wednesday, February 14, 2007 1:08 PM

On Wed, 14 Feb 2007 10:00:38 -0800, Jim Moberg


If the cells are all numbers, then add 0 to them in a new column.

This will convert the string 7 to a numeric 7.

eg If A1 is equal to '7 then in cell B1 use the formula =A1+0

HTH

Noz
--
Email (ROT13)
abmmn_jnyrf4@lnubb.pb.hx
reply

The ' formats the cell to align left.

Bill Ridgeway posted on Wednesday, February 14, 2007 1:12 PM

The ' formats the cell to align left.  You may also see carat ^ (not sure
about correct spelling) which centres text and  " which aligns text to the
right.  You can't delete it and there's nothing to worry about.

Regards.

Bill Ridgeway
Computer Solutions
reply

Is the apostrophe visible only in the formula bar?

Gord Dibben posted on Wednesday, February 14, 2007 1:13 PM

Is the apostrophe visible only in the formula bar?

The CLEAN function works for me.

=CLEAN(A1)    then copy>paste special>values>ok>esc.

Another thought, if you have Tools>Options>Transition>Transition Navigation Keys
options checkmarked, you could be seeing the Lotus alignment mark.

' for left aligned
^ for centered


Gord Dibben  MS Excel MVP

On Wed, 14 Feb 2007 10:00:38 -0800, Jim Moberg
reply

How can I remove hidden apostrophe in Excel?

JimMober posted on Wednesday, February 14, 2007 1:41 PM

I did try that and it did not work for me.
reply

It looks like I found the solution.

JimMober posted on Wednesday, February 14, 2007 1:43 PM

It looks like I found the solution.  I saved the file as a csv file type and
after I brought it into excel again I did not see the apostrophe.
reply

Is a macro ok?

Dave Peterson posted on Wednesday, February 14, 2007 1:54 PM

Is a macro ok?

Option Explicit
Sub testme()
Dim myRng As Range
Dim myCell As Range

Set myRng = Nothing
On Error Resume Next
Set myRng = Intersect(Selection, _
Selection.Cells.SpecialCells(xlCellTypeConstants))
On Error GoTo 0

If myRng Is Nothing Then
MsgBox "No constants in selection!"
Exit Sub
End If

For Each myCell In myRng.Cells
If myCell.PrefixCharacter <> "'" Then
myCell.Value = "'" & myCell.Text
End If
Next myCell

End Sub

Select a range and try it out.

If you're new to macros, you may want to read David McRitchie's intro at:
http://www.mvps.org/dmcritchie/excel/getstarted.htm


--

Dave Peterson
reply

You could also try selecting a column and then Data > Text to columnsOn Feb

Lori posted on Wednesday, February 14, 2007 4:19 PM

You could also try selecting a column and then Data > Text to columns
reply

remove hidden apostrophe in Excel

Karen Ellis posted on Wednesday, May 28, 2008 10:36 PM

This formula worked like a charm for me:
=VALUE(cell containing apostrophe)
Then you can copy, paste special, and click Values to replace the cells containing apostrophes.
reply

Hi, you can multiply those value by 1 which containes hidden apostrophe.

DILipande posted on Thursday, May 29, 2008 2:55 AM

Hi, you can multiply those value by 1 which containes hidden apostrophe.
After doing this you can have those value moved to right side of the cell and
you can see that hidden apostrophe no more is there in the cell.  thanks

--
Dilip Kumar Pandey
MBA, BCA, B.Com(Hons.)
dilipandey@yahoo.com
dilipandey@gmail.com
New Delhi, India
reply

You can remove the apostrophes from numerical values directly.

Rick Rothstein \(MVP - VB\) posted on Thursday, May 29, 2008 5:10 PM

You can remove the apostrophes from numerical values directly. Select the
cells in column, click Data/Text To Columns on Excel's menu bar and then
click the Finish button. If you have more than one column with your "text
numbers", then you will have to do the above column-by-column one-at-a-time.

Rick
reply

removing the "hidden apostrophe" from cells in excel.

Bill Crighton posted on Monday, October 27, 2008 11:10 PM

There may be better methods but my fix is to copy a cell that does not have the apostrophe, then paste special the cells I want to remove the apostrophe from and select format.  Thats it!
reply

removing the "hidden apostrophe" from cells in excel.

ShaneDevenshir posted on Tuesday, October 28, 2008 3:00 AM

Hi,

The solution depends on the type of data:
Suppose it is numbers or dates that have the apostrophe at the beginning:
1. Select an empty cell and choose copy
2. Select all the cells that have the dates or numbers
3. Choose Edit, Paste Special, Add.
If the entries were dates you will need to format them as dates.

Suppose the data is text and is located in A1:A100
1.  In an empty cell enter the formula
=LEFT(A1,10^10)                 the 10^10 is overkill but it just makes sure
you get the largest possible text entry.
2. Copy the formula down as far as necessary
3. Select all the formulas and copy them
4. Choose Edit, Paste Special, Values

If this helps, please click the Yes button.
--
Thanks,
Shane Devenshire
reply

Can't see the entire thread here, but ...

RagDyeR posted on Tuesday, October 28, 2008 10:53 AM

Can't see the entire thread here, but ... for numeric values,
simply open and close TTC.

Select the column of values, then, from the Menu Bar,
--

HTH,

RD
=====================================================
Please keep all correspondence within the Group, so all may benefit!
=====================================================


There may be better methods but my fix is to copy a cell that does not have
the apostrophe, then paste special the cells I want to remove the apostrophe
from and select format.  Thats it!
reply

That is the wickest solution ever!

Tom McMillan posted on Thursday, June 25, 2009 1:57 PM

That is truly a genius solution... all hail!
reply

 
 

Previous Microsoft Excel conversation.