+ Reply to Thread
Results 1 to 2 of 2

Advanced Filter : One Criteria Cell Breaks the Filter - Returns Only Headers

  1. #1
    Registered User
    Join Date
    01-16-2014
    Location
    UK
    MS-Off Ver
    Excel 2003
    Posts
    5

    Advanced Filter : One Criteria Cell Breaks the Filter - Returns Only Headers

    Hi,

    I have a problem that I'm sure someone will know the answer too.
    I've come pretty close but still not got what could be a simple answer.

    I have an Automated Advanced filter with drop down menus for all but one of the criteria.

    I have a "free" field so that someone can type in a Rep No or leave it blank if they wish.

    I tried a Data Validation list with a blank and tried using ISBlank, no joy.
    It just returns the headers only and breaks the filter.

    The only way I can start it again is to alter the range in the code to exclude the Rep No, then it's fine again.

    I'd like to be able to skip over the criteria from any one box if it has nothing inside it.

    Any advice much appreciated.

    Thanks
    Attached Files Attached Files

  2. #2
    Registered User
    Join Date
    01-16-2014
    Location
    UK
    MS-Off Ver
    Excel 2003
    Posts
    5

    Re: Advanced Filter : One Criteria Cell Breaks the Filter - Returns Only Headers

    I managed to fix this myself. I used an ISBLANK formula to check what's typed in.
    If it's blank then return <>, the criteria is then skipped and returns all the cells.

    If not it returns what is typed in, and makes up the criteria.

    Now I can have a mix of data validation or "free" fields, or just one criteria and returns correct results.

    Only thing you have to make sure of is that a cell is cleared using backspace to the start of the cell, if not it thinks there is something there and returns empty headers. That's it.

+ 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. excel 2010 - reasons why advanced filter returns ALL ROWS and not criteria set?
    By wyattea in forum Excel Programming / VBA / Macros
    Replies: 33
    Last Post: 09-13-2013, 08:38 PM
  2. Advanced filter, criteria Blank Cell
    By ste_mulv in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 05-09-2013, 07:47 AM
  3. Advanced Filter Macro (only returns column headings)
    By Mufasta in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-06-2011, 11:56 AM
  4. Advanced Filter - Unique Values Macro Returns 1st Value Twice
    By r101 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 01-11-2011, 05:53 PM
  5. Advanced Filter - unique cell value as one of the criteria
    By efm in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 05-20-2010, 03:43 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