+ Reply to Thread
Results 1 to 8 of 8

Select and delete cells containing ONLY a single quote / apostrophe

  1. #1
    Forum Contributor
    Join Date
    01-20-2014
    Location
    Greece
    MS-Off Ver
    20 yr. old Excel 2002!
    Posts
    710

    Select and delete cells containing ONLY a single quote / apostrophe

    There are plenty of cells in a sheet I got that contain ONLY a single quote or apostrophe.
    These cells are not selected by F5 - Special - Blanks.
    Tools - Options - Transition - Transition Navigation Keys does not make a difference either.

    I am looking for a way to select them (not manually) and delete them.
    Cannot delete rows or columns as this would delete other data.

    Office XP.

    Thanks

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,981

    Re: Select and delete cells containing ONLY a single quote / apostrophe

    What do you mean? Delete their contents? Have you tried Find & Replace?
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  3. #3
    Forum Contributor
    Join Date
    01-20-2014
    Location
    Greece
    MS-Off Ver
    20 yr. old Excel 2002!
    Posts
    710

    Re: Select and delete cells containing ONLY a single quote / apostrophe

    Yes. Delete contents. The only content is the apostrophe.
    Find and replace does not work.

    EDIT: There are however other cells that contain either strings or numbers after the apostrophe. Certainly we do not want those deleted.

  4. #4
    Valued Forum Contributor ImranBhatti's Avatar
    Join Date
    03-27-2014
    Location
    Rawalpindi,Pakistan
    MS-Off Ver
    Office 365
    Posts
    1,784

    Re: Select and delete cells containing ONLY a single quote / apostrophe

    Go to special<constants<text

    all text containing cells will be selcted .then find " or ' and replace with nothing

    and by the way if there is only ' in a cell that is not showing there.Only search for " and replace it with nothing

  5. #5
    Forum Contributor
    Join Date
    01-20-2014
    Location
    Greece
    MS-Off Ver
    20 yr. old Excel 2002!
    Posts
    710

    Re: Select and delete cells containing ONLY a single quote / apostrophe

    No good. That highlights those cells as well as cells containing e.g ('text) or ('number).
    The single quote does not appear in the cell but it does on the formula bar.

  6. #6
    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: Select and delete cells containing ONLY a single quote / apostrophe

    Please Login or Register  to view this content.
    Entia non sunt multiplicanda sine necessitate

  7. #7
    Forum Contributor
    Join Date
    01-20-2014
    Location
    Greece
    MS-Off Ver
    20 yr. old Excel 2002!
    Posts
    710

    Re: Select and delete cells containing ONLY a single quote / apostrophe

    Additional info: Cells are formatted as text.

    If left so, above code does not work. (I wonder why manually selecting the cell and hit delete, it does)

    If cells are formatted general, then above code works and ALSO will convert numbers entered as text e,g ('123) (left aligned) to numbers (123) (right aligned).

  8. #8
    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: Select and delete cells containing ONLY a single quote / apostrophe

    You could post a workbook with before and after examples and we wouldn't have to guess what you want.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Need to start a cell with an apostrophe/single quote
    By ChicagoTRS in forum Excel General
    Replies: 5
    Last Post: 09-20-2019, 11:36 PM
  2. [SOLVED] How to detect leading or trailing apostrophe and quote characters
    By kyjae in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 06-23-2014, 07:55 AM
  3. [SOLVED] How to find and replace hidden single quote ? (This sign is single quote: ')
    By HerryMarkowitz in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 01-19-2014, 03:48 PM
  4. Excel automatically adds a single quote ( ' ) to cells
    By servalsoft in forum Excel General
    Replies: 5
    Last Post: 09-12-2011, 03:22 PM
  5. Need to remove leading single quote from text cells
    By katcar in forum Excel General
    Replies: 4
    Last Post: 10-09-2009, 04:48 PM
  6. Double Quote Leading to Apostrophe Problem
    By ToferKing in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 01-27-2006, 11:45 AM
  7. Replies: 3
    Last Post: 01-21-2006, 11:45 PM

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