Find and Replace is in the Edit menu on Mac, and the Home tab on Windows
On Windows, click the Home tab at the top left of your spreadsheet. In the toolbar, look for the Find & Replace button — it's usually grouped with other editing tools on the right side. Click it, or press Ctrl+H to open the dialog box directly.
On Mac, click Edit in the menu bar at the top of your screen. Scroll down and select Find and Replace, or press Command+Option+F. The dialog box will open in the same location whether you use the menu or the keyboard shortcut.
Both versions work the same way once the dialog opens: type what you want to find in the first field, type what you want to replace it with in the second field, then choose whether to replace one instance or all of them at once.
Key Takeaways
- On Windows, Find and Replace is on the Home tab in the toolbar, or use Ctrl+H to open it instantly.
- On Mac, open the Edit menu and select Find and Replace, or press Command+Option+F.
- You can replace a single cell or every matching cell in your entire spreadsheet with one click.
- The dialog box lets you search by exact match, partial text, or even patterns if you turn on regular expressions.
Using Find and Replace to change data across your sheet
Once the Find and Replace dialog is open, type the text or number you want to find in the Find field. In the Replace with field, type what you want it to become. If you leave the Replace field blank and click Replace All, Excel will delete the text you found.
Click Replace to change one cell at a time — Excel will highlight each match so you can see what it's about to change. Click Replace All to change every matching cell in your sheet instantly. Be careful with Replace All: if you search for something common like "the" and didn't mean to change it everywhere, you can undo the action immediately by pressing Ctrl+Z (or Command+Z on Mac).
Searching within a specific range instead of the whole sheet
If you only want to search part of your spreadsheet, select those cells first before opening Find and Replace. Highlight the range you want to search by clicking and dragging, then open the dialog. Excel will only search within your selection.
This is useful when you have similar data in different sections of your sheet and you only want to change one section. After you close Find and Replace, your selection will still be highlighted so you can see exactly which cells were affected.
Finding cells that match a pattern, not just exact text
The Find and Replace dialog has an Options button (Windows) or an arrow to expand options (Mac). Click it to see more search choices. You can search for whole words only, ignore uppercase and lowercase differences, or search in formulas instead of just the values cells display.
If you turn on Regular expressions, you can search for patterns instead of exact text — for example, finding any cell that starts with a number, or any cell with exactly five characters. Regular expressions use special symbols like ^ for the start of a cell and $ for the end. This is a more advanced feature, but it's built in and free to use.
Why Find and Replace is faster than editing cells one by one
If you have a spreadsheet with hundreds of rows and you need to change a product name, a date format, or a department code everywhere it appears, Find and Replace does it in seconds. Editing each cell individually would take hours and you'd risk missing some.
It's also safer than trying to select and edit multiple cells at once, because you can see each match before you replace it. If you make a mistake, undo is always one keystroke away.
Common mistakes to avoid when using Find and Replace
The most common error is clicking Replace All without checking what will actually change. A search for "sales" might also change "sales tax" or "sales rep" if you didn't mean to. Always click Replace once or twice first to see what you're about to do, then use Replace All if you're confident.
Another mistake is forgetting that Find and Replace searches your entire sheet by default, including hidden rows and columns. If you have filtered data or hidden columns, the search will still find text in those cells. If you only want to search visible cells, you'll need to unhide everything first or select just the range you want.
Watch out for spaces and special characters too. If you search for "John Smith" but your data has "John Smith" with two spaces, the search won't find it. The Find and Replace dialog doesn't warn you when it finds zero matches — it just says "Search key not found" and closes.
Using Find and Replace with formulas and calculated values
By default, Find and Replace searches the values that cells display — the numbers and text you see on screen. If you need to search inside formulas instead, open Options and choose to search in formulas. This is useful if you want to find every cell that references a particular other cell, or every formula that uses a specific function.
Be careful when replacing inside formulas: if you replace part of a formula, you might break it. For example, replacing "A1" with "B1" in a formula like "=SUM(A1:A10)" will change it to "=SUM(B1:B10)", which is probably not what you wanted. Use this feature only when you're sure of what you're changing.
Frequently Asked Questions
Can I search for a line break or special character?
Yes, but the method depends on what you're searching for. In the Find field, you can type special characters directly if they appear in your cells. For a line break within a cell, turn on regular expressions and search for \n. The Find and Replace dialog will show you a list of special codes if you click Help.
What happens if I close the Find and Replace dialog by accident?
Nothing is lost. Open it again using Ctrl+H (Windows) or Command+Option+F (Mac), and your previous search terms will still be there. Excel remembers your last few searches so you don't have to type them again.
Can I undo a Replace All if I change my mind?
Yes. Press Ctrl+Z (Windows) or Command+Z (Mac) immediately after Replace All to undo every change at once. If you've made other edits since then, undo will reverse those too, so work backwards until you reach the Replace All action.
Does Find and Replace work the same way in Google Sheets?
Google Sheets has a Find and Replace feature, but it's accessed differently. Press Ctrl+H (Windows) or Command+H (Mac) to open it. The options are simpler than Excel — no regular expressions or formula searching — but the basic find and replace works the same way.
Can I search for a formula that appears in multiple cells?
Yes. Open Find and Replace, turn on the option to search in formulas, and type the formula you're looking for. For example, searching for =SUM( will find every cell that contains a SUM formula, regardless of what range it adds up.