Sub topic 2
Selecting Cells, Rows, Columns, and Ranges
Every move, copy, or fill in Excel starts with a selection. This chapter covers the mouse-based ways to select cells, rows, columns, and ranges, and the mistakes that cause wrong selections. It assumes you can open and save a workbook, enter data and simple formulas, and recognize A1 notation such as B2:D10.
What a selection is
A selection is the set of cells that your next command will act on. One cell in the selection is the active cell. It is shown with a white background, and it receives anything you type. The other selected cells are shaded.
Typing in a multi-cell selection replaces only the active cell's contents. Commands such as Copy, Delete, or Fill act on every selected cell.
Selecting with the mouse
| Goal | Action |
|---|---|
| One cell | Click it |
| A rectangular range | Click the first cell and drag to the last, or click the first cell, hold Shift, and click the last |
| A whole row | Click the row number at the left |
| A whole column | Click the column letter at the top |
| Several adjacent rows or columns | Click the first header and drag across the others |
| Non-adjacent cells or ranges | Select the first area, hold Ctrl, and select each additional area |
| The whole worksheet | Click the Select All button above row 1 and left of column A |
The Shift-click method is easier than dragging when the range is larger than the screen. Click the start cell, scroll to the end cell, and Shift-click it. Scrolling does not change the selection.
Selecting non-adjacent areas
Hold Ctrl while you select. Each new area is added to the selection and the earlier ones stay shaded.
Non-adjacent selections have limits:
- Formatting, clearing, and typing a value with Ctrl+Enter work on all areas.
- Copy works only if the areas line up in the same rows or the same columns. Otherwise Excel shows "That command cannot be used on multiple selections."
- If you Ctrl-click a cell that is already selected, Excel keeps it selected. In current versions you cannot deselect part of an area this way.
Selecting a range by address
You do not have to drag. Type the address into the Name Box, the field to the left of the formula bar, and press Enter.
Name Box: B2:D10
Press Enter to select the range B2:D10This is the best choice for large or precise ranges, because it needs no scrolling. The Name Box also accepts a column such as C:C, a row such as 5:5, and a union such as A1:A5,C1:C5.
Extending a selection
Shift plus a click moves the far corner of the selection. The active cell stays where it was. You can repeat Shift-click to resize the range without starting over.
Dragging a header selects several rows or columns. Then right-click and choose Insert or Delete to act on all of them at once.
Common errors
- Selecting too much. Clicking a header selects over a million cells. Formatting or filling a whole column is slow and can inflate the file. Select only the used range when you can.
- Typing when a range is selected. The text goes into the active cell only. Check the Name Box to see which cell is active before you type.
- Dragging the border by accident. Dragging the edge of a selection moves its contents. Start a drag from the middle of a cell, and watch for the plain white cross pointer, not the four-arrow pointer.
- Forgetting hidden rows. A selection that spans hidden rows includes those rows. Later commands then act on data you cannot see. A later chapter covers selecting visible cells only.
Exercise
You need to apply bold formatting to A1:A5 and C1:C5 in one step, without touching column B. How do you select both areas?
Show answer
Select A1:A5 by dragging, hold Ctrl, and drag C1:C5. You can also type A1:A5,C1:C5 into the Name Box and press Enter. Then apply bold once, and it applies to both areas.