Find and replace in Sheets
Search one sheet or every sheet in Foxcolab Sheets, match case or whole cells, search inside formulas, use regular expressions and replace every match at once.
Updated 3 min read
In short
To find and replace in Sheets, choose Edit → Find and replace, or press Ctrl+H (⌘F on a Mac). Type what to look for, press Enter, and use Next and Previous to step through matches. Editors can type a replacement and click Replace all. Switches let you match case, match whole cells, use regular expressions, search inside formulas and search all sheets.
Key takeaways
- Open the panel with Edit → Find and replace, Ctrl+F or Ctrl+H. On a Mac, press ⌘F.
- Press Enter or click Find all, then step through matches with Enter, Shift+Enter, Next and Previous.
- Replace all changes every match on the sheet, or on every sheet with All sheets on. There's no one-at-a-time replace.
- Find looks at what's stored in a cell, not how it's formatted. Turn on Also search within formulas to search formula text.
- With formulas off, Replace all leaves formula cells alone and tells you how many it skipped. Undo any replace with Ctrl+Z.
Last reviewed 5 December 2026
To find and replace in Sheets, open the spreadsheet and choose Edit → Find and replace, or press Ctrl+H. Type what you're looking for, press Enter, and Sheets selects the first match. The search runs in your browser on the decrypted spreadsheet, so your data stays end-to-end encrypted and Foxcolab never sees what you search for.
Find text#
Open the panel
Choose Edit → Find and replace, or press Ctrl+F or Ctrl+H. On a Mac, press ⌘F, because ⌘H hides the browser.
Type what to find
Type a word or number in Find and press Enter, or click Find all. Sheets selects the first match and shows a count such as 1 of 12.
Step through the matches
Press Enter, or click Next, to go to the next match. Shift+Enter or Previous goes back. After the last match, it starts again at the first.
The search covers the sheet you're on. To search the whole spreadsheet, turn on All sheets, and Sheets switches to the right sheet for each match. If you change a switch after searching, click Find all again to refresh the matches.
Narrow the search#
| Switch | What it does |
|---|---|
| Match case | Finds Paid but not paid or PAID. Off by default, so capitals are ignored. |
| Match entire cell contents | Finds cells that contain exactly your text and nothing else. Pending won't match Pending review. |
| Search using regular expressions | Treats your text as a pattern. ^INV-\d+$ finds cells that are an invoice number and nothing else. |
| Also search within formulas | Searches the formula text of formula cells, such as VLOOKUP or Sheet2!, instead of their results. |
| All sheets | Searches every sheet, not only the open one. |
Find looks at the value stored in each cell, not at its formatting. A price shown as ₹1,250.00 is found by searching 1250. Dates are stored as numbers, so typing a date as it's displayed doesn't find it. Cells showing an error are found by their code, such as #N/A.
Replace every match#
Editors can replace. Type the new text in Replace with, check the count, then click Replace all. Sheets says how many cells it changed, such as "Replaced 8 cells", or "Nothing to replace". Press Ctrl+Z (⌘Z on a Mac) to undo it. With All sheets on, each sheet that changed is a separate undo step.
Replace all is the only replace button. To change one cell, step to it with Next and type in the cell, or tighten the search until only the cells you want match.
Each changed cell is filled in as if you'd typed the new value, so 2025 replaced with 2026 stays a number.
If some matches sit in a protected range, a range that only warns asks Edit a protected area? first: select Edit anyway to go ahead. Cells in a range you can't edit are skipped, and the summary says how many.
Use regular expressions#
Turn on Search using regular expressions for patterns. Some useful ones:
| Find | Replace with | Result |
|---|---|---|
\s+$ | (empty) | Removes spaces at the end of cells |
^(\w+) (\w+)$ | $2, $1 | Asha Mehta becomes Mehta, Asha |
[()] | (empty) | (022) 2345 6789 becomes 022 2345 6789 |
^\+91 ? | (empty) | Removes a +91 prefix from phone numbers |
In Replace with, $1 and $2 stand for the parts of the match inside the first and second brackets. If the pattern has a mistake, Sheets shows "That regular expression isn't valid." For spaces only, Data → Data cleanup → Trim whitespace is quicker.
If nothing is found#
- The panel says "No results yet": check the spelling, turn off Match case and Match entire cell contents, and turn on All sheets.
- You're searching for a formatted number or a date. Search for the stored number instead.
- The text is part of a formula, not its result. Turn on Also search within formulas.
- Replace all is greyed out: the Find box is empty, or you can only view or comment.
To build cleaned-up values in new cells instead of changing the originals, use formulas such as SUBSTITUTE and TRIM. See Text functions in Sheets. If a replace went wrong and undo isn't enough, restore a previous version.
Related#
Frequently asked questions
Can I replace just one match?
Replace all is the only replace button. To change a single cell, step to it with Next and type the new value in the cell. Or narrow the search with Match case or Match entire cell contents until only the cells you want match.
Why can't Find see a date or a currency amount I can see on screen?
Find searches the value stored in the cell, not its formatting. A price shown as ₹1,250.00 is stored as 1250, and dates are stored as serial numbers, so search for 1250 rather than the formatted text. Dates can't be found by typing them as they're displayed.
Why is Replace all greyed out?
Either the Find box is empty or you can only view or comment on the spreadsheet. Only people who can edit can replace. Viewers and commenters can still search.
Does Replace all change hidden rows?
Yes. Find and replace checks every cell on the sheet, including rows and columns that are hidden or filtered out. Check the match count before you replace.
Did this answer your question?
One click, no account needed.
Still need help?
Our support team can take it from here.