Skip to content

Find and replace

Search displayed values, formula text and attached links in a selected range, the current sheet or all visible sheets. Replace one match or all matches, with one undo step for a replacement across sheets.

  1. Open the magnifier or press Ctrl/⌘+F from anywhere in the book: a cell, a sheet tab, toolbar buttons or the status bar. Enter a query; Enter/Shift+Enter and the arrows move forward/backward through results.
  2. Open ⋮ or Ctrl/⌘+H. Choose This sheet, All sheets or Selected range under Search in.
  3. Enter A1:B10, A:C, 2:8 or several areas separated by a semicolon. The grid button uses the current selection, including separate areas. The sheet name stays visible.
  4. Choose case, entire cell, regular expression, formula or link matching.
  5. Enter Replace with; choose Replace or Replace all. An empty replacement removes the matched text. Done, Escape or the close button closes search.

On phones, search slides up from the bottom as a full-width drawer. Swipe the handle down, choose Done or press Escape to close it; there is no close cross. The sheet remains available.

  • Default scope is the current sheet. The initial selected range is captured before search selects its first match; navigating results does not expand that range.
  • All sheets navigates across visible tabs. Hidden sheets are excluded. Pivot sheets are searchable but cannot be replaced. Readers can use scopes and flags, without mutation controls.
  • Query, replacement, flags and scope survive sheet changes within one book. Closing or opening a different book clears the session; reloading does not restore it. The query field does not take focus when the sheet changes: clicking a sheet tab returns the keyboard to the new sheet’s grid, and moving between tabs with the arrows keeps focus on the tab.
  • Ctrl/⌘+F and Ctrl/⌘+H do not open spreadsheet search while you type in a cell, the formula bar, the address box or the chat, or while a window is open over the spreadsheet.
  • Open search only highlights matches. Only actions in the search bar itself move the selection, keyboard and scroll to a match: typing the query, Enter, the Next match and Previous match arrows, flags, scope and replacement. Pasting, selecting a range, formatting from the toolbar or keyboard, formulas, undo and co-author edits leave the selection alone — matches are only recounted. Keyboard search across sheets keeps the query caret.
  • In a large book, while the search bar shows Loading…, the jump to the first match waits for data only while you stay in the search bar. A click or key press elsewhere cancels that jump; highlighting and the match count remain.
  • The font size field on the toolbar does not keep the keyboard: Enter and Escape return it to the grid — see Formatting the spreadsheet.
  • Windowed books prepare complete data first. The supported search budget is 200,000 cell records and 8 MiB of JSON per book. Larger books show an explicit limit; ordinary editing through cell windows continues. Larger-book search is not supported in this version.
  • At most 5,000 results are shown. More matches disable Replace all to prevent a partial batch; narrow the query or scope before replacing.
  • Regex uses RE2JS, with patterns up to 5,000 characters and no lookaround/backreferences. Entire-cell matching also applies to regex. Regex replacement supports $1, $2 and backslash-n/r/t escapes. Ordinary replacement preserves dollar signs literally.
  • Values use the interface’s number/date format. Formula matching searches formula text. Without it, replacing a formula result normally writes a value. A pure decimal-symbol swap instead changes formatting and retains the formula and hidden precision. Notes, formatting, attached links and other metadata remain. Attached link destinations can be searched and replaced without changing their labels; HYPERLINK() URLs are searched through formula text.
  • Protected-range warnings precede the whole batch. If the book changes while a warning is open, confirmation cancels the replacement and asks you to run it again.

Numeric-looking text stays text during a decimal-symbol swap. Mixed numeric/text/link changes remain one atomic batch; more than 200 separate operations require a narrower range.

  • No matches: check the query and options.
  • Check the range/expression: correct the input; invalid ranges never fall back to the whole sheet.
  • Could not load: reconnect and Retry.
  • Search limit: use a smaller separate book; retrying the same full response will not help.
  • Over 5,000: narrow the scope/query.
  • Data changed: inspect refreshed results and run replacement again.
  • A rejected write rolls back through the ordinary workbook save flow.