Sub topic 6
Entering and Editing Data
This chapter assumes you can open a spreadsheet in Google Sheets, you know that a cell is the box where a row and a column meet, and you can click a cell to select it. You will learn how data gets into a cell, how to change it afterward, and which mistakes cause the most trouble. The next chapter covers how Sheets interprets what you type. Here the focus is on the mechanics of typing, editing, and moving around.
How a cell accepts input
A cell has two states. In select mode, the cell has a blue border and the keyboard moves the selection. In edit mode, a text cursor appears inside the cell and the keyboard changes the content. The distinction explains most beginner confusion. Pressing an arrow key in select mode moves to a neighboring cell. Pressing the same key in edit mode moves the cursor within the text.
You enter edit mode in three ways:
- Start typing while a cell is selected. This replaces whatever the cell held.
- Double-click the cell, or press Enter on a selected cell. This keeps the existing content and places the cursor at the end.
- Click the cell, then click in the formula bar. The formula bar is the long input box above the grid, and it shows the full content of the selected cell.
The first method is the one that surprises people. If you select a cell that contains a customer name and start typing, the old name is gone as soon as you commit the new text. You can recover from this with undo, covered below.
Committing and cancelling
An entry is not stored until you commit it. While you type, the text exists only in the editing box. You have these ways to finish:
| Action | Key | Result |
|---|---|---|
| Commit and move down | Enter | Saves the entry, selects the cell below |
| Commit and move right | Tab | Saves the entry, selects the cell to the right |
| Commit and move up | Shift+Enter | Saves the entry, selects the cell above |
| Commit and move left | Shift+Tab | Saves the entry, selects the cell to the left |
| Cancel | Esc | Discards the entry, restores the previous content |
Clicking another cell also commits the entry. Esc is the safe exit when you realize you are editing the wrong cell. Nothing changes and the original content returns.
Entering a block of data efficiently
When you fill a table row by row, the Tab and Enter keys work together. Type the first value, press Tab to move right, type the next, and continue across the row. When you press Enter at the end of the row, Sheets returns to the column where you started pressing Tab and moves down one row. You can type a whole table without touching the mouse.
Suppose you are building a small expense table. Click cell A1 and type the following, pressing Tab between items and Enter at the end of each line:
Item, Tab,Quantity, Tab,Unit price, EnterNotebook, Tab,4, Tab,2.50, EnterPen, Tab,10, Tab,0.80, EnterStapler, Tab,1, Tab,7.25, Enter
After the last Enter, the selection sits in A5, ready for the next row. The result looks like this:
| Row | A | B | C |
|---|---|---|---|
| 1 | Item | Quantity | Unit price |
| 2 | Notebook | 4 | 2.50 |
| 3 | Pen | 10 | 0.80 |
| 4 | Stapler | 1 | 7.25 |
Keep this table. Later chapters use the same layout for formulas.
Editing existing content
Editing means changing a cell without retyping all of it. Use edit mode, then move the cursor with these keys:
- Left and Right arrows move one character.
- Ctrl+Left and Ctrl+Right (Cmd+Left and Cmd+Right on a Mac for line start and end, Option on a Mac for words) move by word or to the line edges.
- Home and End jump to the start or end of the line.
- Backspace deletes the character before the cursor, and Delete removes the one after it.
The formula bar is useful for long entries. A cell shows only what fits its width, but the formula bar shows everything. You can drag its lower edge down, or use the arrow at its right end, to expand it for multi-line text.
Clearing versus deleting
Pressing Delete or Backspace on a selected cell (select mode) clears the content. The cell stays in place. This is different from deleting a row or column, which removes the cells and shifts the neighbors. To remove a row, right-click its number and choose Delete row. Clearing content leaves formatting alone. To remove formatting too, select the cell and use Format > Clear formatting.
Line breaks inside a cell
Enter commits the cell, so it cannot add a line break. Press Ctrl+Enter on Windows, or Cmd+Enter on a Mac, while in edit mode to insert a new line within the cell. The cell then shows the text on several lines only if wrapping is on, which is a formatting option covered in a later chapter. Without wrapping, you see just the first line or a single run of text.
Undo, redo, and recovering from mistakes
Sheets keeps a list of your recent actions. Press Ctrl+Z (Cmd+Z on a Mac) to undo the last one, and Ctrl+Y or Ctrl+Shift+Z to redo it. Each commit counts as one step, so undoing a mistyped cell restores the previous value. The Edit menu also lists these commands.
Undo covers your current session. If you closed the tab and the mistake was saved, use version history instead. That feature is covered in a later chapter on autosave.
Copying, cutting, and moving data
You can reuse entries instead of retyping them.
- Copy (Ctrl+C) duplicates the selection. Paste (Ctrl+V) places it at the selected cell.
- Cut (Ctrl+X) removes the selection when you paste it. The content moves.
- Drag and drop moves a selection. Select cells, point at the edge of the blue border until the cursor becomes a hand, then drag.
If you paste text copied from a web page or another document, Sheets may bring its fonts and colors along. Use Paste special > Values only (Ctrl+Shift+V pastes without formatting) to keep just the content.
Filling a series with the fill handle
The small blue square at the bottom-right corner of a selected cell is the fill handle. Dragging it copies the cell into the cells you cross. If you select two or more cells that show a pattern first, Sheets continues it.
For example, type 1 in A1 and 2 in A2, select both, and drag the handle down. Sheets continues with 3, 4, 5. The same works for dates, such as 1/1/2026 in one cell and 1/2/2026 in the next, and for names such as Monday, which extends to Tuesday. If you drag a single number, Sheets copies it instead of counting. To get a count from a single starting cell, enter two values to establish the step.
Double-clicking the fill handle fills downward as far as the neighboring column has data. This saves dragging across a long table.
Selecting ranges before you act
Many editing tasks work on more than one cell. A range is a rectangular group of cells, written with the first and last cells separated by a colon, such as B2:B4.
- Click and drag across cells to select a range.
- Click one cell, then Shift+click another to select everything between them.
- Ctrl+click (Cmd+click on a Mac) adds separate cells to the selection.
- Click a column letter or row number to select the entire column or row.
- Ctrl+A selects all cells in the sheet.
Typing a value and pressing Ctrl+Enter while several cells are selected fills the same entry into all of them in one step.
Common errors and how to avoid them
The following problems appear often when people enter data.
Overwriting by accident
As noted earlier, typing into a selected cell replaces its content. If you see a value vanish, press Ctrl+Z at once.
Hidden characters and extra spaces
A trailing space makes Pen different from Pen. Lookups and filters treat them as different values, and the difference is invisible on the screen. Avoid typing a space after an entry. To clean existing data, use Data > Data cleanup > Trim whitespace.
Numbers stored as text
If a number is left-aligned, or a green triangle or an apostrophe appears, Sheets may treat it as text. Text values cannot be added together properly. Typing a leading apostrophe, for example '007, deliberately keeps leading zeros and stores the entry as text. The apostrophe is hidden in the cell but shows in the formula bar. Avoid it for values you plan to calculate with. The next chapter explains the rules in detail.
Dates changing form
Typing 3/4 may become a date such as March 4 instead of the fraction you meant. Sheets applies its own interpretation to anything that looks like a date. If you want literal text, begin the entry with an apostrophe.
Entries that begin with an equals sign
Anything starting with = is read as a formula. To store text that begins with an equals sign, such as a label, begin with an apostrophe. A formula you type correctly looks like this:
=B2*C2This multiplies the quantity by the unit price in row 2. It uses cell references, so the result updates when either value changes. Formulas are the subject of a later chapter, and for now you only need to know that the = is what triggers them.
Autocomplete suggestions
When you type in a column that already has similar text, Sheets may suggest a completion in grey. Pressing Enter or Tab accepts it. If you want to type something shorter, such as Pen when Pencil exists, press Delete to dismiss the suggestion before you commit, or the extra letters are added.
Column too narrow
A long entry may seem cut off, or a number may appear as #### in some spreadsheet programs. In Sheets, long text spills into an empty neighbor cell but is clipped if the neighbor has content. The data is still stored in full. Widen the column by double-clicking the boundary between column letters, and the column fits its content.
Data validation as a preview of cleaner entry
Typos are easier to prevent than to fix. Data > Data validation lets you restrict a cell or range to a list of choices, a number range, or a date. Sheets then rejects or warns about other input. This chapter only introduces the idea. If several people enter data in the same sheet, validation keeps their entries consistent.
Summary of the key habits
- Know whether you are in select mode or edit mode before pressing keys.
- Use Tab and Enter to fill rows quickly, and Esc to back out.
- Check the formula bar to see what a cell really holds.
- Use undo first when something goes wrong.
- Keep one kind of data in each column, such as only numbers in Quantity.
Exercise
You select cell B2, which holds the number 4, and type 5 followed by Enter. Then you notice you meant to change only the cell C2. How do you restore B2, and what should you do next time to avoid overwriting a cell when you want to edit part of its content?
Show answer
Press Ctrl+Z (Cmd+Z on a Mac) to undo the commit, which puts 4 back in B2. Next time, make sure you are in the right cell before typing. To change part of a cell's content instead of replacing it, double-click the cell or press Enter first to enter edit mode, then move the cursor and edit. Pressing Esc before committing also cancels an entry and leaves the old value in place.
Exercise
Using only the keyboard, how would you enter the values Eraser, 6 and 0.40 in A5, B5 and C5 so that the selection ends in A6?
Show answer
Select A5, type Eraser, press Tab, type 6, press Tab, type 0.40, and press Enter. Because you used Tab to move across the row, Enter returns the selection to column A, one row down, which is A6.
Exercise
A cell shows only the first part of a long product description. How can you confirm the full text was saved, and how do you make the whole text visible in the grid?
Show answer
Select the cell and read the formula bar, which shows the full stored content. To show it in the grid, widen the column by double-clicking the boundary to the right of the column letter, or turn on text wrapping so the text flows onto several lines.