Smart Systems for Home

Plain how-to guides for smart home, security and home Wi-Fi

Excel: Search in Formulas and Values

· 7 min read · Home Tech

In this article
  1. What You'll Need
  2. Step-by-Step
  3. Common Mistakes
  4. Tips
  5. Troubleshooting
  6. Frequently Asked Questions

Excel’s built-in Find feature only looks at the visible result of a cell by default, so if you need to locate a formula that contains a specific function, reference, or operator, or you want to search only within formulas and not the values they return, you have to change a single setting. This guide shows you exactly how to do that, plus how to search across values, formulas, and even comments, and how to handle cases where the standard Find tool isn’t enough.

What You'll Need

  • A Windows or Mac computer with Microsoft Excel (2016, 2019, 2021, or Microsoft 365). The steps are nearly identical in all modern versions.
  • The workbook you want to search in, open and ready.
  • Basic familiarity with opening the Find dialog (Ctrl+F on Windows, Cmd+F on Mac).

Step-by-Step

  1. Open the Find and Replace dialog. Press Ctrl+F (Windows) or Cmd+F (Mac). Alternatively, go to the Home tab, click Find & Select in the Editing group on the far right, and choose Find.
  2. Click “Options” to expand the dialog. In the Find and Replace window, click the Options button in the bottom-left corner. This reveals extra fields, including the crucial “Look in” dropdown.
  3. Change “Look in” to “Formulas”. Find the dropdown that says “Look in” (it defaults to “Formulas” already, but confirm it). This setting tells Excel to search the underlying formula text, not the displayed value. For example, if a cell contains =A1*2 and displays 10, searching for “A1” will find it only when “Look in” is set to Formulas.
  4. Type what you want to find. Enter the text, function name, cell reference, or operator you’re looking for. For example, type SUM to find all cells with a SUM function, or type $A$1 to find absolute references to cell A1.
  5. Set the search scope. In the “Within” dropdown, choose Sheet to search only the current worksheet, or Workbook to search all sheets in the file.
  6. Choose the search direction (optional). The “Search” dropdown lets you pick “By Rows” or “By Columns”. This only affects the order in which results are highlighted, not what is found.
  7. Enable “Match entire cell contents” (optional). Check this box if you want to find cells where the entire formula equals your search term. For instance, searching for =A1 with this checked will only match cells whose formula is exactly =A1, not =A1+B1.
  8. Click “Find Next” or “Find All”. “Find Next” jumps to each match one at a time. “Find All” lists every match in a panel at the bottom of the dialog, showing the cell address, the formula, and the sheet name. Clicking any item in that list jumps to that cell.
  9. To search values instead, change “Look in” to “Values”. If you want to find cells by what they display (e.g., the number 10), set “Look in” to “Values”. This is the default behavior in many other applications, but Excel defaults to Formulas, so always check this setting.
  10. Use wildcards for partial matches. In the “Find what” box, you can use * to represent any sequence of characters and ? to represent a single character. For example, SUM* finds all formulas starting with SUM. To search for an actual asterisk or question mark, precede it with a tilde (~), like ~*.
  11. Close the dialog when done. Press Esc or click Close to exit the Find dialog and return to your worksheet.

Common Mistakes

  • Forgetting to change “Look in”. The most common error is leaving “Look in” set to “Formulas” when you actually want to search displayed values, or vice versa. Always verify this dropdown before searching.
  • Searching for the displayed value in formulas. If a cell shows 10 but the formula is =A1*2, searching for 10 with “Look in” set to Formulas will not find it. You must set “Look in” to Values.
  • Not using wildcards correctly. Searching for SUM will match SUM, SUMPRODUCT, and SUMIF because Find matches partial text by default. If you only want exact matches, check “Match entire cell contents”.
  • Searching only the current sheet. If you expect to find a formula on another sheet, remember to change “Within” to “Workbook”.
  • Ignoring case sensitivity. Excel’s Find is case-insensitive by default. If you need case-sensitive matching, you must use a formula-based approach (see Tips).

