+ Reply to Thread
Results 1 to 2 of 2

How can I search-and-replace for cell containing only apostrophe (') replacing with NULL

  1. #1
    Registered User
    Join Date
    07-10-2005
    Location
    Atlanta
    Posts
    20

    How can I search-and-replace for cell containing only apostrophe (') replacing with NULL

    I deal with spreadsheets that have many cells containing only an apostrophe ( ' ascii 39). I want to do a Ctrl-H (search and replace) to each of those cells and erase the ' leaving the cell NULL (ascii 00).

    I'll be grately deepful for a solution.

  2. #2
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,578

    Re: How can I search-and-replace for cell containing only apostrophe (') replacing with NU

    You can use a simple macro
    Please Login or Register  to view this content.
    Change Sheet1 to your worksheet of interest.
    Does that work for you?
    ChemistB
    My 2?

    substitute commas with semi-colons if your region settings requires
    Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
    If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

+ 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. replace doesn't search for the entire word before replacing
    By william1404 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-27-2014, 03:28 AM
  2. Find a cell that has a null value, and replace with an empty string.
    By skania in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-20-2013, 12:49 PM
  3. Inputbox Cancel returns null value, can replace with original cell data
    By bg_enigma1 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 05-23-2012, 05:08 PM
  4. Code to replace null and not null strings
    By tigertim71 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-27-2008, 05:07 PM
  5. Replacing "0" values with null string in array while preserving cell formula
    By AlvaroSiza in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 09-29-2007, 01:07 PM
  6. [SOLVED] FIND and REPLACE ' apostrophe
    By James T in forum Excel General
    Replies: 3
    Last Post: 06-09-2006, 02:00 AM
  7. Replace null string with blank cell
    By gjcase in forum Excel General
    Replies: 2
    Last Post: 08-09-2005, 09:13 AM

Tags for this Thread

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