Find Excel Cells Containing Multiple Search Terms
Question details
Find cells in a large Excel file-path index that contain two search terms, even when the terms are separated.

- Product
- Microsoft Excel
- Device & OS
- not provided
- Scenario
- Search hundreds of thousands of file paths and names for combinations such as “Stickers” and “3x” or “Filename” and “.PDF”.
- Observed behavior
- Matching cells should contain both terms, in any order and at any distance from each other.
Identify the column containing the paths and confirm its header and first data row. The examples below assume the paths start in A2; adjust the cell references and range to match your worksheet.
Use a helper formula to identify cells containing both terms
Use this method when you want to flag matching rows and filter them in Excel.
SEARCH is case-insensitive, and multiplying the two test results returns 1 only when both terms are found. The terms can occur in either order.
In an empty cell on row 2, enter =ISNUMBER(SEARCH("3x",A2))*ISNUMBER(SEARCH("Stickers",A2)).
Use the cell's fill handle to copy the formula down alongside the paths. A result of 1 means both terms are present; 0 means at least one is missing.
Select the header row, choose Data > Filter, and use the helper column's filter arrow to display only 1.
Replace the quoted terms in the formula with your desired terms, such as "Filename" and ".PDF", and fill the updated formula down.

Return matching cells with the FILTER function
Use FILTER to produce a separate list of matching paths in a supported version of Excel.
Apply two text filters to the path column
Use Excel's custom text filter to display matching rows without adding formulas.
Find paths containing multiple terms in WPS Spreadsheet
Use a SEARCH formula and a column filter in WPS Spreadsheet to find paths containing both terms. WPS Office is a free, easy-to-use alternative with a familiar spreadsheet interface.
- 1. Open the workbook: Open WPS Spreadsheet and choose Open to select your Excel workbook.
- 2. Add the search formula: In an empty cell on the first data row, enter =ISNUMBER(SEARCH("3x",A2))*ISNUMBER(SEARCH("Stickers",A2)), adjusting A2 if needed.
- 3. Fill down: Drag the formula cell's fill handle down alongside the path list. Matching rows return 1.
- 4. Filter the results: Select the header row and choose Data > Filter. Open the helper column's filter arrow and select 1 to show matching rows.

Frequently Asked Questions
Do the search terms have to appear next to each other?
No. The SEARCH tests check for each term anywhere in the cell, so the terms can be separated and can appear in either order.
Is the SEARCH formula case-sensitive?
No. SEARCH ignores letter case, so searching for “.PDF” also matches “.pdf”. Use FIND instead of SEARCH if you need case-sensitive matching.
How can I count cells that contain both terms?
Use =SUMPRODUCT(ISNUMBER(SEARCH("3x",A2:A8))*ISNUMBER(SEARCH("Stickers",A2:A8))) and adjust A2:A8 to your data range.
Why doesn't FILTER work in Excel 2019?
Excel 2019 does not include the FILTER function. Use the helper-column formula and Data > Filter, or use a custom text filter instead.
Does searching for .PDF guarantee the path ends in .PDF?
No. SEARCH and the Contains text filter match .PDF anywhere in the cell. For a strict file-extension check, use an Ends With text filter or test the last four characters separately.




