+ Reply to Thread
Results 1 to 7 of 7

Filtering Out Blank Cells that Aren't Really Blank

  1. #1
    Forum Contributor
    Join Date
    02-18-2014
    Location
    Seattle, WA
    MS-Off Ver
    Excel 2013
    Posts
    197

    Filtering Out Blank Cells that Aren't Really Blank

    I receive a report that comes to me in sections, and the first task is to sort the total list. There are a few blank rows between each section, but for some reason they're not really blank. ISBLANK returns false. So when I try to sort the entire list, it puts these non-blank rows up top.

    I'm using the following code to sort. Is there a way to filter out the blank cells that aren't really blank (see attached)?


    Please Login or Register  to view this content.
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    08-12-2012
    Location
    Sydney, Australia
    MS-Off Ver
    Excel 2010
    Posts
    5,636

    Re: Filtering Out Blank Cells that Aren't Really Blank

    Please Login or Register  to view this content.
    not sure why its doing that but a work around is just to delete the "Blank" rows which are at the top
    Last edited by humdingaling; 09-02-2015 at 08:53 PM. Reason: added extra IF condition to block unwarranted delete
    If you are satisfied with the solution(s) provided, please mark your thread as Solved.
    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

  3. #3
    Forum Expert Greg M's Avatar
    Join Date
    08-16-2007
    Location
    Dublin. Ireland
    MS-Off Ver
    Office 2016
    Posts
    4,481

    Re: Filtering Out Blank Cells that Aren't Really Blank

    Hi there,

    Try the following code and see if it does what you need:

    Please Login or Register  to view this content.
    Hope this helps - please let me know how you get on.

    Regards,

    Greg M

  4. #4
    Forum Contributor
    Join Date
    02-18-2014
    Location
    Seattle, WA
    MS-Off Ver
    Excel 2013
    Posts
    197

    Re: Filtering Out Blank Cells that Aren't Really Blank

    Greg, that's exactly what I was looking for. Thanks so much!!

  5. #5
    Forum Contributor
    Join Date
    02-18-2014
    Location
    Seattle, WA
    MS-Off Ver
    Excel 2013
    Posts
    197

    Re: Filtering Out Blank Cells that Aren't Really Blank

    The code works in my example workbook, but as soon as I get it into my larger workbook it stops working. I keep getting Run-time error 9: subscript out of range. Any ideas?

  6. #6
    Forum Contributor
    Join Date
    02-18-2014
    Location
    Seattle, WA
    MS-Off Ver
    Excel 2013
    Posts
    197

    Re: Filtering Out Blank Cells that Aren't Really Blank

    Humdingaling, I just noticed your code, and it fixed my issue. Thanks!!

  7. #7
    Forum Expert Greg M's Avatar
    Join Date
    08-16-2007
    Location
    Dublin. Ireland
    MS-Off Ver
    Office 2016
    Posts
    4,481

    Re: Filtering Out Blank Cells that Aren't Really Blank

    Hi again,

    The error you mention will occur if you don't change the name of the worksheet to the appropriate value in the following line:

    Please Login or Register  to view this content.
    Regards,

    Greg M

+ 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. [SOLVED] Only Print Pages That Aren't Blank
    By EdWoods in forum Excel General
    Replies: 5
    Last Post: 06-22-2015, 07:34 PM
  2. [SOLVED] Remove blank rows that aren't really blank (contain unused formulas)
    By painterartist in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-02-2014, 02:01 PM
  3. I need help filtering out blank cells for printing! (VBA)
    By dpleventhal in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 11-01-2011, 04:07 PM
  4. [SOLVED] Imported Data creates blank cells that aren't really blank
    By JackieD in forum Excel Formulas & Functions
    Replies: 14
    Last Post: 02-22-2006, 09:00 PM
  5. Making sure that cells within a row in a database aren't blank
    By Pete Rooney in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-06-2005, 03:05 PM
  6. COUNT ONLY CELLS THAT AREN'T BLANK
    By paulinec in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 01-07-2005, 10:06 PM
  7. [SOLVED] COUNT ONLY CELLS THAT AREN'T BLANK
    By paulinec in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 01-07-2005, 07:06 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