How to Find Multiple Values in Excel: Find All, FILTER, XLOOKUP and More

To find every cell that holds a value in Excel, press Ctrl + F (Control + F on a Mac), type the value and select Find All. Excel lists every match with its sheet, cell and value. To pull out every matching row instead, use the FILTER function in Excel 2021, Excel 2024 or Microsoft 365, for example =FILTER(A2:D20,C2:C20="Laptop","No matches"). FILTER can also match several values at once, with AND or OR conditions.

This guide covers five methods: Find All, FILTER (with one value, with AND and OR conditions, and with a whole list of values), XLOOKUP for a single match on two criteria, COUNTIF to check whether values are in a list, and conditional formatting to highlight a list of values. A table at the end helps you pick the right one.

The examples use a small sales table in A1:D20: Region in column A, Salesperson in column B, Product in column C and Sales in column D, with headings in row 1.

Method 1: Find All to list every match

Find All is the quickest way to see where a value appears.

On Windows

  1. Press Ctrl + F, or select Home > Editing > Find & Select > Find.
  2. Type the value in Find what.
  3. Select Options>> to see more settings (covered below).
  4. Select Find All. A list of every matching cell appears at the bottom of the dialog.
  5. Select a result to jump to that cell. Select a column heading in the list, such as Cell or Value, to sort the results.
Find All results in Excel
Find All lists the three North entries in this fictional Sales sheet: A2, A4 and A7. Select a result to jump to its cell, or select a result-column heading to sort the list.

On a Mac

  1. Press Control + F, or select Home > Find & Select > Find. There’s no Editing group on the Mac ribbon.
  2. Type the value and select Find All. Excel shows the matching cells and the total number found.

On a Mac, Command + F opens the search bar instead of the full Find dialog.

Find options worth knowing

  • Within: choose Sheet or Workbook. Pick Workbook to search every sheet at once.
  • Look in: Formulas, Values, Notes or Comments.
  • Match case: tick it to make the search case sensitive, so “North” doesn’t match “north”.
  • Match entire cell contents: tick it so “North” doesn’t also match “Northeast”.
  • Format (Windows): find cells with a certain format, such as a fill color.

The Mac dialog has Within, Search, Look in, Match case and Match entire cell contents, but no Format option.

Use wildcards to find similar values

Wildcards let one search catch several related values:

  • ? stands for any single character. sm?th finds “smith” and “smyth”.
  • * stands for any number of characters. *east finds “Northeast”, “Southeast” and “East”.
  • ~ before ?, * or ~ finds that character itself. ~* finds a real asterisk.

Find searches for one term at a time, so it can’t look for “North” and “South” in the same search. If you need several different values at once, use FILTER or conditional formatting below. Microsoft’s guide to finding or replacing text and numbers on a worksheet covers every option in the dialog.

Method 2: FILTER to return every matching row

FILTER copies every matching row to a new place and updates when your data changes. It’s available in Excel for Microsoft 365, Excel 2024 and Excel 2021 (on Windows and Mac), and in Excel for iPad, iPhone and Android. Excel 2019 and earlier don’t have it.

The syntax is =FILTER(array,include,[if_empty]):

  • array is the range you want back, such as the whole table.
  • include is the condition each row must meet.
  • if_empty (optional) is what to show when nothing matches.

Return all rows for one value

  1. Select an empty cell with plenty of blank space below and to the right, for example M2.
  2. Type =FILTER(A2:D20,C2:C20="Laptop","No matches") and press Enter.
FILTER results spilling from cell M2
Leave empty space for FILTER to spill from M2. Columns E:K are hidden here so the source A:D and results M:P can be shown together.

Every row where the product is Laptop appears, starting in M2. The results “spill” into the cells below and to the right, so you only type the formula once. If your data is an Excel table and you refer to it by its table name, the results grow and shrink as you add or remove rows.

Instead of typing the value into the formula, put it in a cell, such as H1, and use =FILTER(A2:D20,C2:C20=H1,"No matches"). Then you can change H1 to look up a different product without editing the formula.

