Use Find & Replace to change text across your entire spreadsheet at once
Excel's Find & Replace tool lets you swap out text, numbers, or phrases throughout your spreadsheet in seconds instead of hunting through cells one by one. You can replace a single instance, all instances of a word, or use patterns to find text that matches a specific format. The tool works the same way whether you're using Excel on Windows, Mac, or the web version.
The fastest way to open Find & Replace is to press Ctrl+H on Windows or Command+H on Mac. You can also go to the Home tab, click Find & Select, and choose Replace. Either method opens the same dialog box where you type what you're looking for and what you want to change it to.
Key Takeaways
- Press Ctrl+H (Windows) or Command+H (Mac) to open Find & Replace instantly from anywhere in your spreadsheet.
- Type the text you want to find in the first box and the replacement text in the second box, then click Replace All to change every instance at once.
- Use "Match entire cell contents" if you only want to replace cells that contain exactly that text and nothing else.
- Click Replace instead of Replace All if you want to check each instance before changing it, which prevents accidental replacements.
- You can undo any replacement by pressing Ctrl+Z immediately after, even if you replaced hundreds of cells.
The basic steps to replace text everywhere
Open your spreadsheet and press Ctrl+H (Windows) or Command+H (Mac). The Find & Replace dialog box appears with two main fields. In the "Find what" field, type the text you want to remove or change. In the "Replace with" field, type what should go in its place instead.
Once both fields are filled in, you have two choices. Click Replace All to change every matching instance in the entire spreadsheet at once. Click Replace to change just the first instance, and then Excel highlights the next match so you can decide whether to replace it or skip it. Most people use Replace All when they're confident about the change, and Replace when they want to double-check first.
After you click Replace All, Excel tells you how many replacements it made. If you made a mistake or changed something you didn't mean to, press Ctrl+Z immediately to undo the entire operation. This works even if you replaced hundreds of cells.
How to replace only exact matches
By default, Find & Replace looks for your text anywhere inside a cell. If you search for "cat", it will change "cat", "catalog", "category", and "concatenate" all at once. If you only want to replace cells that contain exactly "cat" and nothing else, you need to turn on "Match entire cell contents" before you search.
In the Find & Replace dialog, look for the Options button or expand the dialog to see more choices. Check the box next to "Match entire cell contents". Now when you search for "cat", it will only change cells that say exactly "cat", and leave "catalog" and "category" untouched. This setting stays on until you uncheck it, so remember to turn it off if your next search needs to find text inside cells.
Replace text in only one column or section
If you want to replace text in just one column instead of the whole spreadsheet, select that column first before opening Find & Replace. Click the column header to highlight the entire column, then press Ctrl+H. Now when you click Replace All, it only changes text within the cells you selected. This prevents accidental changes in other parts of your spreadsheet.
The same method works for any selection — you can highlight a few cells, a range, or multiple columns, and Find & Replace will only work within that selection. If you don't select anything before opening Find & Replace, it searches the entire spreadsheet by default.
Using Find & Replace with special characters and patterns
Find & Replace can also search for line breaks, tabs, and other characters that don't show up as regular text. In the Find & Replace dialog, look for the Options button and check "Regular expressions" (in Excel for Mac) or enable wildcards. Once that's on, you can use special codes to find patterns instead of exact text.
For example, if you want to find any cell that starts with a number, you can use a pattern code instead of typing every possible number. The codes vary slightly between Windows and Mac versions of Excel, so check the help menu in your version if you need to search for something specific. Most people never need this feature, but it's there if you're working with data that follows a consistent pattern.
Common mistakes to avoid
The biggest mistake is clicking Replace All without checking what you're replacing first. If you search for a short word like "to" or "the", you might accidentally change text inside longer words or phrases you didn't mean to touch. Always use the Replace button a few times to see what Excel is finding before you commit to Replace All.
Another common error is forgetting that Find & Replace is case-sensitive by default. If you search for "Smith" it won't find "smith" or "SMITH". If you need to find text regardless of capitalization, look for the "Match case" option in the dialog and make sure it's unchecked. Also remember that Find & Replace searches the entire spreadsheet unless you select a specific range first — if you only meant to change one column, select it before you open the dialog.
What to do if Replace All changed something you didn't want
Press Ctrl+Z immediately to undo the replacement. This works even if you replaced hundreds or thousands of cells at once. Excel will reverse every change from that single Replace All operation and put your spreadsheet back to how it was before.
If you've already done other work since the replacement and don't want to undo everything, you can use Find & Replace again to change the text back manually. Open Find & Replace, search for the replacement text you just added, and replace it with the original text. This takes longer but lets you keep any other changes you've made since then.
Frequently Asked Questions
Can I replace text in multiple sheets at once?
No, Find & Replace only works on the sheet you're currently viewing. If you need to replace text in multiple sheets, you have to do each sheet separately. Open the first sheet, do your replacements, then move to the next sheet and repeat.
What if I want to replace text but keep part of what was there?
You can use the replacement text to keep part of the original. For example, if you search for "John Smith" and replace it with "Smith, John", you're keeping both names but rearranging them. This works with any text you want to rearrange or combine.
Does Find & Replace work on formulas or just the text I see?
By default it searches both the text you see and the formulas behind it. If a cell shows "100" but the formula is "=50+50", searching for "50" will find it inside that formula. If you only want to search the visible text, you need to check "Search in" options in the dialog and select "Values" instead of "Formulas".
Can I replace empty cells with text, or text with empty cells?
Yes. To replace text with nothing (delete it), leave the "Replace with" field empty and click Replace All. To replace empty cells with text, leave the "Find what" field empty, type your text in "Replace with", and click Replace All. Be careful with empty cell replacements since they affect many cells at once.
What's the difference between Replace and Replace All?
Replace changes one instance at a time and lets you see each match before you approve it. Replace All changes every matching instance in one action without showing you each one. Use Replace when you're unsure, and Replace All when you're confident the change is correct everywhere.