Sub topic 3
Selecting faster with the keyboard and Name Box
This chapter assumes you can open a workbook, enter text, numbers, and simple formulas, and find your way around the ribbon. It also assumes you know what a cell, a range, and A1 notation are, and that you can select cells with the mouse. Here you will learn how to select without dragging, which is faster and more accurate on large sheets.
Why use the keyboard and Name Box
Dragging works well for small ranges. It fails when the range is hundreds of rows long, because the sheet scrolls unpredictably and you can overshoot the end. Keyboard shortcuts and the Name Box let you state exactly which cells you want. They also make your work repeatable, since you can use the same keys on any sheet.
The Name Box is the small field to the left of the formula bar. It normally shows the address of the active cell. You can also type into it.
Selecting with the Name Box
Click the Name Box, type an address, and press Enter. Excel selects that address and scrolls to show it.
Name Box: B2:D10
Press Enter to select the range B2:D10The Name Box accepts several kinds of input:
| You type | Result |
|---|---|
| `F15` | Selects the single cell F15 |
| `B2:D10` | Selects the rectangular range B2:D10 |
| `3:3` | Selects all of row 3 |
| `B:B` | Selects all of column B |
| `A1:A500,C1:C500` | Selects two separate ranges at once |
| `B2:D10 C5:F8` | Selects only the cells the two ranges share (a space means intersection) |
A comma separates areas that are not adjacent. A space finds the overlap. Mixing the two up is a common source of surprise.
Selecting with a defined name
If you have given a range a name, such as SalesData, you can type that name into the Name Box or pick it from the dropdown arrow. Excel selects the named range, even if it is on another sheet in the same workbook. Named ranges are useful when a range is far from where you are working.
Moving the active cell
Before you can extend a selection, you need to move around quickly. These shortcuts move the active cell without selecting a range.
| Keys | Action |
|---|---|
| Arrow keys | Move one cell |
| Ctrl + Arrow | Jump to the edge of the current data region |
| Home | Go to column A of the current row |
| Ctrl + Home | Go to A1 |
| Ctrl + End | Go to the last used cell on the sheet |
| Page Down / Page Up | Move one screen down or up |
On a Mac, the Ctrl key in these shortcuts is usually Command, and some laptops need the Fn key for Home, End, and Page keys.
The Ctrl + Arrow jump behaves in a specific way. If the active cell holds data and the next cell holds data, Excel jumps to the last filled cell in that direction. If the next cell is empty, Excel jumps to the next filled cell. If there is nothing beyond, it goes to the sheet edge. This is why blank cells inside a column can stop the jump early.
Extending a selection with Shift
Holding Shift while you move turns movement into selection. The cell where you started stays as the anchor, and the opposite corner moves.
- Shift + Arrow extends the selection one cell at a time.
- Ctrl + Shift + Arrow extends it to the edge of the data region.
- Shift + Page Down extends it one screen.
- Ctrl + Shift + End extends it to the last used cell on the sheet.
- Ctrl + Shift + Home extends it back to A1.
A common pattern is to click the first cell of a table, then press Ctrl + Shift + Right Arrow followed by Ctrl + Shift + Down Arrow. This selects the whole block, however long it is, as long as there are no gaps.
Click B2
Press Ctrl+Shift+Right Arrow -> selects B2 to the last filled cell in row 2
Press Ctrl+Shift+Down Arrow -> extends the selection down to the last filled rowSelecting the whole data region
Ctrl + A selects the current region, which is the block of filled cells surrounding the active cell, bounded by blank rows and columns. Pressing Ctrl + A a second time selects the entire worksheet. If the active cell is on an empty area, the first press selects the entire sheet.
Ctrl + * (on the numeric keypad, or Ctrl + Shift + 8 on many keyboards) also selects the current region.
Selecting rows and columns
| Keys | Action |
|---|---|
| Shift + Space | Select the whole row of the active cell |
| Ctrl + Space | Select the whole column of the active cell |
| Ctrl + Shift + Space | Select the whole sheet (or the current region first, in a data area) |
After selecting one row, hold Shift and press Up or Down Arrow to select more rows. After selecting one column, hold Shift and press Left or Right Arrow to add columns.
Selecting non-adjacent areas
To select areas that do not touch, hold Ctrl while clicking or dragging with the mouse. Each new area is added to the selection.
The keyboard route uses Shift + F8, which turns on Add to Selection mode. The status bar shows "Add to Selection." In this mode you can select one area, press Shift + F8, move elsewhere, and select another area without holding Ctrl. Press Shift + F8 again or Esc to leave the mode.
Several limits apply to multi-area selections:
- Most commands that change values or formats work across all areas.
- Copy does not work on many multi-area selections unless the areas line up in the same rows or the same columns. Excel then shows the message "That command cannot be used on multiple selections."
- Sorting and many table commands also refuse multiple selections.
Extend mode with F8
F8 turns on Extend Selection mode. The status bar shows "Extend Selection." Each arrow key press then extends the selection from the anchor, without holding Shift. This is helpful when you need to hold the keys for long periods or have limited hand mobility. Press F8 again, or Esc, to turn it off.
If your keystrokes seem to select cells when you only meant to move, check the status bar. Extend mode left on by accident is a frequent cause.
Worked example
Suppose a sheet has headings in row 1 and 2,000 rows of sales data in columns A to F. You want to apply a number format to the Amount values in column D, rows 2 to 2001.
- Click the Name Box, type
D2:D2001, and press Enter. - Apply the format from the ribbon.
Alternatively, using only the keyboard:
- Press Ctrl + Home to go to A1.
- Press Right Arrow three times to reach D1, then Down Arrow once to reach D2.
- Press Ctrl + Shift + Down Arrow to select to the last filled cell in column D.
If column D contains a blank cell partway down, step 3 stops there. In that case the Name Box method is more reliable because it does not depend on the data being continuous.
Common errors
- Selection stops early. A blank cell inside the data ends a Ctrl + Arrow jump. Check for blanks, or type the range in the Name Box.
- Wrong area selected. Ctrl + Shift + End goes to the last used cell, which may be far below your data if old formatting or stray entries remain.
- Typing in the Name Box creates a name. If you type a word that is not a valid address, such as
Total, and press Enter, Excel defines a name for the active cell instead of showing an error. Use the Name Manager to remove names you did not mean to create. - Extend mode stuck on. Press Esc or F8 and check that the status bar no longer shows "Extend Selection."
- Selection lost after scrolling. Scrolling with the mouse wheel does not change the selection, but clicking does. Use the keyboard to move if you want to keep what you selected.
Exercise
A sheet has data in A1:E500 with no blank cells. The active cell is A1. Give two ways to select A1:E500, one using the keyboard and one using the Name Box.
Show answer
Keyboard: press Ctrl + Shift + Right Arrow to reach E1, then Ctrl + Shift + Down Arrow to reach E500. Alternatively press Ctrl + A once to select the current region. Name Box: click the Name Box, type A1:E500, and press Enter.
Exercise
You type A1:A100,C1:C100 in the Name Box and press Enter. What gets selected, and how would you change the entry to select only the cells that both ranges share?
Show answer
Both columns' ranges are selected as two separate areas, because the comma means union. To select only the shared cells, use a space instead of a comma. Because A1:A100 and C1:C100 do not overlap, the result would be empty, so Excel would show an error. A space only works for ranges that actually intersect, such as A1:C10 C5:E20.