Match two conditions at once (AND)

To return rows that meet both conditions, put each condition in brackets and multiply them with *:

=FILTER(A2:D20,(C2:C20=H1)*(A2:A20=H2),"No matches")

With Laptop in H1 and North in H2, this returns only laptop sales in the North region. You can add a third condition the same way.

Conditions can compare numbers too. =FILTER(A2:D20,(C2:C20="Laptop")*(D2:D20>=500),"No matches") returns laptop sales of 500 or more. See how to use the >= operator in Excel for more on comparison operators.

Match either condition (OR)

To return rows that meet at least one condition, add the conditions with + instead:

=FILTER(A2:D20,(C2:C20="Laptop")+(C2:C20="Monitor"),"No matches")

This returns every Laptop row and every Monitor row. It’s how you find several different values in one formula, something Find can’t do.

Match any value from a list

If you have more than two or three values to find, typing a + condition for each gets long. Put the values in a list instead, for example in J2:J5, and let COUNTIF check each row against it:

=FILTER(A2:D20,COUNTIF(J2:J5,C2:C20)>0,"No matches")

COUNTIF counts how many times each product appears in your list. Any row with a count above 0 is returned. Add or change values in J2:J5 and the results update.

What if nothing matches?

If no rows meet the condition and you left out the if_empty argument, FILTER shows a #CALC! error, because Excel doesn’t support empty results. Add a third argument such as "No matches" or "" to show a message or nothing instead. Microsoft’s FILTER function page has more examples.

Method 3: XLOOKUP for one match on two criteria

XLOOKUP is the right tool when you want a single answer, such as “What did Sam sell in the North region?” Microsoft says XLOOKUP returns the item for the first match it finds, so if several rows match, you only get the first one. XLOOKUP can return several columns from that one row, but not several rows.

The syntax is =XLOOKUP(lookup_value, lookup_array, return_array, [if_not_found], [match_mode], [search_mode]).

Look up with two criteria

To match on two columns, join the two values you’re looking for and join the two columns you’re searching. Add a separator such as a pipe character between them:

=XLOOKUP(H1&"|"&H2,A2:A20&"|"&B2:B20,D2:D20,"Not found")

With North in H1 and Sam in H2, this returns the sales figure from the first row where the region is North and the salesperson is Sam. The separator matters. Without it, “AB” and “C” join to “ABC”, the same as “A” and “BC”, so the formula could match the wrong row.

Useful XLOOKUP options

  • if_not_found: text to show when there’s no match, such as "Not found", instead of an error.
  • match_mode: set it to 2 to allow wildcards such as * in the lookup value.
  • search_mode: set it to -1 to search from the last row up, which returns the last match instead of the first.

XLOOKUP isn’t available in Excel 2016 or Excel 2019, even though the help page’s Applies To list includes them. Use Excel 2021 or later, or Microsoft 365. Microsoft’s XLOOKUP function page explains each argument. VLOOKUP and INDEX with MATCH also return a single value, as Microsoft’s overview of looking up values with VLOOKUP, INDEX or MATCH shows.

Method 4: COUNTIF to check whether values are in a list

Sometimes you don’t need the matching rows, just a yes or no: “Is this customer on the list?” COUNTIF answers that in any version of Excel.

The syntax is COUNTIF(range, criteria). It counts the cells in the range that match the criteria. For example, =COUNTIF(A2:A5,"apples") returns 2 if “apples” appears twice.

Check one value

=COUNTIF(C2:C20,"Laptop")>0 returns TRUE if Laptop appears anywhere in C2:C20 and FALSE if it doesn’t. Any count above 0 means the value is there.

Check a whole list of values

  1. Put the values you’re looking for in a column, for example J2:J10.
  2. In K2, type =IF(COUNTIF($C$2:$C$20,J2)>0,"Found","Not found").
  3. Drag the fill handle down to K10.

Each value in your list now shows Found or Not found. The dollar signs keep the search range fixed while you copy the formula down.

