Page 1 of 2 12 LastLast
Results 1 to 10 of 15

Thread: Remove Unprintable Non-Blank Cells Having Zero Length Contents

  1. #1
    Junior Member
    Join Date
    May 2013
    Posts
    20
    Rep Power
    0

    Remove Unprintable Non-Blank Cells Having Zero Length Contents

    Hi,

    I'm importing data into a spreadsheet and what are supposed to be blank cells actually aren't. ISBLANK returns false. CODE(cellref) returns #VALUE error -- in the calculation steps, it looks like CODE( ""). TRIM(cellref) doesn't return a blank cell. Neither does CLEAN(cellref).

    "Clear contents" works.

    It was imported from a csv.

    Any ideas?
    Last edited by aaronb; 08-01-2013 at 02:33 PM.

  2. #2
    Member
    Join Date
    Jun 2013
    Posts
    93
    Rep Power
    11
    attach please a sample file

  3. #3
    Junior Member
    Join Date
    May 2013
    Posts
    20
    Rep Power
    0
    Sample workbook attached

    Whitespace Char.xlsx

    Edit: The cell didn't copy correctly -- ISBLANK returns TRUE. Let me try to get a disfunctional one up.

    Sorry about that, here's a proper copy. The messed-up cell is A1.

    Non-blank Cell.xlsx
    Last edited by aaronb; 08-02-2013 at 10:00 AM.

  4. #4
    Member
    Join Date
    Jun 2013
    Posts
    93
    Rep Power
    11
    I did not understand your goal

  5. #5
    Junior Member
    Join Date
    May 2013
    Posts
    20
    Rep Power
    0
    Quote Originally Posted by patel View Post
    I did not understand your goal
    Macro to get rid of that character in the workbook so the affected cells return true for an ISBLANK check.

  6. #6
    Forum Guru Rick Rothstein's Avatar
    Join Date
    Feb 2012
    Posts
    659
    Rep Power
    13
    Quote Originally Posted by aaronb View Post
    Hi,

    I'm importing data into a spreadsheet and what are supposed to be blank cells actually aren't. ISBLANK returns false. CODE(cellref) returns #VALUE error -- in the calculation steps, it looks like CODE( ""). TRIM(cellref) doesn't return a blank cell. Neither does CLEAN(cellref).

    "Clear contents" works.
    Give this a try and see if it fixes your problem. Select all the cells on the worksheet, then press CTRL+H to bring up Excel's Replace dialog box. If there is anything in the "Find what" field, remove it, then click into the "Find what" field to place the text cursor in it, then press and hold down the ALT key and, while it is down, type the numbers 0160 using the NUMBER PAD only (it will not work if you use the main keyboard to input those digits). Make sure there is nothing in the "Replace with" field. Click the "Options>>" button and make sure the "Match entire cell contents" checkbox does NOT have a check mark in it, then click the "Replace All" button. See if you can do whatever you want/need with those cells now.

  7. #7
    Forum Guru Rick Rothstein's Avatar
    Join Date
    Feb 2012
    Posts
    659
    Rep Power
    13
    Quote Originally Posted by aaronb View Post
    Macro to get rid of that character in the workbook so the affected cells return true for an ISBLANK check.
    If you want a macro, then check out the code I posted in this message in different forum...

    http://www.excelfox.com/forum/f13/tr...-155/#post1092

  8. #8
    Junior Member
    Join Date
    May 2013
    Posts
    20
    Rep Power
    0
    Quote Originally Posted by Rick Rothstein View Post
    Give this a try and see if it fixes your problem. Select all the cells on the worksheet, then press CTRL+H to bring up Excel's Replace dialog box. If there is anything in the "Find what" field, remove it, then click into the "Find what" field to place the text cursor in it, then press and hold down the ALT key and, while it is down, type the numbers 0160 using the NUMBER PAD only (it will not work if you use the main keyboard to input those digits). Make sure there is nothing in the "Replace with" field. Click the "Options>>" button and make sure the "Match entire cell contents" checkbox does NOT have a check mark in it, then click the "Replace All" button. See if you can do whatever you want/need with those cells now.
    Rick,

    Unfortunately that didn't work. It did return 4 matches, but not the cells in question.

  9. #9
    Member
    Join Date
    Jun 2013
    Posts
    93
    Rep Power
    11
    attach please a new file again with data and desired result

  10. #10
    Forum Guru Rick Rothstein's Avatar
    Join Date
    Feb 2012
    Posts
    659
    Rep Power
    13
    Quote Originally Posted by patel View Post
    attach please a new file again with data and desired result
    I do not see any attachment.

Similar Threads

  1. How can I make MLOOKUP to ignore blank cells?
    By radionut in forum Excel Help
    Replies: 1
    Last Post: 07-22-2013, 09:18 AM
  2. Replies: 5
    Last Post: 07-11-2013, 07:31 AM
  3. Replies: 13
    Last Post: 06-10-2013, 09:05 AM
  4. Replies: 2
    Last Post: 09-24-2012, 11:19 PM
  5. Highlighting Blank Cells
    By Howardc in forum Excel Help
    Replies: 2
    Last Post: 08-13-2012, 07:56 AM

Posting Permissions

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