Curious Minds

Clear answers to science and history questions

How to Replace in Sheets: Find and Replace Guide

· 6 min read · Science

To replace text in Google Sheets, use the Find and Replace tool: press Ctrl+H (Windows/ChromeOS) or Cmd+Shift+H (Mac), type the text to find and the replacement, choose whether to search the current sheet or all sheets, then click Replace or Replace all. This works for plain text, numbers, and formulas, and it can match case or whole cells only if you enable those options. Before you start, make sure you have edit access to the file and know whether you want changes limited to one sheet or applied across the whole spreadsheet.

What You'll Need

  • A Google account with edit access to the spreadsheet (view-only access disables Find and Replace).
  • The spreadsheet open in Google Sheets on a computer browser or the mobile app (the menu location differs slightly on mobile).
  • A clear idea of the exact text, number, or formula fragment you want to find and what it should become.
  • Optional: a backup copy (File > Make a copy) if you are replacing across many sheets or using Replace all.

Step-by-Step

  1. Open the spreadsheet and click any cell so the sheet is active. This matters because the default search scope is the current sheet.
  2. Open the Find and Replace dialog: on Windows or ChromeOS press Ctrl+H; on Mac press Cmd+Shift+H. You can also use the menu Edit > Find and replace. On the mobile app, tap the three-dot menu and choose Find and replace.
  3. In the Find field, type the exact text you want to locate. If you are replacing part of a formula, type the fragment exactly as it appears, including punctuation.
  4. In the Replace with field, type the new text. Leave it blank if you want to delete the found text.
  5. Set the search scope. Under Search, choose All sheets, This sheet, or Specific range. Choosing Specific range lets you limit changes to a selected block of cells, which is the safest option for large spreadsheets.
  6. Decide on matching options. Tick Match case if capitalization matters (for example, replacing "apple" but not "Apple"). Tick Match entire cell contents if you only want to replace cells that contain nothing but the search term, not cells where it appears as part of a longer string.
  7. Use Find to preview. Click Find (or Find next) to jump to the first match. The dialog stays open and the cell is highlighted, so you can confirm it is the right target before changing anything.
  8. Replace one match at a time with Replace, or change every match at once with Replace all. Replace all is faster but irreversible with a single undo, so use it only after you have previewed a few matches.
  9. Review the result. Close the dialog and scan the affected area. If something went wrong, press Ctrl+Z (Cmd+Z on Mac) immediately to undo the last action.
  10. Repeat for other terms if needed. Each Find and Replace session handles one search term, so run the tool again for each additional replacement.

Common Mistakes

  • Replacing across all sheets by accident. The default scope is the current sheet, but it is easy to switch to All sheets and forget. This can change data in tabs you never looked at.
  • Ignoring case sensitivity. By default the search is case-insensitive, so replacing "ID" will also hit "id" and "Id". Tick Match case when capitalization matters.
  • Partial matches inside longer words. Searching for "cat" will also match "category" and "concatenate". Use Match entire cell contents or a more specific search string.
  • Replacing inside formulas unintentionally. Find and Replace works on formula text as well as displayed values. Replacing a number that appears in a formula will break the formula. Check whether the match is in a formula cell before replacing.
  • Forgetting that Replace all is one undo step. A single Ctrl+Z reverses the entire batch, but a second action after it means you cannot step back further.
  • Leaving the Replace with field blank by mistake. This deletes the found text rather than replacing it.

Tips

  • Make a copy of the spreadsheet (File > Make a copy) before any large Replace all operation. It takes seconds and gives you a clean fallback.
  • Use Specific range when you only want to clean up one column or block. Select the range first, then open Find and Replace; the range option becomes available.
  • Preview with Find several times before using Replace all. Clicking Find next cycles through matches so you can see how many there are and where they sit.
  • For formula fragments, search for a distinctive part such as a function name or a cell reference rather than a common number.
  • If you need to replace line breaks, type \n in the Find field (with regular expressions enabled via the checkbox in some versions) or use a helper column with SUBSTITUTE and CHAR(10).
  • Remember that Find and Replace does not search comments or notes, only cell contents.

Troubleshooting

  • Replace all does nothing. Check the search scope: if Specific range is selected but no range is highlighted, or if the term only exists on another sheet while This sheet is chosen, nothing will match. Switch the scope and try again.
  • Wrong cells changed. Undo immediately with Ctrl+Z. Then re-run with Match case or Match entire cell contents enabled, or restrict the scope to a specific range.
  • Formulas now show errors. You likely replaced part of a formula. Undo, then search again and use Find to inspect each match before replacing. Formula fragments should be edited carefully, one at a time.
  • Find and Replace is greyed out. You probably have view-only access. Ask the file owner for edit permission.
  • The dialog will not open. Make sure the spreadsheet itself has focus (click a cell first). Some browser extensions intercept keyboard shortcuts; try the Edit menu instead.
  • Text with special characters is not found. Characters like asterisks, question marks, and parentheses can behave as wildcards in some search modes. Turn off regular expressions if that option is enabled, or escape the character.

Frequently Asked Questions

Does Find and Replace work on all sheets at once?

Yes. In the dialog, set Search to All sheets. The default is the current sheet, so change it explicitly if you want a spreadsheet-wide replacement.

Can I replace formatting, not just text?

No. Find and Replace works on cell contents (text, numbers, and formula text), not on cell colors, fonts, or borders. Use conditional formatting or the Paint format tool for formatting changes.

Is there a limit to how many replacements I can make?

There is no published fixed limit for Replace all in Google Sheets, but very large spreadsheets may take a moment to process. For huge datasets, working in a specific range is more reliable.

Can I undo a Replace all?

Yes, immediately after the operation with Ctrl+Z or Cmd+Z. Once you make another edit, the undo history moves on and the replacement can no longer be reversed in one step.

Does it search hidden sheets or filtered rows?

Find and Replace searches hidden sheets when the scope is All sheets. Filtered-out rows are still searched because filtering hides rows visually but does not remove their contents.

Can I use wildcards or regular expressions?

Google Sheets supports regular expressions in Find and Replace when the option is enabled in the dialog. Without it, special characters are treated literally. Wildcards are limited compared with dedicated regex tools, so test on a small range first.

In this article
  1. What You'll Need
  2. Step-by-Step
  3. Common Mistakes
  4. Tips
  5. Troubleshooting
  6. Frequently Asked Questions