COUNTIF has a few limits. It uses only one condition, so for two or more conditions use COUNTIFS. Its matching isn’t case sensitive, so “laptop” and “Laptop” count the same. It also gives wrong results for text longer than 255 characters. Microsoft’s COUNTIF function page lists the common problems.

Method 5: Highlight a list of values with conditional formatting

If you want to see every match in place, in your original data, use conditional formatting. It highlights cells that contain any value from a list, and it updates when you change the list.

  1. Put the values to find in a list, for example F2:F10.
  2. Select the cells to search, for example A2:A20, starting with A2.
  3. Select Home > Conditional Formatting > New Rule.
  4. Choose Use a formula to determine which cells to format.
  5. In Format values where this formula is true, type =COUNTIF($F$2:$F$10,A2)>0.
  6. Select Format, pick a fill color, and select OK twice.

Every cell in A2:A20 that matches a value in your list is now highlighted. The formula must start with = and return TRUE or FALSE. Write it for the first cell of your selection (A2, with no dollar signs) and Excel adjusts it for each cell.

To highlight the whole row instead of one cell, select A2:D20 and use =COUNTIF($F$2:$F$10,$A2)>0. The dollar sign before A keeps every cell in the row checking column A.

Highlight values that appear more than once

To find values that are repeated within the same column, you don’t need a list. Select the range, then choose Home > Conditional Formatting > Highlight Cells Rules > Duplicate Values. Microsoft’s formula version of this is =COUNTIF($A$2:$A$400,A2)> 1. Microsoft’s guide to using conditional formatting to highlight information covers the other rule types.

Which method do you need?

You want toUseExcel versions
See where one value appears, across a sheet or workbookFind AllAll versions, Windows and Mac
Copy every matching row to a new placeFILTERExcel 2021, 2024 and Microsoft 365
Return rows matching two or more conditions, or one of several valuesFILTER with * (AND) or + (OR)Excel 2021, 2024 and Microsoft 365
Get one result based on two criteriaXLOOKUP with joined criteriaExcel 2021, 2024 and Microsoft 365
Check whether values are on a listCOUNTIFAll versions
Highlight matches in your original dataConditional formatting with COUNTIFAll versions

Common problems

  • FILTER shows #CALC! Nothing matched and there’s no if_empty argument. Add one, such as "No matches", and check your conditions for typos or extra spaces.
  • FILTER results don’t appear. The results need empty cells to spill into. If cells below or to the right of the formula aren’t empty, Excel shows an error instead. Clear those cells or move the formula.
  • Excel doesn’t recognize FILTER or XLOOKUP. You’re on Excel 2019 or earlier. Use Find All, COUNTIF or conditional formatting, which work in every version, or upgrade to a newer version.
  • Find misses values you can see. Check Look in: Formulas finds what’s typed in the cell, not the result a formula shows. Also check that Match entire cell contents and Match case aren’t ticked by mistake, and that Within is set to Workbook if the value could be on another sheet.
  • Conditional formatting highlights nothing. Check that the formula refers to the first cell of your selection and that the list range has dollar signs, such as $F$2:$F$10. Cells where the formula gives an error aren’t formatted.

Questions

Can I search for several different values at once with Ctrl+F?

No. Find searches for one term at a time, though wildcards can catch similar values, such as *east for every region ending in “east”. For different values, use FILTER with + or a list, or highlight them with conditional formatting.

How do I return all matches for a lookup instead of the first one?

Use FILTER, for example =FILTER(D2:D20,B2:B20="Sam","None") to list every sales figure for Sam. VLOOKUP, INDEX with MATCH and XLOOKUP all return a single match.

Does Find All work on a Mac?

Yes. Press Control + F to open the Find dialog, type the value and select Find All. Excel lists the matching cells and how many it found. The Mac dialog has fewer options than Windows, but Match case and Match entire cell contents are there.

About the author

Matt Williams is the writer and editor behind TechInfoHome. He holds a degree in computer science and has more than 10 years of experience working in IT. More about TechInfoHome.