+ Reply to Thread
Results 1 to 5 of 5

Need to remove leading single quote from text cells

  1. #1
    Registered User
    Join Date
    10-09-2009
    Location
    Santa Barbara, CA
    MS-Off Ver
    Excel 2010
    Posts
    2

    Need to remove leading single quote from text cells

    I am a SAS programmer and often use SAS Proc Export to dump data to Excel. Sometimes the data is an Excel formula, e.g.
    =hyperlink("#Sheet1!r1c1","click here")

    Because the data is text, what get's put in the cell is '=HYPERLINK("#Sheet1!r1c1","click here")
    (note leading single quote).

    I cannot use the replace function to edit them out, so must hand edit each one out - tedious at best.

    Does anyone know how to remove these. The formulas don't work otherwise.
    Thank you in advance for any help you can offer.
    Last edited by katcar; 10-09-2009 at 04:52 PM.

  2. #2
    Forum Contributor GuruWannaB's Avatar
    Join Date
    01-24-2008
    Location
    An hour due East of Cowtown Ohio
    MS-Off Ver
    2010
    Posts
    421

    Re: Need to remove leading single quote from text cells

    Not sure why you can't use a find/replace...just do a find for '=hyperlink and replaced it with =hyperlink
    I help because of the Pavlovian dog that resides in the inner me...so if you are happy with the results, please add to my reputation. It helps keep me motivated!



    Please mark your threads as Solved once it is solved. Check the FAQ's to see how.

  3. #3
    Forum Contributor JP Romano's Avatar
    Join Date
    10-09-2008
    Location
    Princeton, NJ
    MS-Off Ver
    2010
    Posts
    500

    Re: Need to remove leading single quote from text cells

    I'm not able to replicate your problem either. I did a replace of the apostrophe with (nothing) and it worked fine. Maybe if you attach one of your spreadsheets here we can help.

  4. #4
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Need to remove leading single quote from text cells

    Select the column, do data > text to columns, finish
    Entia non sunt multiplicanda sine necessitate

  5. #5
    Registered User
    Join Date
    10-09-2009
    Location
    Santa Barbara, CA
    MS-Off Ver
    Excel 2010
    Posts
    2

    Re: Need to remove leading single quote from text cells

    The Data-> Text to Columns-> Finish worked!!!

    I won't bother to post the worksheet, but doing find/replace with the single quote did not work. Excel did not find the single quote as it is not seen as part of the contents of the cell.

    Thank you SO very much!

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1