Link to home
Start Free TrialLog in
Avatar of Steve_Brady
Steve_BradyFlag for United States of America

asked on

Designate empty cells when filtering in Excel

Hello,

When using advanced filtering in Excel (2007), what entry in the Criteria area will result in displaying all rows which have empty cells in the corresponding column?

I have tried:    =""    and    <>*    and neither produce the correct result.

Thanks
Avatar of jimyX
jimyX

use:
="="""""
or,
 <>"="""""

http://www.mrexcel.com/archive/Data/3253.html
Here's a good reference for tips on advanced filters...http://www.contextures.com/xladvfilter02.html

if C1 is blank and C2 has the formula ="" it should be true.

Dave
or if C1 is blank, isblank(c1) will return true as well - a bit easier than counting quotation marks :)

Dave
Highlight the entire range and then you will get the blank option :)

Please see snapshot.

Sid
Untitled.jpg
The =C2="" works.  Don't put a field name on the criteria (per the contextures link I sent).

Here's the starting point:
 User generated image
Here's the filter setup:
User generated image
Here's the result after running the advanced filter:
User generated image
See attached:

Enjoy!

Dave
AdvancedFilter-demo-r1.xlsx
so rather than ="", you need to reference the first row of the column you are filtering, and the filter will apply to the entire column.

Thus =C2="" is sufficient to set the critiera for blank cells in the C column.

Cheers,

Dave
Final comment -

=ISBLANK(C2) will work just as well as =C2=""

Dave
Avatar of Steve_Brady

ASKER

I appreciate the responses but for some reason your solutions are not reaching their destination (i.e. none of them work in my spreadsheet).  I have a hunch that the glitch is located somewhere in my gray matter.  :p  Therefore, to make it easier on my brain and less taxing for you, here is my question in pictures.

Suppose you have the table in Fig. 1
 User generated image
and you want to filter for enteries = Red in the first column (Fig. 2).
 User generated image
Fig. 3 shows that in your Advanced Filter box, the List Range is defined as B5:I16 and the Criteria Range is defined as B1:I2:
 User generated image
And sure enough, filtering results in only those rows with entries = Red in Col B remaining (Fig. 4).
 User generated image
Now, suppose you want to filter the same table for rows in which the Col B entry = Red and the Col G cell is empty or blank (Fig. 5).
 User generated image
Inspection before filtering reveals that only rows 6, 10, and 14 match these criteria (Fig. 6).
 User generated image
My question is:  What formula or value should be entered in Cell G2 so that filtering -- with the same List Range and Criteria Range as before (Fig. 7)
 User generated image
gives the desired result as shown in Fig. 8?
 User generated image
Thanks
But you original question was not that?

You wanted to filter blank cells and I gave you the solution with a snapshot :) ?

Sid
>>But you original question was not that?

You are correct.  My original question was this:

"When using advanced filtering in Excel (2007), what entry in the Criteria area will result in displaying all rows which have empty cells in the corresponding column?"

so just eliminate column B in the above example and then it will be exactly the same.

ASKER CERTIFIED SOLUTION
Avatar of dlmille
dlmille
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Gentlemen, as a final comment before I attempt, somehow, to close this thread and attempt, somehow, to expunge it from my memory, please read through the thread found here.  Thank you.
That was hilarious.  Did you see my last post just above?  All you need is the = sign?

Dave
dlmille:  All you need is the "=" sign.

Dave, thanks for the post.  Needless to say, I posted my previous comment prior to seeing yours so now I will at least know how to assign points.

:)
Oh - and by the way, my first response was correct as wel - with the dataset I provided the response was correct.  

Steve - when you provide a dataset it clearly helps the E-E expert in providing a more timeline and appropriate solution.

Dave
>>That was hilarious.

...and I just posted that before seeing that!
>>Oh - and by the way...

...and again, I just posted that before seeing that!
@Steve - sorry it took so long for me to get back to this thread.  I was in bed the last 48 hours with the flu.

I suggest never assigning points just to assign them.  You can request attention and ask for a question to be deleted if you believe the answers are unsupportive or you solved the problem through your own means.

Dave
>>dlmille:
=ISBLANK(C2) will work just as well as =C2=""

Dave, now I'm curious to know the function of the above solution because 1) I'd like to figure out how we got different meanings from my question, 2) I've never used =ISBLANK(), and 3) I want to learn as much as possible about filtering.

Thanks
>>never assigning points just to assign them

Thanks.  That's good to know.
Your original question:  When using advanced filtering in Excel (2007), what entry in the Criteria area will result in displaying all rows which have empty cells in the corresponding column?

BOTH my responses were based on the same question, but the second response was based on your data layout which conveyed much more meaning into your problem. And I could test with YOUR sample data to see if it worked.  I generally don't respond to questions unless I can prove my solution is correct.

BOTH my responses I also found alternative sources of documentation supporting my solution, and I provided those links - so these were not GUESSES at solutions.  However, sometimes we have to GUESS at what your data looks like. And SOMETIMES, its the data layout that makes all the difference!

My response - there are at least 2 ways to show rows with empty cells in a column.  

My first post showed that and =c2="" and =isblank(c2) would do the same.  I setup a sample dataset and demonstrated the veracity of that.

Today's post  is with column headers and multiple criteria - based on your submitted dataset, and it is correct as well, using = as the criteria.

Both work, and I provided datasets to prove it.

Cheers,

Dave
I guess I am late for the party...

>>so just eliminate column B in the above example and then it will be exactly the same.

@Steve: I see what you mean. I was using the normal filter as shown in my snapshot and you actually wanted "Advanced Filter". Sorry I misunderstood your question.

Sid