Excel Find and Replace: More Powerful Than You Think

Find and Replace in Excel is far more powerful than most users realise — it can search by formatting, across sheets, with wildcards, and inside formulas. They type a word, type a replacement, and click Replace All. That is useful. But Find and Replace is far more powerful than that. It can find values by formatting, search across sheets, use wildcards, find formulas instead of values, and clean up entire datasets in seconds.

In this article, I will cover the features that make Find and Replace a real tool, not just a search box. You will learn wildcards, formatting search, sheet scope, formula vs value search, and the small settings that make cleanup fast. These Find and Replace in Excel techniques work on real workbooks, so you can practise them straight away.

Find and Replace in Excel

Basic Find and Replace

Open it with Ctrl + H (or Ctrl + F for Find only). The Find tab has a search field, an optional Replace field, and a few options. Learning Find and Replace in Excel starts with this dialog.

The essentials:

  • Find what: the text to look for
  • Replace with: the text to replace with
  • Match case: distinguishes “North” from “north”
  • Match entire cell contents: only matches cells where the content is exactly the search text
  • Within: Sheet or Workbook
  • Look in: Formulas, Values, or Comments
  • Search: By Rows or By Columns
  • Match case and Match entire cell contents are the two options that most users miss.

Microsoft’s official guide, Find or replace text and numbers on a worksheet, covers the same dialog and options.

Wildcards

Excel’s Find and Replace supports three wildcards:

  • * matches any number of characters
  • ? matches exactly one character
  • ~ escapes a wildcard character (so ~* finds a literal asterisk)

Example: Find “Chair*” matches “Chair”, “Chairman”, “Chair (Wood)”. Find “Ch?ir” matches “Chair”, “Cheir” (if such a thing existed), but not “Chairman” — because ? matches exactly one character.

Wildcards are powerful for cleanup. Suppose you have values like “Product A”, “Product B”, “Product C”, and you want to find all of them. Search for “Product*”. Or if you want to replace all values that start with “Product” and end with “123”, use “Product*123”. That is why Find and Replace in Excel is so useful for bulk cleanup.

Common wildcard uses:

  • Replace multiple spaces with a single space: find ” ” (two spaces), replace with ” ” (one space). Repeat until no more matches.
  • Remove trailing spaces: find ” *”, replace with “” — but be careful, this also removes leading spaces.
  • Standardize IDs that contain hyphens and spaces: find a pattern like “ID-###” and replace with a standard format.

Wildcards in Replace

Wildcards also work in the Replace field, but not the way you might expect. If you search for “Product*” and replace with “Item*”, the * in the replace field is treated as a literal asterisk, not as a wildcard. This is a common confusion.

To replace with variable content, you need a different tool — either formulas or regular expressions. Find and Replace can only replace with fixed text. For pattern-based replacement, use SUBSTITUTE, TEXTBEFORE/TEXTAFTER, or Power Query.

Match Entire Cell Contents

This is the option most users overlook. When checked, Find and Replace only matches cells where the entire content equals the search text. When unchecked, it matches any cell that contains the search text.

Example: You have a column with values like “North”, “North-East”, “North-West”. Search for “North”.

  • Match entire cell contents OFF: finds all three (North, North-East, North-West).
  • Match entire cell contents ON: finds only “North”.

This matters when you want to replace just the exact value, not all cells containing it. Using Find and Replace in Excel this way prevents accidental replacements.

Match Case

Case sensitivity is off by default. “North” matches “north”, “NORTH”, and “North”. Turn on Match case to search only the exact case.

This is useful for:

  • Fixing inconsistent capitalization (find “excel”, replace with “Excel”)
  • Distinguishing IDs where case matters
  • Cleaning up names with mixed case

Search by Rows vs Columns

For large sheets, Search by Rows or Search by Columns affects the order in which matches are found. For most users, the default is fine. But when you want to find matches in a specific order (top to bottom, or left to right), the setting matters.

Within: Sheet vs Workbook

