Sub topic 8
Finding and Replacing Values
Assume you know how to select cells, enter data, and use basic keyboard shortcuts. This chapter shows how to locate values quickly and change them in a controlled way. Find and replace can edit text, numbers, formulas, and formatting across part or all of a spreadsheet.
Find a value
To search the current sheet:
- Open Edit > Find and replace, or press
Ctrl+Hon Windows and ChromeOS. On macOS, press⌘+Shift+H. - Enter the value in Find.
- Choose Find to move through matching cells.
- Choose Replace for one match or Replace all for every match in the selected search scope.
For a quick search without replacing anything, use Edit > Find and replace or press Ctrl+F or ⌘+F.
The search can include the current sheet, every sheet in the file, or a specific range. Select a range before opening the dialog when you want to limit the operation to that range.
Control what matches
Find and replace provides options that prevent accidental edits:
- Match case treats uppercase and lowercase letters as different.
- Match entire cell contents matches
Openbut notOpened. - Search using regular expressions lets you describe a pattern instead of one exact value. A regular expression is a rule for matching text.
- Also search within formulas looks at the formula text rather than only the displayed result.
- Search all sheets includes every tab in the spreadsheet.
Before selecting Replace all, check the search scope and preview several matches with Find. A short value such as CA can appear inside longer text, such as Canada, unless you select Match entire cell contents.
Replace text without changing other content
Suppose a status column contains In progress, and your team now uses Active.
- Select the status range, such as
C2:C100. - Open Edit > Find and replace.
- Enter
In progressin Find. - Enter
Activein Replace with. - Set Search to the selected range if that option is available.
- Use Find to inspect matches.
- Select Replace all.
If the values are part of formulas, decide whether you want to replace the displayed results or the formula text. For example, replacing 2025 inside formulas can alter references or text strings. Use Also search within formulas only when that change is intentional.
Regular expressions can help with consistent cleanup. For example, searching for \s+$ can find spaces at the ends of cells when regular-expression search is enabled. Test the pattern on a small range first. Find and replace does not provide a general transaction rollback, so use Undo immediately if the result is wrong.
Exercise
A sheet contains Open, Opened, and Open items. How can you replace only the cells whose complete value is Open?
Show answer
Open Find and replace, enter Open, enable Match entire cell contents, select the intended sheet or range, review the matches, and then choose Replace all.