Advanced filter only show blanks

RockandGrohl

Well-known Member
Joined
Aug 1, 2018
Messages
810
Office Version
  1. 365
Platform
  1. Windows
Me again, Advanced filter problems again.

I'm trying to do this filter:

Brochure_RegionOptIn_NH_LandMailLast_BookedLast_BookedFamilyFunFamilyFunUKUKSportsSportsEventsEventsEUEUShowtimeShowtimeOptIn_ThirdParty
<>0<>0>=0<=1000000>=1<=10000"="

And I'm desperately trying to get "OptIn_ThirdParty" to show me blanks.

So the Sports column needs to have a value between 1 and 10,000, AND the OptIn_ThirdParty column needs to have a value of blank, which there are.

I should be getting 5,685 records, but instead I'm getting none.

It also doesn't work when I enter =, ="", "", <> or any other combination I can think of.

Thanks.
 

Excel Facts

What does custom number format of ;;; mean?
Three semi-colons will hide the value in the cell. Although most people use white font instead.
Apparently the only thing that works is =AH2=""

But that only works with a blank column heading. Surely there's a proper way of doing this. In the page where I learned this, How to Set Up Advanced Filter Criteria, it says

Option 2 - Filter for Blank Cells​


Use these criteria range settings to filter rows with blank cells


  • F1: Criteria Heading -- Product (this is an exact match for the column heading)
  • F2: Criteria: ="="

If I do this, zero records are returned, but by using =AH2="" it returns the correct amount of records.
 
Upvote 0
Ah.

The cells in column AH aren't blank. They are the result of formulas where one condition is a string and the other result of a condition is "".

Is there an easy to take a range, say, AH2:AH & Lastrow, and convert all fake blanks to true blanks? Thanks.
 
Upvote 0
I did this:

VBA Code:
Range("AH2:AH" & Lastrow).select
With Selection
    Selection.NumberFormat = "General"
    .Value = .Value
End With

That was quick and easy, now ="=" works. Solved!
 
Upvote 0
Solution

Forum statistics

Threads
1,224,830
Messages
6,181,227
Members
453,025
Latest member
Hannah_Pham93

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