Advanced Filter Wildcard using Formula

pto160

Active Member
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
1Column A
2adfd dog g
3dfdf green gfdf
4sghwfh cat fdfd
5fafad mouse fdfd
6
7
8 Criteria
9GreenFALSE
10Mouse

<colgroup> <col style="WIDTH: 30px; FONT-WEIGHT: bold"> <col style="WIDTH: 87px"> <col style="WIDTH: 64px"></colgroup> <tbody>
</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?

 

Marcelo Branco

MrExcel MVP
Try this

Before filter


A
B
1
Text​
2
adfd dog g​
3
dfdf green gfdf​
4
sghwfh cat fdfd​
5
fafad mouse fdfd​
6
7
8
Criteria​
Formula​
9
Green​
FALSE​
10
Mouse​

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


A
B
1
Text​
3
dfdf green gfdf​
5
fafad mouse fdfd​
6
7
8
Criteria​
Formula​
9
Green​
FALSE​
10
Mouse​

[/tr]



[/tr]



Hope this helps

M.
 

pto160

Active Member
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. :)
 

Some videos you may like

This Week's Hot Topics

  • Importing multiple excel files into one spreadsheet
    Hi, I'm trying to import multiple excel files (with the same format into a single spreadsheet) so that each day's file is listed underneath the...
  • find many based on a certain criteria
    good evening, I hope someone can help me? I have a workbook sheet 2 contains lots of data.... I would like to be able to find anything on sheet...
  • How to copy multiple rows using If
    Hi all, I'm very new to VBA and have written this simple code to copy certain cells if a certain cell within that row contains any data. I need...
  • VBA If statement
    Dear All, I have two dates, where I'd like a message box to pop, if the dates are between this criteria. [CODE] sDate1 = #10/1/2019#...
  • Text Format
    I have a sheet for user to keyin the data. The format of the data can be 451 / 1903, 0012 / 9908 or 00287 / 0099. The number after the "/" is...
  • Syntax errors
    Good Morning, Trying to compile a workbook, I keep getting a few errors. Here are the first two: [code=rich]Syntax Error: Function...
Top