Sub topic 5
Editing Cells and Undoing Changes in Google Sheets
Assume you can open a spreadsheet, select cells, and use basic copy and paste. This chapter focuses on changing existing data safely, recovering from mistakes, and choosing the right editing method for a single cell or a large range.
Edit a cell without losing nearby data
A cell has two useful editing modes:
- Replace mode: Select the cell and start typing. Your new entry replaces the current content after you press Enter.
- Edit mode: Double-click the cell, click the formula bar, or press
F2. You can then change part of the existing content.
For example, suppose cell B2 contains Pending:
- Click B2 and type
Complete. - Press Enter. The old value is replaced.
- Select B2 again and press
F2. - Move the cursor into the text, change only part of it, and press Enter.
Press Esc while editing to cancel the changes made during that edit. Pressing Enter accepts the edit and usually moves the selection down one row. Pressing Tab accepts it and moves the selection to the next column.
When a cell contains a formula, the formula bar shows the formula itself. Editing the displayed result directly is not possible. Change the formula or change the cells it references instead.
Undo and redo changes
Undo reverses recent actions in the current editing session. Use either:
- Edit > Undo
Ctrl+Zon Windows or ChromeOSCommand+Zon macOS
Redo restores an action that you just undid. Use Edit > Redo, Ctrl+Y or Ctrl+Shift+Z on Windows, or Command+Shift+Z on macOS.
Undo applies to actions such as typing, deleting, formatting, moving ranges, and pasting. A single paste is normally one undo step, even if it changed many cells.
Undo is sequential. If you make a new change after undoing, the undone action may no longer be available through Redo. For older changes, open File > Version history > See version history. Version history shows saved versions, editors, and timestamps. You can inspect an earlier version and restore it, or copy needed values without replacing the current sheet.
A safe editing workflow
Use this sequence when changing a block of data:
- Select the target range and confirm its address in the name box.
- Make a small change first.
- Check the result and any formulas that depend on it.
- Continue with the larger edit.
- If the result is wrong, undo immediately before making unrelated changes.
- For a change made earlier, use version history rather than repeatedly undoing current work.
Selecting a range before typing can be dangerous. Typing while several cells are selected may replace the selected cells after you confirm the entry. For a multi-cell change, copy a backup to another sheet or use version history when the data matters.
Common editing errors
- Pressing Delete removes cell contents but usually leaves formatting in place.
- Pasting over a range can replace formulas, formats, or both, depending on the paste command.
- Editing a formula without checking its references can produce a valid-looking but incorrect result.
- Undoing too late may reverse several correct actions. Stop and inspect the sheet after each undo.
Exercise
Cell C5 contains the formula =A5+B5, but you need to change only the value in A5. What should you edit, and why?
Show answer
Edit A5, not C5. C5 calculates its result from A5 and B5, so changing A5 lets the formula recalculate while preserving the formula.