Advanced Filter to show all results, even rows with multiple blank cells

bellaexcel

New Member
Joined
Aug 14, 2018
Messages
10
I am trying to figure a way out to make advanced filter work by displaying results which has blank in them.
Currently, my advanced filter will only show results which are complete (rows which do not have any blank cells in them). I understand that you can use ="=" in the cell to showcase blank cell but for criterias which I leave blank, I would like my advanced filter's results to showcase both the blank results as well as results with answers.
For example:
I have these as my raw data:
F Name L Name Order Qty BirthPlace
John Wood 1 Texas
Pete Silva 2 NY
Jim Fox BF
Marc Phillips 2 Las Vegas
Louis Tyler 5 BF

When I input my criteria for BirthPlace to be "BF", only Louis Tyler will show up as his is a complete set but Jim Fox has a blank and thus he will not show up.
Any idea on what i can tweak in my formula to make the blanks i.e Jim Fox show up?
My current code is a simple one:
Sub GenerateData()
'
' GenerateData Macro
'


Sheets("Sheet1").Range("A1:Q3530").AdvancedFilter Action:=xlFilterCopy, _
CriteriaRange:=Range("C11:Q12"), CopyToRange:=Range("B14:R14"), Unique:= _
False
ActiveWindow.ScrollColumn = 1
End Sub




Thank you!
 

Excel Facts

Is there a shortcut key for strikethrough?
Ctrl+S is used for Save. Ctrl+5 is used for Strikethrough. Why Ctrl+5? When you use hashmarks to count |||| is 4, strike through to mean 5.
Apologies for the lack of paragraphing in the first post, i can't edit that post.

I am trying to figure a way out to make advanced filter work by displaying results which has blank in them.

Currently, my advanced filter will only show results which are complete (rows which do not have any blank cells in them). I understand that you can use ="=" in the cell to showcase blank cell but for criterias which I leave blank, I would like my advanced filter's results to showcase both the blank results as well as results with answers.

For example:
I have these as my raw data:

F Name L Name Order Qty BirthPlace
John Wood 1 Texas
Pete Silva 2 NY
Jim Fox BF
Marc Phillips 2 Las Vegas
Louis Tyler 5 BF

When I input my criteria for BirthPlace to be "BF", only Louis Tyler will show up as his is a complete set but Jim Fox has a blank and thus he will not show up.

Any idea on what i can tweak in my formula to make the blanks i.e Jim Fox show up?

My current code is a simple one:

Sub GenerateData()
'
' GenerateData Macro
'


Sheets("Sheet1").Range("A1:Q3530").AdvancedFilter Action:=xlFilterCopy, _
CriteriaRange:=Range("C11:Q12"), CopyToRange:=Range("B14:R14"), Unique:= _
False
ActiveWindow.ScrollColumn = 1
EndSub




Thank you!
 
Upvote 0

Forum statistics

Threads
1,216,119
Messages
6,128,947
Members
449,480
Latest member
yesitisasport

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