Filter function multiple criteria same column (partial match)

Bound4Glory

New Member
Joined
Jun 21, 2020
Messages
18
Office Version
  1. 365
Platform
  1. Windows
Hi,
I need to filter for two partial matches from the same column.

In the example below, I need to filter for "*99P07H*" and "*08865*" under Column A (Barcode)


BarcodeTrailerRouteTrip
99P180--13131KNXK-0240280182099T000000824466002B45F6EF
99P07H--13131KNX2-0241282472699T000000824466002B45F6EF
99M20064335001166836399V3H3V452C7JT320535070M67119
99M20064335001165499799V3H3V452C7JT320535070M67119
99M20064335001150886599V3H3V452C7JT320535070M67119
99M20064335001159757999V3H3V452C7JT320535070M67119

I'm not sure what I'm doing wrong, been trying various formulas but keep getting errors.
=FILTER(A:D, ISNUMBER(SEARCH({"*99P07H*","*08865*"}, A:A)))

Thank you,
Shaun
 

Excel Facts

Copy PDF to Excel
Select data in PDF. Paste to Microsoft Word. Copy from Word and paste to Excel.
Until a more elegant solution comes along, this might work for you:
Book1
ABCDEFGHI
1BarcodeTrailerRouteTripBarcodeTrailerRouteTrip
299P180--13131KNXK-0240280182099T000000824466002B45F6EF99P07H--13131KNX2-0241282472699T000000824466002B45F6EF
399P07H--13131KNX2-0241282472699T000000824466002B45F6EF99M20064335001150886599V3H3V452C7JT320535070M67119
499M20064335001166836399V3H3V452C7JT320535070M67119
599M20064335001165499799V3H3V452C7JT320535070M67119
699M20064335001150886599V3H3V452C7JT320535070M67119
799M20064335001159757999V3H3V452C7JT320535070M67119
8
Sheet1
Cell Formulas
RangeFormula
F1:I1F1=A1:D1
F2:I3F2=FILTER(A:D,(LEFT(A:A,6)="99P07H")+(RIGHT(A:A,5)="08865"))
Dynamic array formulas.
 
Upvote 0

Forum statistics

Threads
1,215,129
Messages
6,123,218
Members
449,091
Latest member
jeremy_bp001

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