Function Problems

Find Excel Cells Containing Multiple Search Terms

Steven ParkerSteven Parker Nov 18, 2026 869 views

Question details

Find cells in a large Excel file-path index that contain two search terms, even when the terms are separated.

Find Excel Cells Containing Multiple Search Terms
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.
Before you start

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.

Solution 1Recommended

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.

1
Enter the formula

In an empty cell on row 2, enter =ISNUMBER(SEARCH("3x",A2))*ISNUMBER(SEARCH("Stickers",A2)).

2
Fill down the column

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.

3
Filter the matches

Select the header row, choose Data > Filter, and use the helper column's filter arrow to display only 1.

4
Search for another combination

Replace the quoted terms in the formula with your desired terms, such as "Filename" and ".PDF", and fill the updated formula down.

Use a helper formula to identify cells containing both terms
Large datasets: Hundreds of thousands of formulas can slow recalculation. For repeated searches on very large indexes, consider Power Query or a database-style search. SEARCH treats * and ? as wildcards; prefix them with ~ to search for literal characters.
Search in WPS Spreadsheet

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. 1. Open the workbook: Open WPS Spreadsheet and choose Open to select your Excel workbook.
  2. 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. 3. Fill down: Drag the formula cell's fill handle down alongside the path list. Matching rows return 1.
  4. 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.
Find separated terms in the same file pathOpen and edit Microsoft Excel XLSX and XLS filesUse familiar formulas and column filtersWork with a free, easy-to-use office suite
microsoft office alternative - wps office

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.