+ Reply to Thread
Results 1 to 7 of 7

Clearing contents of only blank cells

  1. #1
    Forum Contributor
    Join Date
    05-13-2012
    Location
    Atlanta, GA
    MS-Off Ver
    Excel 2010
    Posts
    378

    Question Clearing contents of only blank cells

    I have a worksheet that has some blank cells within a particular column. Eventhough these cells appear empty, they actually contain carriage returns. I have been trying to using the following code to clear the contents of these blank cells but it doesn't clear the contents. I can manual clear the contents but I really want to get this code to work because of the volume of blank cells I have to deal with.

    Please Login or Register  to view this content.
    Suggestions???

  2. #2
    Valued Forum Contributor
    Join Date
    03-16-2012
    Location
    Aarhus, Denmark
    MS-Off Ver
    Excel 2007
    Posts
    992

    Re: Clearing contents of only blank cells

    Try this:

    Please Login or Register  to view this content.
    Sincerely
    S?ren Larsen

    "Give a man a fish, and you'll feed him for a day. Give a man a fishing rod, and he'll steal your yacht!"

  3. #3
    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: Clearing contents of only blank cells

    I'd try this:

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

  4. #4
    Forum Contributor
    Join Date
    05-13-2012
    Location
    Atlanta, GA
    MS-Off Ver
    Excel 2010
    Posts
    378

    Re: Clearing contents of only blank cells

    I tried

    Please Login or Register  to view this content.
    first, but nothing happened. I then tried

    Please Login or Register  to view this content.
    And had only one cell get affected by this. I still have 4 cells that contain carriage returns that this code did not work on. Any suggestions?

  5. #5
    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: Clearing contents of only blank cells

    Maybe there's something lese in those cells. Post a workbook?

  6. #6
    Forum Contributor
    Join Date
    05-13-2012
    Location
    Atlanta, GA
    MS-Off Ver
    Excel 2010
    Posts
    378

    Re: Clearing contents of only blank cells

    I have just copied the Column that I am working with. Cell A184 is the first example of the issue I am having.
    Attached Files Attached Files

  7. #7
    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: Clearing contents of only blank cells

    They are line feeds.

    Select the column, do Ctrl+H, and put the cursor Find what box. Press and hold the Alt key, and on the NUMERIC keypad, type 0010

    Leave the Replace box empty, press Replace All.

+ 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