Change text across a sheet with Find & Replace
Time-saving tools8 minPremium
A logistics coordinator in Rotterdam updates the carrier list after head office asks for country names in full. "UK" has to become "United Kingdom" in 300 rows, and the same two letters start "Ukraine" a few rows down.
How it works
CtrlH opens Find and Replace on its Replace tab, on Windows and on a Mac. Type what to find and what to put instead, and Replace All changes every match at once. With more than one cell selected, it works only inside the selection; with one cell selected, it searches the whole sheet.
Excel finds your text anywhere inside a cell, whatever the capitals. Two boxes under Options narrow that down: Match case, and Match entire cell contents, which changes only the cells that hold exactly what you typed.
Wildcards stand in for text that varies: * for any number of characters and ? for exactly one. To find a real asterisk or question mark, type ~ before it. Leave Replace with empty to delete whatever you find.
Example
In the carriers' Country column, Find what UK and Replace with United Kingdom, then Replace All:
Common mistakes
- Without Match entire cell contents, Replace All changes the letters inside longer words, as in Ukraine above. Tick it when the cell should hold only the word.
- A space before or after a word stops Match entire cell contents from matching it: "UK " isn't "UK". Clean the column with TRIM first.
- Replace All with one cell selected can change other columns too. Select the column first.
- A wildcard pattern catches every cell that fits it, including cells you didn't mean to change. Check what else on the sheet it matches before you press Replace All.
In short
- CtrlH opens Replace, on Windows and on a Mac; CtrlF (CmdF on a Mac) opens Find.
- Tick Match entire cell contents to change only cells that hold exactly the word.
*stands for any characters and?for one, and an empty Replace with deletes what you find.- Select the range first to keep Replace All inside it.
Practice
Premium4 exercises: 1 shortcut, 2 dialogs and 1 quiz question.
Practice is part of Premium
Every lesson is free to read, and you can practice the free lessons without an account. This lesson's exercises are part of Premium, which you add to a free account.
Have one? Sign in