Advanced Filter Criteria for Blanks and Nonblanks

pompita

New Member
Joined
Sep 14, 2006
Messages
24
Hi,

I apologize if this is somewhat of a repost. I've searched thoroughly for responses to my advanced filter issue and I seem to only come across responses for users of Excel 2003 and prior versions. I am using Excel 2007 and I wonder if the approach is different than older versions.

I am relatively new to Advanced Filters, but I understand the basics. My scenario is the following:

I have a list of data in cells A5:X7000 of Sheet1. My list headers are on row 5 of Sheet1. I have my criteria on Sheet2, cells A1:A2. On Sheet3, I would like to have a new, filtered list that includes all of the data on my Sheet1 list where the data in column A is a blank. Any nonblank cells in column A contain only text values. I have tried each of the following criteria to accomplish this with no luck.

=<>
<>
<>=
<>"="


So the question is three parts:

What is the necessary criteria for an advanced filter of the list on Sheet1 so that only data with NOTHING in column A is listed on Sheet3?

What is the necessary criteria for an advanced filter of the list on Sheet1 so that only data with A VALUE in column A is listed on Sheet3?

Does the response to the above two questions differ if the data in Column A is instead NUMERIC DATA (not text)?

I really am at a stopping point and I am having zero success with this last issue. Please help or let me know if I need to clarify anything.

Thanks for your help. I use this forum a ton, despite my infrequent postings.

Regards,
Alex
 
Last edited:

Excel Facts

Bring active cell back into view
Start at A1 and select to A9999 while writing a formula, you can't see A1 anymore. Press Ctrl+Backspace to bring active cell into view.
Sheet3

Leave A1 empty.

A2:

=Sheet1!$A6<>""

Select A1:A2, fire up Advaced Filter with List range, etc. fiiled in appropriately.
 
Upvote 0
In Sheet2! A1, enter the formula =Sheet1!A5
Sheet2! A2, the text '=?*

Select Sheet3 and press AdvancedFilter

Copy to another location
List Range: Sheet1!A5:X700
Criteria Range: Sheet2!A1:A2
Copy To: Sheet3!A1

If sheet 3 isn't active when AdvancedFilter is invoked, a misleading error message appears.
 
Upvote 0
I think both of these work. Mike, I like yours because it doesn't involve a formula. That's perfect.

I will now try and create a macro that performs an advanced filter on the defined criteria. Wish me luck!

Thanks for your help. I'll repost if I run into any issues.

Alex
 
Upvote 0
Hey Mike,

The format you provided works great with text, but it does not filter properly when the data is numbers, not text.

Any thoughts?
 
Upvote 0
No dice.

Is there anything else I can provide you to help in this exercise? Quite honestly, I have a few different criteria, all of which function perfectly thanks to your previous advice. This last one is the only hangup I have left.

I don't understand why it doesn't work. I even tried the following two criteria >0 and <=0 and it still shows me blank cells. Very frustrating.
 
Upvote 0
Similar to Alan's approach, try leaving Sheet2! A1 blank and put the formula
=NOT(ISBLANK(Sheet1!A2))
in Sheet2!A2 (no $ in the formula is important.)
 
Upvote 0

Forum statistics

Threads
1,215,008
Messages
6,122,672
Members
449,091
Latest member
peppernaut

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top