Advanced Filter Wildcard using Formula

pto160

Active Member
Joined
Feb 1, 2009
Messages
482
Office Version
  1. 365
Platform
  1. Windows
I'm able to use advanced filter with wildcards that are values only.
How do you use wildcard advanced filter using a formula.

Sheet3

AB
Column A
adfd dog g
dfdf green gfdf
sghwfh cat fdfd
fafad mouse fdfd
Criteria
Green
Mouse

<colgroup> <col style="WIDTH: 30px; FONT-WEIGHT: bold"> <col style="WIDTH: 87px"> <col style="WIDTH: 64px"></colgroup> <tbody>
[TD="bgcolor: #cacaca, align: center"]1[/TD]

[TD="bgcolor: #cacaca, align: center"]2[/TD]

[TD="bgcolor: #cacaca, align: center"]3[/TD]

[TD="bgcolor: #cacaca, align: center"]4[/TD]

[TD="bgcolor: #cacaca, align: center"]5[/TD]

[TD="bgcolor: #cacaca, align: center"]6[/TD]

[TD="bgcolor: #cacaca, align: center"]7[/TD]

[TD="bgcolor: #cacaca, align: center"]8[/TD]

[TD="bgcolor: #cacaca, align: center"]9[/TD]

[TD="align: right"]FALSE
[/TD]

[TD="bgcolor: #cacaca, align: center"]10[/TD]

</tbody>

Spreadsheet Formulas
CellFormula
B9=ISNUMBER(MATCH("*"&A2&"*",$A$9:$A$10,0))

<tbody>
</tbody>

<tbody>
</tbody>


This formula does not work for looking up values using wildcards.

What's wrong with the formula?

 

Excel Facts

Create a chart in one keystroke
Select the data and press Alt+F1 to insert a default chart. You can change the default chart to any chart type
Try this

Before filter


[Table="class: grid"][tr][td] [/td][td]
A
[/td][td]
B
[/td][/tr]
[tr][td]
1
[/td][td]
Text​
[/td][td] [/td][/tr]


[tr][td]
2
[/td][td]
adfd dog g​
[/td][td] [/td][/tr]


[tr][td]
3
[/td][td]
dfdf green gfdf​
[/td][td] [/td][/tr]


[tr][td]
4
[/td][td]
sghwfh cat fdfd​
[/td][td] [/td][/tr]


[tr][td]
5
[/td][td]
fafad mouse fdfd​
[/td][td] [/td][/tr]


[tr][td]
6
[/td][td] [/td][td] [/td][/tr]


[tr][td]
7
[/td][td] [/td][td] [/td][/tr]


[tr][td]
8
[/td][td]
Criteria​
[/td][td]
Formula​
[/td][/tr]


[tr][td]
9
[/td][td]
Green​
[/td][td]
FALSE​
[/td][/tr]


[tr][td]
10
[/td][td]
Mouse​
[/td][td] [/td][/tr]
[/table]


Formula in B9
=ISNUMBER(LOOKUP(9.99E+307,SEARCH($A$9:$A$10,A2)))

Apply Advanced Filter
List range: $A$1:$A$5
Criteria range:$B$8:$B$9

After filter


[Table="class: grid"][tr][td] [/td][td]
A
[/td][td]
B
[/td][/tr]
[tr][td]
1
[/td][td]
Text​
[/td][td] [/td][/tr]
[/tr]


[tr][td]
3
[/td][td]
dfdf green gfdf​
[/td][td] [/td][/tr]
[/tr]


[tr][td]
5
[/td][td]
fafad mouse fdfd​
[/td][td] [/td][/tr]


[tr][td]
6
[/td][td] [/td][td] [/td][/tr]


[tr][td]
7
[/td][td] [/td][td] [/td][/tr]


[tr][td]
8
[/td][td]
Criteria​
[/td][td]
Formula​
[/td][/tr]


[tr][td]
9
[/td][td]
Green​
[/td][td]
FALSE​
[/td][/tr]


[tr][td]
10
[/td][td]
Mouse​
[/td][td] [/td][/tr]
[/table]


Hope this helps

M.
 
Upvote 0
Fantastic. This really helps. I spent a few hours today trying to figure this out. This will save me a lot of time at work. Thank you. :)
 
Upvote 0

Forum statistics

Threads
1,223,238
Messages
6,170,939
Members
452,368
Latest member
jayp2104

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