Tips

  • Use “Find All” for a complete list. Instead of clicking “Find Next” repeatedly, click “Find All” to see every match in one list. You can then click any result to jump to it, and you can even select multiple results in the list to edit them all at once.
  • Search for cell references with dollar signs. To find absolute references, type $A$1 exactly as it appears in the formula bar. Searching for A1 will also match $A$1 because the dollar signs are ignored unless you include them.
  • Use the formula bar to verify. When you land on a match, look at the formula bar to confirm the formula contains your search term. This helps avoid confusion when a cell’s displayed value doesn’t obviously relate to the formula.
  • For case-sensitive searches, use a helper column. If you need to find formulas containing a specific text string with exact case, you can use a formula like =ISNUMBER(SEARCH("sum",FORMULATEXT(A1))) in a helper column, then filter for TRUE. The FORMULATEXT function returns the formula as text.
  • Search comments and notes too. The “Look in” dropdown also includes “Comments” and “Notes” options. Use these if you need to find text inside cell comments or threaded notes.
  • Save before doing global replacements. If you plan to use “Replace All”, make a backup copy of your workbook first. A single incorrect replacement across a large dataset can be difficult to undo.

Troubleshooting

  • Find returns no results, but you know the text exists. Check the “Look in” setting. If you’re searching for a value like 10 but the cell contains a formula, you need “Look in” set to “Values”. Conversely, if you’re searching for a function name like IF, set it to “Formulas”. Also check that “Within” is set to “Workbook” if the text might be on another sheet.
  • Find finds too many matches. This usually happens because Find matches partial text. For example, searching for SUM matches SUMIF, SUMPRODUCT, and SUMIFS. Use “Match entire cell contents” or refine your search term with wildcards (e.g., SUM( to match only the SUM function call).
  • The Options button is missing. In some Excel versions, the Options button is hidden until you click the small downward arrow at the bottom-right of the dialog. If you don’t see it, look for a “>>” symbol.
  • Find All list is empty, but you see the value on screen. This can happen if the value is a result of a formula and “Look in” is set to “Formulas”. Change “Look in” to “Values” and try again.
  • You need to search for a formula that contains an error. To find cells with errors like #DIV/0! or #VALUE!, use the “Go To Special” feature (Home > Find & Select > Go To Special > Formulas, then check “Errors”). The Find dialog won’t directly search for error types.
  • Excel is slow when searching a large workbook. Limit the search to a single sheet by setting “Within” to “Sheet”. Also, close other heavy applications to free up memory. If the workbook has many volatile functions, consider disabling automatic calculation temporarily (Formulas > Calculation Options > Manual) before searching.

Frequently Asked Questions

Q: Why does Excel search formulas by default instead of values?
Excel’s Find tool defaults to “Look in: Formulas” because that is often what power users need when auditing a spreadsheet. The displayed value is just the result of the formula, so searching the formula text lets you locate the logic behind the numbers. You can easily switch to “Values” in the Options panel.

Q: Can I search for a cell reference like A1 without finding A10 or A11?
Yes. Use the “Match entire cell contents” checkbox, but note that this will only match cells whose entire formula is exactly A1. A better approach is to search for A1 and then manually review the results, or use wildcards like A1? to exclude A10–A19. For precise matching, you may need to use a formula with FORMULATEXT and EXACT.

Q: How do I find all cells that contain a formula at all?
Use the Go To Special feature: press F5 or Ctrl+G, click Special, choose Formulas, and check any of the boxes (Numbers, Text, Logicals, Errors). This selects all cells with formulas, even if they return different types of results.

Q: Can I search for formulas across multiple workbooks?
No, Excel’s Find tool only searches within the currently open workbook. To search across multiple files, you would need to open each workbook and run the search, or use a third-party add-in. There is no built-in cross-workbook search.

Q: Is there a way to search for formulas that contain a specific function, like VLOOKUP?
Yes. Open Find (Ctrl+F), set “Look in” to “Formulas”, and type VLOOKUP in the “Find what” box. Because Find matches partial text, it will also find VLOOKUP inside other functions like IFERROR(VLOOKUP(...)). To find only formulas that start with VLOOKUP, use =VLOOKUP as your search term.

Q: Why does Find not find text that appears in a cell comment?
By default, “Look in” is set to “Formulas” or “Values”, not “Comments”. To search comments, change the “Look in” dropdown to “Comments” (or “Notes” in newer versions). You can also use “Find All” to see a list of matching comments across the sheet.