By default, Find and Replace searches the active sheet only. Change Within to Workbook to search across all sheets. This is useful for:

  • Finding a specific value in a multi-sheet workbook
  • Cleaning up the same typo in every sheet
  • Locating where a specific formula or value appears

When you search within the workbook, Excel shows the sheet name next to each match, so you know where it was found. Find and Replace in Excel can search a whole workbook in one pass.

Look in: Formulas, Values, or Comments

This setting changes what Excel searches:

  • Formulas: searches the formula text, not the computed result. Useful for finding cells that contain a specific function or reference.
  • Values: searches the displayed value. This is the default and the most common.
  • Comments: searches only comments. Useful for finding notes left in a file.

Example: Find every cell that contains VLOOKUP.

  • Ctrl + H
  • Look in: Formulas
  • Find what: VLOOKUP

Excel jumps through each cell with a VLOOKUP formula. This is a useful way to audit which formulas are used in a workbook. With Find and Replace in Excel, you can audit formulas quickly.

Example: Find every cell that contains the value “N/A” — including #N/A errors.

  • Look in: Values
  • Find what: #N/A

This finds all #N/A errors, not text “N/A”. Useful for locating lookup failures.

Using Find and Replace to Audit Formulas

Find and Replace is useful for auditing workbooks:

  1. Find all cells that reference a specific sheet: Look in Formulas, search “Sheet2!”.
  2. Find all hardcoded numbers in formulas: hard to do with Find and Replace alone, but Look in Formulas can help by finding specific numbers.
  3. Find all cells containing IFERROR: Look in Formulas, search “IFERROR”.
  4. Find all formulas referencing a deleted range: search for “#REF!”.

This is not as powerful as a formula auditing tool, but it is fast and covers common cases.

Find All

The “Find All” button shows a list of every match in the sheet or workbook. Click any result to jump to that cell. This is useful for:

  • Understanding where a value appears
  • Selecting multiple matches (Ctrl + A on the list selects all, then Close to close the dialog with all matches selected)
  • Finding and replacing at specific cells without doing a Replace All

The “Find All” list is often more useful than Replace All, because you can review matches before acting. Find and Replace in Excel makes it easy to review matches before you replace anything.

Microsoft’s guide to using Find and Replace with a screen reader explains the same dialog and its options for assistive technology users: Microsoft’s guide to using Find and Replace with a screen reader.

Replacing by Formatting

Excel can find and replace based on formatting, not text. This is surprisingly powerful.

Example: You have a report where some cells are highlighted yellow, and you want to find those specific cells. Or you want to clear the red fill from some rows.

Step 1: Ctrl + H
Step 2: Find what: leave blank
Step 3: Click Options (if not shown)
Step 4: Click Format > Fill > choose the color
Step 5: Leave Replace with blank, or click Format > Fill > choose a new color

Click Find All. Excel highlights all cells with that formatting.

This works for finding cells with specific formatting and changing it. Useful for cleanup and formatting consistency. Find and Replace in Excel can search by formatting as well as by text.

Replacing Values with Formulas

You cannot use Find and Replace to replace one value with a formula. Replace All only replaces text. If you need to replace text with a formula, use a helper column or Power Query.

However, you can replace a text value with a number. For example, if your data has “N/A” and you want to replace with 0, type “N/A” in Find and “0” in Replace. Excel will insert the number 0. This works because “0” is interpreted as a number when possible.

If you need to replace text with a formula result, use a helper column:

=A2 (new column) with SUBSTITUTE or IF, then paste values back.

Practical Example: Cleaning Trailing Spaces

You have a list of names, and some have trailing spaces that break lookups.

Method 1: Find and Replace

  1. Ctrl + H
  2. Find what: ” *” (space followed by asterisk)
  3. Replace with: “” (blank)
  4. Repeat until no more matches. Excel does not remove multiple trailing spaces in one pass.

Method 2: TRIM formula

=TRIM(A2)

This removes leading, trailing, and multiple internal spaces in one step. For most cleanup, TRIM is better than Find and Replace. For this kind of cleanup, Find and Replace in Excel is often the fastest first step.

Practical Example: Standardizing Text

