Smart Systems for Home

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

How to Quickly Replace Words in Excel

· 6 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

To quickly replace words in Excel, use Find & Replace: press Ctrl+H (Cmd+H on Mac), type the word to find and its replacement, then click Replace All. This works in Excel for Microsoft 365, Excel 2019/2021, and Excel for the web, and it searches the active sheet or the entire workbook depending on your selection. The feature is built into Excel, so no add-ins are needed. Labels and dialog wording can differ slightly by version, platform, or region.

What You'll Need

  • Excel installed on Windows, Mac, or access to Excel for the web.
  • A workbook with the text you want to change.
  • Basic knowledge of which sheet or range you want to affect.

Step-by-Step

  1. Open your workbook and click the sheet tab where you want to make changes. If you want to replace across multiple sheets, you can select multiple sheets first by holding Ctrl (Cmd on Mac) and clicking the tabs, or you can use the “Within” option in the dialog to search the entire workbook.
  2. Select the range you want to search. If you want to replace in the whole sheet, click any single cell (Excel will search the entire sheet by default). To limit to a specific area, highlight that range.
  3. Open Find & Replace by pressing Ctrl+H (Windows) or Cmd+H (Mac). Alternatively, go to the Home tab, click the Find & Select button (usually far right), and choose Replace. In Excel for the web, the shortcut works the same.
  4. In the “Find what” box, type the word or phrase you want to replace. Be precise: Excel matches exactly what you type, including spaces and punctuation.
  5. In the “Replace with” box, type the new word or phrase. Leave it blank if you want to delete the found text.
  6. Choose your search options by clicking the Options button (if not already expanded). Set “Within” to Sheet or Workbook. Set “Search” to By Rows or By Columns (usually By Rows is fine). Tick “Match case” if you want case-sensitive replacement. Tick “Match entire cell contents” if you only want to replace cells that contain exactly that word and nothing else.
  7. Click “Find All” to preview matches. This lists every cell that contains the search term. You can click a row in the list to jump to that cell. If you are confident, skip to the next step.
  8. Click “Replace All” to replace every occurrence at once. Excel will tell you how many replacements were made. If you prefer to review each change, click “Replace” one at a time.
  9. Close the dialog and check your data. If something went wrong, press Ctrl+Z (Cmd+Z on Mac) immediately to undo the replacements. Note that undo may not work after saving and closing the file.

Common Mistakes

  • Replacing without checking options: By default, Excel searches the current sheet only. If you need to change the whole workbook, set “Within” to Workbook before clicking Replace All.
  • Forgetting “Match entire cell contents”: If you replace “cat” with “dog” without this option, “category” becomes “dogegory”. Use it when you only want whole-cell matches.
  • Ignoring case sensitivity: Without “Match case”, Excel replaces both “Apple” and “apple”. If case matters, tick that box.
  • Replacing in formulas: Find & Replace also changes text inside formulas. If you have formulas that reference the word, they will be altered. Consider working on a copy or using “Look in: Values” (available in Options) to limit to displayed values.
  • Not undoing soon enough: After saving, Ctrl+Z may not revert changes. Always verify before saving.

Tips

  • Use Ctrl+H as a quick habit; it opens the Replace tab directly.
  • To replace formatting (like font color), click the Format button in the dialog and specify the format to find or replace. This is handy for cleaning up imported data.
  • If you need to replace across multiple sheets but not all, group the sheets first (select tabs while holding Ctrl/Cmd), then run Replace All; it will apply to all selected sheets.
  • Use wildcards in “Find what”: ? matches any single character, * matches any number of characters. For example, “Sm?th” finds “Smith” and “Smyth”. Tick “Use wildcards” in Options if needed.
  • For repetitive replacements, record a macro: View > Macros > Record Macro, perform the replacement, then stop. You can run the macro later. This is optional and requires enabling the Developer tab.

Troubleshooting

  • “Replace All” says 0 replacements: Check that “Within” is set to the correct scope (Sheet vs Workbook), that “Match case” is not causing a mismatch, and that “Match entire cell contents” is not too restrictive. Also ensure you are not searching in a protected sheet; unprotect it via Review > Unprotect Sheet if you have the password.
  • Replace button is greyed out: The sheet may be protected or the workbook is shared. Unprotect the sheet or unshare the workbook (Review > Share Workbook) before replacing.
  • Replacements happened in the wrong places: Immediately press Ctrl+Z. Then redo with more specific options, such as “Match entire cell contents” or a narrower range selection.
  • Formulas broke after replacement: Undo with Ctrl+Z. To avoid this, use “Look in: Values” in Options (if available) so only displayed results are changed, or work on a copy of the workbook.
  • Excel freezes during Replace All: Large workbooks can take time. Wait a moment; if it persists, press Esc to cancel. Consider replacing in smaller ranges.

Frequently Asked Questions

Can I replace words in multiple sheets at once?

Yes. In the Find & Replace dialog, click Options and set “Within” to Workbook. This searches all sheets. Alternatively, group sheets by selecting their tabs while holding Ctrl (Cmd on Mac) before opening the dialog; Replace All will then apply to all selected sheets.

Does Find & Replace work in Excel for the web?

Yes, the web version supports Find & Replace with Ctrl+H. The options are similar, though some advanced features like “Look in: Values” may not be available. Check the dialog for available choices.

How do I replace only whole words, not parts of words?

In the Replace dialog, click Options and tick “Match entire cell contents”. This ensures the search term must match the whole cell, so “cat” will not match “category”.

Can I undo a Replace All?

Yes, immediately after replacing, press Ctrl+Z (Cmd+Z on Mac). This undoes the entire Replace All operation. If you have saved and closed the file, undo may not be available.

Why does Replace All say “We couldn't find anything to replace”?

Possible reasons: the search term has a typo, “Match case” is on and the case differs, the range is limited to a selection that doesn't contain the term, or the sheet is protected. Check these settings and try again.

Can I replace text with a line break or special character?

Yes. In the “Replace with” box, press Ctrl+J to insert a line break. For other special characters, you can use the CHAR function in a formula, but Find & Replace itself supports only direct typing and Ctrl+J for line breaks.