Advanced Filter--Blanks

kevinonexcel

New Member
Joined
Jul 15, 2010
Messages
13
Hello,

I am using an advanced filter for a large database. The filter criteria are dependent upon another worksheet. In some cases the criteria in a column is blank. This is done by using an IF function and "". When ever a column is blank, I don't want their to be any criteria is that column. However, whenever I try filtering a case with a blank no solutions appear even though their are valid options. Do I need to add something between my quotations to filter a blank?

Thanks for any help
 

Some videos you may like

Excel Facts

Control Word Wrap
Press Alt+Enter to move to a new row in a cell. Lets you control where the words wrap.

BobUmlas

Well-known Member
Joined
Mar 14, 2002
Messages
1,170
Use a computed criteria -- if the column of data which you're checking for is A, then have a formula like this
=LEN(A2)=0
in H2, for example, and use H1:H2 as the criteria range (where H1 is blank)

Bob Umlas
Excel MVP
 

BobUmlas

Well-known Member
Joined
Mar 14, 2002
Messages
1,170
using just = as the criteria will NOT find cells which evaluate to this blank:
=IF(A33=5,4,"")
 

kevinonexcel

New Member
Joined
Jul 15, 2010
Messages
13

ADVERTISEMENT

Thank you for the response,

I tried it but it didn't work

The database has several columns with x's when the row is valid for the column's criteria. Here is an example of the formula in one cell of the criteria.

When sheet1E5 does not have a value of "Products", "=" appears in the cell but the filter returns no matches even though their are matches

HTML:
=IF(Sheet1!$E5="Products","x","=")
 

kevinonexcel

New Member
Joined
Jul 15, 2010
Messages
13

ADVERTISEMENT

Thank you for the responses-- still no luck tho.

I tried using the LEN function and that returns True or False. If it could return an X then it might be usefull to me.

I also tried using "=""" and it just returned =".

Any more ideas would be appreciated
 

Subscribe on YouTube

Watch MrExcel Video

Forum statistics

Threads
1,106,597
Messages
5,512,327
Members
408,886
Latest member
kashifziatevta423

This Week's Hot Topics

  • Sort code advice please
    Hi, I have the code below which im trying to edit but getting a little stuck. This was the original code which worked fine,columns A-F would sort...
  • SUMPRODUCT with nested If statement
    Hi everyone, Hope you're all well. I'm hoping someone will be able to point me in the right direction with a problem I'm having with a SUMPRODUCT...
  • VBA - simple sort is killing me!
    Hello all! This should be so easy, but not for me, apparently! I have a table of data that can be of varying lengths and widths. My current macro...
  • Compare Two Lists
    I have two Lists and I need to be able to Identify differences between them. List 100 comes from a workbook - the other is downloaded form the...
  • Formula that deducts points for each code I input.
    I am trying to create a formula that will have each student in my class start at 100 points and then for each code that I enter (PP for Poor...
  • Conditional formatting formula required for day of week and a value
    Hi, I have a really simple spreadsheet where column A is the date, column B is the activity total shown as a number and column C states the day of...
Top