You have regions entered as “north”, “NORTH”, “North” inconsistently.

Find: “north” (Match case off) — finds all case variations
Replace with: “North” (with Match case on for the replace? No — replace follows the find case rule)

Actually, this is where Find and Replace has a limitation. When Match case is off, the Replace uses the Find’s casing rules. So replacing “north” with “North” when Match case is off will replace all three variants with “North” (which is what you want). Good.

But if you wanted different replacements for different cases, you would need Match case on and do it in multiple passes.

Practical Example: Removing Unwanted Characters

You have phone numbers with various separators: “98765-43210”, “98765 43210”, “(98765) 43210”.

Use Find and Replace multiple times:

  1. Find “-” Replace with “” — removes hyphens
  2. Find ” ” Replace with “” — removes spaces
  3. Find “(” Replace with “” — removes opening parentheses
  4. Find “)” Replace with “” — removes closing parentheses

Now all phone numbers are 10-digit strings. Repeat until clean.

This approach is manual but fast. For consistent patterns, SUBSTITUTE is better:

=SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(A2,"-","")," ",""),"(","")

For very messy data, Power Query is the right tool.

Practical Example: Fixing a Specific Formula

You have 500 cells with =VLOOKUP(A2, Sheet1!A:D, 4, FALSE) and you want to change them to =VLOOKUP(A2, Sheet2!A:D, 4, FALSE).

Ctrl + H
Find: Sheet1!A:D
Replace with: Sheet2!A:D
Look in: Formulas
Replace All

All 500 formulas update at once. This is a huge time saver for bulk formula changes. That is Find an

A Cleanup Challenge to Try

Open a copy of a messy sheet — never practise on your original file — and give yourself ten minutes to clean it with Find and Replace alone. Start with a column of product names written in mixed case, such as “chair”, “CHAIR” and “Chair”, and use Match case off to replace them all with one consistent spelling. Next, take a column of phone numbers written with hyphens, spaces and brackets, and remove each separator in a separate Replace All pass until every number is a plain ten-digit string.

Then try wildcards: search for “Product*” to find every product name that starts with that word, and use “?” to fix a single mistyped letter, for example changing “Ch?ir” back to “Chair” without touching longer words.

After that, switch Within to Workbook and Look in to Formulas, and search for “Sheet1!” to find every formula that still points at the old sheet, then replace it in one pass. Finally, use Find All to list every “#N/A” error in the workbook, click through the results, and decide which ones to fix and which ones to leave. When you finish, check your work with Find All once more, undo anything that looks wrong, and note which job was fastest and which one needed a formula or Power Query instead.

Frequently Asked Questions

Can Find and Replace use regular expressions?
No. Excel’s Find and Replace does not support regex. Use wildcards for basic patterns, or Power Query for regex-like transformations.

Can I replace based on cell formatting?
Yes. In Find and Replace, click Format and choose the formatting to search for.

Can I undo a Replace All?
Yes, with Ctrl + Z immediately after. But if you save the file, the undo is gone. Always keep a backup.

How do I find all cells with a specific error?
Look in: Values, Find what: #N/A (or #DIV/0!, etc.). Find All shows every cell with that error.

Can I replace text with a line break?
Yes. In the Replace field, press Ctrl + J to insert a line break character. The cell needs to be formatted with Wrap Text to show it, but it works.

Why does my search not find a value I can see?
Common causes: the value is a formula result (use Look in: Values), there is a trailing space, or you are searching one sheet but the value is on another (change Within to Workbook).

Related guide: Remove Duplicates in Excel: 3 Best Methods Compared

Related guide: Excel Text Functions: Best LEFT RIGHT MID Guide

Final Thoughts

Find and Replace is one of Excel’s most underused features. Most users treat it as a simple text swap. But with wildcards, formatting search, formula search, and workbook scope, it becomes a powerful audit and cleanup tool. Learn the options, practice on a copy of your file, and you will save hours on the cleanup and formula edits that used to take manual work. Small tool, big impact. Mastering Find and Replace in Excel will save you hours on future cleanups.

Leave a Comment