Smart Systems for Home

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

How to Mass 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 mass replace words in Excel, use Find and Replace (Ctrl+H), which swaps every instance of a word or phrase across the current sheet or the entire workbook. For more control, use formulas such as SUBSTITUTE or Power Query to replace text without altering the original data. The fastest method depends on whether you want a one-time cleanup or a repeatable process.

What You'll Need

  • Microsoft Excel (desktop version recommended for full Find and Replace features; Excel for the web has a more limited version).
  • Your data open in a workbook. Make a backup copy first (File > Save As) so you can undo changes if something goes wrong.
  • Optional: Power Query (built into Excel 2016 and later) if you need to replace text repeatedly from an external source.

Step-by-Step

  1. Select the range or sheet where you want to replace text. If you want to replace across the entire workbook, skip this step; Find and Replace will prompt you later. To limit the change to specific cells, highlight those cells first.
  2. Open Find and Replace. Press Ctrl+H on Windows or Command+H on Mac. Alternatively, go to Home > Editing > Find & Select > Replace. The dialog box opens with two fields: Find what and Replace with.
  3. Enter the word or phrase to find. Type it exactly as it appears in your cells. Check the Match case box if you only want to replace instances with the same capitalisation (e.g., "Apple" but not "apple"). Check Match entire cell contents if you only want to replace cells that contain exactly that word and nothing else.
  4. Enter the replacement text. Type the new word or phrase in the Replace with field. Leave it blank to delete the found text.
  5. Choose where to search. Click Options to expand the dialog. In the Within dropdown, select Sheet or Workbook. In the Search dropdown, choose By Rows or By Columns (By Rows is default and usually fine).
  6. Replace one at a time or all at once. Click Find Next to step through matches, then Replace to change the current one. Click Replace All to change every match in the chosen scope. Excel will report how many replacements were made.
  7. Review the result. Close the dialog and check a few cells. If something went wrong, press Ctrl+Z immediately to undo the entire Replace All operation.

Common Mistakes

  • Replacing across the whole workbook unintentionally. The default scope is the current sheet, but if you previously chose Workbook, that setting persists. Always check the Within dropdown before clicking Replace All.
  • Forgetting that Find and Replace is case-insensitive by default. "excel" will match "Excel" unless you tick Match case. This can lead to unintended replacements in proper nouns or codes.
  • Replacing partial words. Searching for "cat" will also change "category" to "dogegory" if you replace with "dog". Use Match entire cell contents or include surrounding spaces to avoid this.
  • Not accounting for formulas. Find and Replace works on the displayed result of a formula, not the formula itself, unless you are in formula edit mode. If a cell contains a formula that returns "old", replacing "old" with "new" will not change the formula; it will only change the formula's text if you edit the cell. To replace inside formulas, use Ctrl+H while the cell is in edit mode, or use SUBSTITUTE.
  • Overlooking hidden rows or filtered data. Replace All affects hidden cells too. If you only want visible cells, you must copy them to a new location first.

Tips

  • Use wildcards for flexible matching. In the Find what field, ? matches any single character and * matches any sequence. For example, "Sm?th" finds "Smith" and "Smyth". Tick Use wildcards in Options.
  • Replace formatting as well as text. Click Format in the Find and Replace dialog to search for cells with specific formatting (e.g., bold) and replace both the text and the formatting.
  • Use SUBSTITUTE for non-destructive replacement. The formula =SUBSTITUTE(A1, "old", "new") returns the text with replacements without altering the original cell. Copy the formula down, then copy and paste values if you need to keep the results.
  • Use Power Query for repeatable cleanup. Import your data via Data > Get Data, then use the Replace Values command on a column. Each time the source updates, refresh the query to apply the same replacements automatically.
  • Work on a copy. Always keep an unmodified backup of your data. Replace All cannot be undone after you close the workbook without saving, but Ctrl+Z works immediately after the operation.

Troubleshooting

  • Replace All says "We couldn't find anything to replace." Check for leading or trailing spaces in your search term. Also confirm the Within setting (Sheet vs Workbook) and that you are not searching a protected sheet. If the sheet is protected, unprotect it via Review > Unprotect Sheet.
  • Replace All changed more than expected. Press Ctrl+Z immediately. Then redo the operation with Match case or Match entire cell contents enabled, or narrow the selection to specific cells first.
  • Replace All is greyed out. The workbook may be shared or protected. Go to Review > Share Workbook (if available) and uncheck Allow changes by more than one user, or unprotect the sheet.
  • Text in formulas did not change. Find and Replace does not alter formula text unless you are editing the cell. Use SUBSTITUTE inside a helper column, then copy the results back as values.
  • Replace All affects cells outside your selection. If you selected a range but the Within dropdown is set to Workbook, Excel ignores the selection. Set Within to Sheet and reselect your range.
  • Undo does not work after closing the file. Once you save and close, Replace All cannot be undone. Restore from your backup copy.

Frequently Asked Questions

Can I replace words in multiple sheets at once?

Yes. In the Find and Replace dialog, click Options and set Within to Workbook. Replace All will then apply to every sheet in the workbook.

Does Find and Replace work on formulas?

It works on the calculated results, not the formula text. To change text inside a formula, edit the cell directly or use the SUBSTITUTE function in a helper column.

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

Tick Match entire cell contents in the Find and Replace options. This ensures only cells that contain exactly the search term are changed.

Can I use wildcards in Find and Replace?

Yes. Enable Use wildcards in Options. The question mark (?) matches any single character, and the asterisk (*) matches any number of characters.

Is there a limit to how many replacements I can make?

Excel can handle large volumes, but Replace All on very large ranges may take time. For workbooks with hundreds of thousands of cells, consider using Power Query or a VBA macro for better performance.

What happens if I replace text in a cell that contains a formula referencing another cell?

The formula itself is not changed. Only the displayed text is replaced if it is a literal string. If the cell contains a formula, the replacement applies to the formula's result only if you are editing the cell, not to the formula's logic.