In Microsoft Excel, you can use computed criteria to filter or extract
all records from a list or database where a particular text string is
contained in a given column.
Start Excel, and then create the following spreadsheet:
A1: Name B1: C1: Name
A2: John B2:
A3: Sue
A4: Maryjo
A5: Bill
Type the following equation into cell B2 to search for the text string "Jo"
=SEARCH("Jo",A2)
where A2 is the first cell (not including the field name) in the column where the text string may occur.
Select the list range A1:A5.
On the Data menu, point to Filter, and then click Advanced Filter.
Click OK in the dialog box telling you that no headers are detected.
Under Action, click Copy to another location.
In the Criteria range box, type B1:B2.
NOTE: The criteria name in the first row of the criteria range (cell B1) can be any name except the name of a database field; if you use the name of a database field, Excel interprets the criteria as comparison criteria. You may also leave the cell blank, as shown in this example.