Sub topic 2
Entering data: Enter, Tab, and Esc
This chapter covers the moment an entry becomes part of a cell. You will learn what commit and cancel mean, which keys do each, where the active cell goes afterward, and the errors that cause lost or misplaced entries. It assumes you can open a workbook, select a cell by clicking it, and know what rows, columns, and cells are.
Typing is not the same as storing
When you select a cell and start typing, Excel does not change the cell yet. The characters go into an edit buffer, which you can see in both the cell and the formula bar. The cell's real contents stay as they were until you commit the entry.
While you type, Excel is in Enter mode. The status bar at the bottom left shows the word "Enter". Two things follow from this:
- The entry exists only in the buffer. If you cancel, the buffer is thrown away and the cell keeps its previous contents.
- Most of the ribbon is unavailable. Buttons are grayed out until you commit or cancel, because Excel cannot format or sort a cell whose contents are not final.
If you select a cell that already holds something and type, your typing replaces the old contents once you commit. To change part of the old contents instead, use edit mode, which a later chapter covers.
Committing an entry
To commit an entry means to write the buffer into the cell. These keys do it:
| Key | Commits? | Where the active cell goes next |
|---|---|---|
| Enter | Yes | Down one cell (default) |
| Shift+Enter | Yes | Up one cell |
| Tab | Yes | Right one cell |
| Shift+Tab | Yes | Left one cell |
| Arrow keys | Yes (in Enter mode) | One cell in the arrow's direction |
| Ctrl+Enter | Yes | Stays on the same cell |
| Click another cell | Yes | The cell you clicked |
| Checkmark (✓) beside the formula bar | Yes | Stays on the same cell |
Two of these have exceptions. Arrow keys commit only while the status bar says "Enter". Once you are in edit mode (after pressing F2), arrow keys move the text cursor inside the cell instead. Clicking another cell while you are typing a formula does not commit. It inserts a reference to the clicked cell into the formula. The chapter on entering formulas explains this.
The Tab and Enter return behavior
Tab and Enter work together to speed up row-by-row entry. If you start in A2 and press Tab after each entry, you move across B2, C2, and D2. When you then press Enter, Excel jumps back to the column where you began the Tab sequence, which is A3, not D3. This works only if you used Tab without pressing an arrow key or clicking in between.
The worked example below shows it with a three-column table.
- Click A2.
- Type
Pensand press Tab. - Type
12and press Tab. - Type
1.50and press Enter.
The active cell is now A3, ready for the next row. You never reached for the mouse or an arrow key.
If you press an arrow key or click a cell partway through the row, Excel forgets where the Tab sequence started. Enter then simply moves down one cell from wherever you are.
Changing the direction Enter moves
Moving down is a default, not a rule. You can change it in File > Options > Advanced, under Editing options:
- The setting After pressing Enter, move selection has four directions: Down, Right, Up, and Left.
- Clearing the checkbox makes Enter commit the entry and leave the active cell where it is.
This is an application-wide setting, so it applies to every workbook, not just the open one. If a colleague's Excel behaves differently from yours when you press Enter, check this option first.
Entering data across a selected range
When you select a block of cells before typing, Enter and Tab move the active cell only inside that block. Excel starts at the top-left cell, goes down the first column with Enter, then continues at the top of the next column. Tab goes across the row. When it reaches the end of the selection, it wraps back to the start.
This makes a selected range a guard rail. You cannot accidentally run past the edge of the table you are filling. The chapter on range entry and Ctrl+Enter covers this in more detail.
Canceling an entry
To cancel an entry means to discard the buffer and leave the cell unchanged. Two methods work only while you are still typing:
- Press Esc.
- Click the X (Cancel) button next to the formula bar.
After Esc, the cell shows exactly what it showed before you began typing. If the cell was empty, it is empty again.
Esc does nothing useful once you have committed. At that point the entry is already in the cell, and you need Undo (Ctrl+Z) to reverse it. Undo is covered in its own chapter.
Common errors and how to avoid them
Overwriting a cell you meant only to select
Because typing into a selected cell replaces its contents, a stray keystroke can destroy data. If you notice the cell is in Enter mode and you did not intend to type, press Esc before doing anything else.
Entries that look committed but are not
If the status bar still says "Enter" or "Edit", the cell is still open. Symptoms include grayed-out ribbon buttons and a blinking cursor in the cell. Sorting, formatting, or saving may fail or behave strangely until you press Enter or Esc. The fix is to commit or cancel, then retry.
Enter moving the wrong way
If Enter moves right, up, or nowhere, the direction option has been changed (see above). If Enter returns to an unexpected column, you probably mixed Tab with arrow keys or mouse clicks, so Excel lost the starting column.
Entries rejected with a message
Excel may show a dialog instead of committing. A typical case is a formula with an error in its syntax. Excel offers to correct it or asks you to fix it. Another case is a cell with data validation that forbids your value. In both cases the cell stays in edit state until you fix the entry or press Esc. The data validation chapter covers the second case.
Losing an entry by pressing Esc too late
Esc discards the whole buffer, not only the last character. If you typed a long entry and press Esc by habit, everything is gone and Undo cannot bring it back, because nothing was ever committed. Press Enter if you want to keep it, and fix it afterward.
A short practice sequence
Try this on a blank sheet to see each behavior.
- Click A1, type
Draft, and press Esc. A1 stays empty. - Type
Finaland press Enter. A1 holdsFinaland A2 is active. - Click A1, type
Changed, and press Ctrl+Enter. A1 holdsChangedand A1 stays active. - Press Ctrl+Z. A1 returns to
Final. - Select A1:B3, then type
1and press Tab,2and press Tab,3and press Tab. Watch the active cell: it goes A1, B1, then wraps to A2.
Exercise
You start in B2 and type an entry, press Tab, type another entry, press Tab, and type a third entry. You then press Enter. Which cell is active afterward, assuming the default settings and no arrow keys or clicks in between? What changes if you click on D2 before pressing Enter?
Show answer
The active cell is B3, because Enter returns to the column where the Tab sequence began. If you click D2 first, Excel forgets the starting column, so Enter simply moves down one cell from where you are, and the active cell is D3.
Exercise
You typed Total into a cell that already held Subtotal, and you have not pressed any key yet. How do you keep Subtotal? How does your answer change after pressing Enter?
Show answer
Before committing, press Esc (or click the X button beside the formula bar). The buffer is discarded and the cell keeps Subtotal. After pressing Enter, the old value has been replaced, so press Ctrl+Z to undo the entry.