<link rel="stylesheet" type="text/css" href="/mirawhite.css">

How to find and replace in Word and Excel

Updated November 26, 2026

In Word, press Ctrl+H (or Home > Replace), type the word in Find what and the new word in Replace with, then click Replace All. In Excel, select the cells or the column, press Ctrl+H and click Replace All, or use =SUBSTITUTE(A2,"old","new") to keep the original data. In Google Docs and Google Sheets, the command is Edit > Find and replace (Ctrl+H, or ⌘+Shift+H on a Mac).

How to find and replace in Word

This works in Word for Microsoft 365 and Word 2016 to 2024 on Windows. Ctrl+F only opens the Navigation pane, which searches without replacing.

  1. Press Ctrl+H, or go to Home > Replace in the Editing group.
  2. Type the text to find in Find what.
  3. Type the new text in Replace with. Leave it empty to delete every match.
  4. Click Replace All to change every occurrence at once, or Find Next and then Replace to check them one by one.
  5. For more options, click More >>: Match case, Find whole words only, Use wildcards, and the Format and Special buttons.

Good to know : Replace All has no preview. If the result is wrong, press Ctrl+Z right away, then tick Find whole words only or replace one occurrence at a time.

Special characters (^p, ^t) and wildcards in Word

Invisible characters have codes that you type in Find what or Replace with, or pick from the Special button. Click ¶ on the Home tab to see them in the document.

  • ^p is a paragraph mark (Enter), ^l a manual line break (Shift+Enter), ^t a tab, ^m a manual page break and ^s a nonbreaking space. ^? finds any character, ^# any digit and ^$ any letter.
  • To remove empty paragraphs, replace ^p^p with ^p and click Replace All again until Word finds nothing. To turn tabs into semicolons, replace ^t with ;.
  • Tick Use wildcards under More >> to search for patterns: ? for one character, * for any string, [ ] for one of the listed characters, < and > for the start and end of a word, {n} for a number of repeats. Parentheses create groups that \1, \2 reuse in Replace with: the rule below turns “Smith John” into “John Smith”.
Find what: (Smith) (John)    Replace with: \2 \1

Good to know : With wildcards on, ^p is not accepted in Find what: type ^13 instead. Brackets, parentheses, ? and * become special, so put a backslash before them to find them as they are, such as \? for a question mark.

Replace formatting, and find and replace in Word on a Mac

Word can replace formatting with or without text. To turn every bold word red, leave Find what empty and set a format on both sides.

  1. Press Ctrl+H and click More >>.
  2. Click in Find what, leave it empty, then choose Format > Font and select Bold.
  3. Click in Replace with, choose Format > Font and pick the new color.
  4. Click Replace All. The formats stay under each box for the next search, so clear them afterwards.
  • On a Mac, Control+H opens the Find and Replace pane. For formatting, special characters and wildcards, open View > Navigation Pane, click the magnifying glass, then the gear icon, and choose Advanced Find & Replace. The ^p, ^t codes and wildcards work as on Windows.
  • Word for the web only replaces plain text, with Match case and whole words options. Open the file in the desktop app for the rest.

How to find and replace in Excel, in one column only

Excel accepts three wildcards in Find what: ? for one character, * for any number of characters, and ~ to search for one of them literally. Finding “ (*)” and replacing it with nothing removes a parenthesis and what it contains: “Lyon (69)” becomes “Lyon”.

  1. Click the column letter to select the whole column, or select the range. When several cells are selected, Excel searches only inside them; with a single cell selected, it searches the whole sheet.
  2. Press Ctrl+H, or go to Home > Find & Select > Replace. On a Mac, press Control+H.
  3. Fill in Find what and Replace with.
  4. Click Options >> if needed: Within (Sheet or Workbook), Match case, Match entire cell contents and Format.
  5. Click Replace All.

Good to know : Never replace * on its own: it matches the full content of every cell, so Replace All overwrites the whole range. To remove real asterisks, find ~* instead.

Replace text with a formula: SUBSTITUTE

The SUBSTITUTE function leaves the original column untouched and updates itself when the data changes. It is case sensitive: “Paris” does not match “paris”. Type it next to the first value, fill it down, then use Paste Values if you need fixed text.

  • With “AB-12-34” in A2, the formula above returns “AB/12/34”.
  • =SUBSTITUTE(A2,"-","/",2) replaces only the second hyphen and returns “AB-12/34”.
  • =SUBSTITUTE(SUBSTITUTE(A2,"St.","Street"),"Ave.","Avenue") chains two replacements in one cell.
  • The name follows the language of Excel: SUBSTITUE in French, SUSTITUIR in Spanish, WECHSELN in German, SUBSTITUIR in Portuguese and SOSTITUISCI in Italian, with semicolons between the arguments.
=SUBSTITUTE(A2,"-","/")

How to find and replace in Google Docs and Google Sheets

In both apps, open Edit > Find and replace, or press Ctrl+H (⌘+Shift+H on a Mac). Docs offers Match case and Match using regular expressions. Sheets offers Match case, Match entire cell contents, Search using regular expressions and Also search within formulas.

Regular expressions use Google’s RE2 syntax. In Sheets, groups work in the replacement: find ^([^,]+), (.+)$ and replace with $2 $1 to turn “Smith, John” into “John Smith”. In Docs, anything typed in Replace with is inserted literally: Docs can find a pattern but not rearrange it.

In LibreOffice Writer and Calc, use Edit > Find & Replace (Ctrl+H) and its Regular expressions option, which accepts $1 in the replacement.

Common mistakes

  • Parts of longer words were replaced: “art” also matched “party”. Tick Find whole words only in Word or Match entire cell contents in Excel, or replace one occurrence at a time.
  • Excel replaced values in the whole sheet: only one cell was selected, or Within was set to Workbook. Undo with Ctrl+Z, select the column and start again.
  • Excel finds nothing in a formula result: the Replace tab only searches formulas, not displayed values. Copy the column and paste it as values first.
  • Word finds nothing although the text is there: a format or the Use wildcards box is still set from a previous search.

Several replacements at once with Utiloz

When you have several changes to make on the same text, the Utiloz find and replace tool saves you from reopening the dialog each time. Add one rule per change, each with its own Match case, Whole word and Regular expression options and its own count of replacements. Rules run in order, each one on the result of the previous one, and Preserve case turns “Tom” into “Sarah” and “TOM” into “SARAH” in a single rule.

Regular expressions follow JavaScript syntax, with $1, $2 and $& in the replacement, which Google Docs does not allow. You can paste a column copied from Excel, one cell per line, and paste the result back. The text, up to 1 MB, stays in your browser; copy it or download it as a .txt file.

It works on plain text: Word formatting is not kept and formulas are not recalculated. To join lines copied from a PDF, use Remove line breaks instead.

Frequently asked questions

What is the shortcut for find and replace?

Ctrl+H in Word, Excel, Google Docs and Google Sheets on Windows. On a Mac, use Control+H in Word and Excel, and ⌘+Shift+H in Google Docs and Sheets. Ctrl+F only searches.

How do I find and replace in only one column in Excel?

Click the column letter first, then press Ctrl+H and click Replace All. When more than one cell is selected, Excel limits the search to the selection, so the other columns stay untouched.

How do I find and replace in Word on a Mac?

Press Control+H to open the Find and Replace pane. For special characters, formatting or wildcards, open the Navigation pane, click the magnifying glass, then the gear icon and Advanced Find & Replace.

How do I replace several different words at once?

Word and Excel replace one pair per run. In Excel, nest SUBSTITUTE functions, one per word. For a text, the Utiloz tool chains as many rules as you need and counts the changes of each.

← All guides