Open Find and Replace with a keyboard shortcut

The fastest way to find and replace text in Google Sheets is to use Ctrl+H on Windows or Cmd+H on Mac. This opens the Find and Replace dialog box instantly, no matter where you are in your spreadsheet. The dialog appears as a panel on the right side of your screen.

If the keyboard shortcut does not work, you can also reach Find and Replace through the menu. Click Edit at the top, then select Find and replace from the dropdown. Both methods open the same tool.

Key Takeaways

  • Use Ctrl+H (Windows) or Cmd+H (Mac) to open Find and Replace instantly.
  • Type the text you want to find in the first box and the replacement text in the second box.
  • Click "All sheets" to search your entire spreadsheet, or leave it unchecked to search only the current sheet.
  • Use "Match entire cell contents" if you want to replace only cells that contain exactly what you typed, nothing more.
  • Click "Replace all" to change every match at once, or "Replace" to change them one at a time.

Type what you want to find and what to replace it with

In the Find and Replace panel, the first box is labeled Find. Type the exact text you want to search for. If you are looking for "John" in a list of names, type "John" in this box.

The second box is labeled Replace with. Type what you want to put in place of the text you found. If you want to change "John" to "Jonathan", type "Jonathan" here. Leave this box empty if you want to delete the text instead of replacing it with something else.

Google Sheets searches for your text exactly as you type it. If you search for "john" in lowercase, it will not find "John" with a capital J unless you check the box labeled Match case. By default, the search ignores uppercase and lowercase differences.

Choose whether to search one sheet or all sheets

Below the Find and Replace boxes, you will see a checkbox that says All sheets. If you check this box, Google Sheets searches every sheet in your spreadsheet. If you leave it unchecked, the search only looks at the sheet you are currently viewing.

Checking "All sheets" is useful when you have multiple sheets with similar data and you want to make the same change everywhere at once. Leave it unchecked if you only want to change text in one specific sheet.

Decide whether to match entire cells or partial text

By default, Find and Replace looks for your text anywhere inside a cell. If you search for "cat" and a cell contains "category", it will find that cell and replace "cat" with your replacement text, leaving "egory" behind.

If you want to replace only cells that contain exactly what you typed and nothing else, check the box labeled Match entire cell contents. Now if you search for "cat", it will only find cells that say "cat" by itself, not "category" or "concatenate".

This setting prevents accidental replacements. For example, if you are replacing product codes and you search for "100", matching entire cell contents will not accidentally change "1000" or "100A" to something else.

Replace one match at a time or all at once

After you have typed what to find and what to replace it with, you have two choices. The Replace button (without "all") changes only the first match it finds. Google Sheets highlights that cell and shows you what it is about to change. You can then click Replace again to change the next match, or skip it and move to the one after that.

The Replace all button changes every match in your search at once. If you search for "2024" and click Replace all, every cell containing "2024" will be replaced with your replacement text immediately. Google Sheets then tells you how many replacements it made.

Use Replace all when you are confident the change is correct everywhere. Use Replace one at a time when you want to check each change before it happens, especially if your search term appears in places you might not expect.

Use regular expressions for advanced searches

Google Sheets can search using regular expressions, which are patterns that match text in flexible ways. For example, a regular expression can find any cell that starts with a number, or any cell containing a phone number format, without typing out every possibility.

To use regular expressions, check the box labeled Match using regular expressions in the Find and Replace panel. Then type your pattern in the Find box. A simple example: the pattern ^[0-9] finds any cell that starts with a number. The pattern @gmail\.com$ finds any cell that ends with "@gmail.com".

Regular expressions are powerful but take practice to learn. If you are new to them, start with simple searches and use Replace one at a time until you understand how your pattern behaves. Google Sheets documentation has a full list of regular expression patterns you can use.

Undo a replacement if you made a mistake

If you click Replace all and realize the change was wrong, press Ctrl+Z on Windows or Cmd+Z on Mac immediately. This undoes the replacement and restores your original text. You can undo multiple times to go back several steps if needed.

Undo works best right after you make the mistake. If you close the spreadsheet and come back later, you may not be able to undo the change. For important spreadsheets, consider making a copy before doing a large Replace all operation, so you have a backup if something goes wrong.

Frequently Asked Questions

Can I replace text in only certain columns?

Find and Replace searches the entire sheet or all sheets, not specific columns. To limit your search, select the columns you want to change first, then open Find and Replace. Google Sheets will only search within your selection.

What if I want to find text but not replace it?

Leave the "Replace with" box empty and click Replace or Replace all. Google Sheets will find every match and highlight it, but will not change anything. This is useful for counting how many times something appears in your spreadsheet.

Does Find and Replace work on formulas?

Yes. If you search for "SUM", it will find cells containing the SUM formula. Be careful when replacing parts of formulas, because changing them can break your calculations. Use Replace one at a time to check each formula before changing it.

Can I search for line breaks or special characters?

You can search for line breaks using the regular expression \n if you check "Match using regular expressions". For other special characters like commas or quotation marks, type them directly in the Find box. Google Sheets will search for them as literal text.

What happens if I search for something that does not exist?

Google Sheets will tell you "No matches found" and nothing will be replaced. This is safe — it means your search term does not appear anywhere in the sheet or sheets you selected.