To use Find and Replace in Excel, press Ctrl+H (Cmd+H on Mac) to open the Replace tab, type what you want to find in the 'Find what' box, type the replacement in 'Replace with', and click Replace All or Replace. For finding only, press Ctrl+F. That is the short answer. The rest of this guide covers the exact steps, the options that matter (match case, match entire cell contents, search within formulas or values), and the mistakes that make replacements go wrong.

What You'll Need

  • Microsoft Excel on Windows or Mac (the steps here are for the desktop app; the web version has a simpler Find and Replace with fewer options).
  • A workbook open with the data you want to change.
  • Basic familiarity with selecting cells or ranges, because Find and Replace works on the current selection if you choose that option.

Step-by-Step

  1. Open the Find and Replace dialog. Press Ctrl+H on Windows or Cmd+H on Mac. This opens the dialog on the Replace tab. If you only want to find, press Ctrl+F (Cmd+F on Mac) instead. You can also go to Home > Editing > Find & Select > Replace. Menu labels can differ slightly by version and region.
  2. Decide the scope. If you want to search the whole sheet, click any single cell first. If you want to search only a specific range, select that range before opening the dialog. Then in the dialog, click Options to expand the extra settings and set Within to Sheet or Workbook. If you selected a range, choose Selection where available.
  3. Enter the search term. In the Find what box, type the text, number, or part of a formula you want to locate. Leave it blank only if you are deliberately searching for empty cells (see Tips).
  4. Enter the replacement. In the Replace with box, type what should take its place. To delete the found text, leave this box empty.
  5. Set the match options. Tick Match case if capitalization matters (so 'apple' will not match 'Apple'). Tick Match entire cell contents if you only want to replace cells that contain exactly the search term, not cells that merely contain it as part of a longer string. Under Look in, choose Formulas to search the underlying formula text, or Values to search what is displayed. Choose Comments only if you want to search notes.
  6. Preview with Find Next. Click Find Next to jump to the first match. The cell is selected and the dialog stays open. Click Find Next again to step through matches one by one. This is the safe way to check before changing anything.
  7. Replace one match or all matches. Click Replace to change only the currently highlighted match and move to the next. Click Replace All to change every match in the chosen scope at once. Excel reports how many replacements were made.
  8. Close and verify. Click Close (or the X) and check a few changed cells. If something went wrong, press Ctrl+Z (Cmd+Z on Mac) immediately to undo. Replace All is a single undo step in most cases, so undo once and the whole batch is reverted.

Common Mistakes

  • Replacing without checking scope. Leaving Within set to Workbook when you meant Sheet can change data on other tabs you forgot about. Set the scope deliberately every time.
  • Forgetting Match entire cell contents. Searching for 'cat' with that box unticked will also hit 'category', 'concatenate', and 'catapult'. If you want exact cells only, tick it.
  • Replacing inside formulas unintentionally. With Look in set to Formulas, a replacement can alter function names or cell references. Switch to Values if you only want to change displayed text.
  • Assuming Replace All respects case. It does not unless Match case is ticked. 'Total' and 'total' will both be replaced otherwise.
  • Not undoing fast enough. If you save and close after a bad Replace All, Ctrl+Z may no longer help. Undo before saving, or close without saving and reopen.
  • Expecting it to search hidden sheets or protected cells. Find and Replace skips hidden rows, columns, and sheets in some configurations, and cannot change locked cells on a protected sheet.

Tips

  • Use wildcards for patterns. Tick Use wildcards (available when Match entire cell contents is off) to use ? for a single character and * for any number of characters. For example, find J*n to match 'John' and 'Jan'. To find a literal question mark or asterisk, put a tilde in front: ~? or ~*.
  • Replace formatting, not just text. With the dialog expanded, click Format next to Find what or Replace with to search for or apply cell formatting such as bold, fill color, or number format. Leave the text boxes empty to change formatting only.
  • Find blank cells. Leave Find what empty, tick Match entire cell contents, and click Find All to list empty cells in the results. You can then select them and type a value, pressing Ctrl+Enter to fill all selected cells at once.
  • Work on a copy for big changes. Before a Replace All across a whole workbook, save a duplicate of the file. It costs a few seconds and saves a lot of grief.
  • Use Find All to audit. Clicking Find All lists every match with its sheet and cell reference. This is a quick way to see where a term appears before you change it.

Troubleshooting

  • No matches found but you can see the text. Check Match case and Match entire cell contents first. Then check Look in: if the cell shows a formula result, searching Formulas will not find the displayed value. Also confirm Within is set to the right sheet or workbook.
  • Replace All says 0 replacements. The scope may be a selection that does not include the matches, or the sheet may be protected. Unprotect the sheet (Review > Unprotect Sheet) if you have the password, or ask the file owner.
  • Wrong cells changed. Press Ctrl+Z immediately. If you have already saved, close the file without saving and reopen the last saved copy, or restore from version history if available.
  • Dialog will not open. Click a cell in the grid first; the dialog needs an active worksheet. If Excel is unresponsive, save your work, close and reopen Excel.
  • Replace does nothing on a protected sheet. Locked cells cannot be edited. Unprotect the sheet or ask whoever set the protection. Do not try to bypass protection you do not own.

Frequently Asked Questions

What is the keyboard shortcut for Find and Replace in Excel?

Ctrl+H opens the Replace tab on Windows; Cmd+H does the same on Mac. Ctrl+F (Cmd+F) opens Find only.

Can I replace text across multiple sheets at once?

Yes, if you set Within to Workbook in the expanded Options. Otherwise it searches only the active sheet.

Does Find and Replace work on formulas?

Yes. Set Look in to Formulas to search the formula text itself, or Values to search what the cell displays. Be careful when replacing parts of formulas, as you can break references.

How do I replace only whole words or exact cell contents?

Tick Match entire cell contents. That restricts matches to cells whose full content equals the search term.

Can I undo a Replace All?

Yes, with Ctrl+Z (Cmd+Z on Mac) before saving. After saving and closing, undo is no longer available, so use version history or a backup copy.

Why does Replace All skip some cells?

Common reasons are hidden rows or sheets, protected cells, a selection-only scope, or match options that exclude those cells. Check each in that order.