+ Reply to Thread
Results 1 to 19 of 19

Can't clear non-blank empty cells

  1. #1
    Valued Forum Contributor
    Join Date
    12-02-2009
    Location
    Austin, Tx
    MS-Off Ver
    Office 365 64-Bit, 2108, build 14326.21018
    Posts
    4,065

    Can't clear non-blank empty cells

    See the attached worksheet. What I WANT to do is, in columns A and B, do an Edit/GoTo/Special/Blanks, CtrlEnter to select all, =, up arrow, enter to paste the value above in all of the blank cells. The problem is all of my blank cells appear to be non-blank. I've tried using the TRIM function on them, the CLEAN function, copy and paste as values, etc. Can anyone help me to replace the non-empty blank cells with empty blank cells? Thanks in advance.
    Attached Files Attached Files
    Last edited by jomili; 12-10-2010 at 01:57 PM.

  2. #2
    Forum Contributor
    Join Date
    04-21-2007
    Location
    Lima, Peru
    MS-Off Ver
    2000, 2007, 2010
    Posts
    674

    Re: Can't clear non-blank empty cells

    Hi

    Your example seem to have gone astray, please re-attach.

    Regards

    Jeff

  3. #3
    Valued Forum Contributor
    Join Date
    12-02-2009
    Location
    Austin, Tx
    MS-Off Ver
    Office 365 64-Bit, 2108, build 14326.21018
    Posts
    4,065

    Re: Can't clear non-blank empty cells

    Whoops! Attached now.

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

    Re: Can't clear non-blank empty cells

    You have spaces in those cells which since they are stand alone won't be removed with TRIM.
    Select Column B (for example) and CNTRL H to call up Search and Replace
    Pick Options and make sure "Match Entire Cell Contents" is picked.
    Find (enter a space)
    Replace (enter nothing)
    Then "Replace All"
    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

  5. #5
    Valued Forum Contributor
    Join Date
    12-02-2009
    Location
    Austin, Tx
    MS-Off Ver
    Office 365 64-Bit, 2108, build 14326.21018
    Posts
    4,065

    Re: Can't clear non-blank empty cells

    Chemist,

    Good try, but unfortunately that was among the "etc" things I tried (but I hadn't tried the "Match Entire Cell Contents"; didn't know about that), and it still doesn't work. No results found. Were you able to make this work on the sample I pasted?

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

    Re: Can't clear non-blank empty cells

    Yes, I had over a thousand matches in Column B. I was then able to GO>Special>Blanks
    Last edited by ChemistB; 12-10-2010 at 12:08 PM.

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

    Re: Can't clear non-blank empty cells

    In a really blank cell, type =CODE(B12) where B12 is the cell you're interested in finding out what's really in there. If you get a 32 that means there is a space in that cell.

  8. #8
    Valued Forum Contributor
    Join Date
    12-02-2009
    Location
    Austin, Tx
    MS-Off Ver
    Office 365 64-Bit, 2108, build 14326.21018
    Posts
    4,065

    Re: Can't clear non-blank empty cells

    Hmmm, curiouser and curioser. I just went back and checked my example, and your solution works perfectly on it. I tried my source document, and it wouldn't work (no results found). But my example was simply a copy of the sheet from my source document, with a few name changes. Why would it work in one and not the other?

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

    Re: Can't clear non-blank empty cells

    Try the code thing and see if it returns something other than 32

  10. #10
    Valued Forum Contributor
    Join Date
    12-02-2009
    Location
    Austin, Tx
    MS-Off Ver
    Office 365 64-Bit, 2108, build 14326.21018
    Posts
    4,065

    Re: Can't clear non-blank empty cells

    Chemist,

    I tried the CODE(A1) thing on my "blank" cells in my source document. I get a "Value" error. For cells that ARE filled (and appear filled) I get values such as 82, 49, etc. No 32's are found.

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

    Re: Can't clear non-blank empty cells

    Hmmm, #Value means there are no hidden characters in those cells. 82 is capital R, 49 is 1.

    Definitely curiousier. Can you save your original spreadsheet under a different name, delete all the data except Col B (I assume Col B is the problem?) and upload it?

  12. #12
    Valued Forum Contributor
    Join Date
    12-02-2009
    Location
    Austin, Tx
    MS-Off Ver
    Office 365 64-Bit, 2108, build 14326.21018
    Posts
    4,065

    Re: Can't clear non-blank empty cells

    Okay, here it is. I left the A and B columns, because I think both are having trouble, and also included columns A and B from the original source, so there are two tabs.
    Attached Files Attached Files

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

    Re: Can't clear non-blank empty cells

    Okay, try this (seems to work but I don't know why). Select a column, then Data > Text to Columns >Finish. Then the other column. Try F5.
    Did that work?

  14. #14
    Valued Forum Contributor
    Join Date
    12-02-2009
    Location
    Austin, Tx
    MS-Off Ver
    Office 365 64-Bit, 2108, build 14326.21018
    Posts
    4,065

    Re: Can't clear non-blank empty cells

    Okay, now that's just weird.

    I tried it on column B first (delimited), so you'd think if there was anything EXTRA in the cell it would populate column C, but column C stayed just the way it was. Then I did column A, which should have wiped out B, but didn't. But sure enough, after that I could do my pastespecial routine.

    Why would that happen, and how did you come up with that solution?

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

    Re: Can't clear non-blank empty cells

    First, since you didn't have anything which would break up the column into multiple columns (i.e. Tabs), it really just copies the new column onto the old column. This is a good way to reset a column when it's not working right and you can't figure out why. Once we figured out that there really weren't any characters in the cells as far as we could tell, I figured that was worth a shot. Glad it worked.

  16. #16
    Valued Forum Contributor
    Join Date
    12-02-2009
    Location
    Austin, Tx
    MS-Off Ver
    Office 365 64-Bit, 2108, build 14326.21018
    Posts
    4,065

    Re: Can't clear non-blank empty cells

    I'm glad, too. Thanks for your help and sticking with me through this. Now maybe I can get some work done.

    Thanks, and a Merry Christmas to you!

    John

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

    Re: Can't clear non-blank empty cells

    Merry Christmas

  18. #18
    Registered User
    Join Date
    02-09-2016
    Location
    Missoula, MT
    MS-Off Ver
    2010, 2013, 2016
    Posts
    1

    Re: Can't clear non-blank empty cells

    I have had a similar issue. I have needed to use the Find > Go To Special > Blanks feature to select all blank cells in a column where I entered an =IF(True, False, "") formula that either provided a particular result on true or "" blank if FALSE. Then I would Copy > Paste Values.

    I decided to instead of using "" to return blank, that I would have the false result literally ="Blank" spelled out. Then, I could Copy > Paste Values and then Find "Blank" and Replace with nothing so that the cells are truly blank and prepared for the Go To Special > Blanks feature.

  19. #19
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: Can't clear non-blank empty cells

    Welcome to the forum.
    Unfortunately your post does not comply with Rule 2 of our Forum RULES. Do not post a question in the thread of another member -- start your own thread.

    If you feel an existing thread is particularly relevant to your need, provide a link to the other thread in your new thread.

    Old threads are often only monitored by the original participants. New threads not only open you up to all possible participants again, they typically get faster response, too.
    <---------If you like someone's answer, click the star to the left of one of their posts to give them a reputation point for that answer.
    Ron W

+ 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