Sub topic 4
Copying and pasting cells
This chapter assumes you can select cells and ranges, enter text, numbers, and simple formulas, and find your way around the ribbon. Copying duplicates cells so you can reuse them elsewhere. The original stays where it is.
The basic copy and paste cycle
Copying is a two-step process. You copy a selection, then you paste it at a destination.
- Select the cell or range you want to duplicate.
- Press Ctrl+C (Cmd+C on Mac), or choose Home > Copy. A moving dashed border, called the marching ants, appears around the selection.
- Click the top-left cell of the destination.
- Press Ctrl+V, or choose Home > Paste.
You only need to pick the first destination cell. Excel fills the area below and to the right of it with the same shape as the copied range. If you copy B2:C4 and paste at F2, the result occupies F2:G4.
While the marching ants are visible, the clipboard still holds your selection. You can paste again in other places. Press Esc to clear the border and stop pasting. Pressing Enter pastes once and then clears the border.
What gets copied
A normal paste copies everything in the cell: the value or formula, the number format, fonts, fills, borders, data validation, and comments or notes. Paste Special, covered in a later chapter, lets you copy only some of these.
Formulas are the part that most often surprises people. When you paste a formula, Excel adjusts its relative references to the new position. Absolute references, written with dollar signs, stay fixed.
Before: D2 contains =B2+C2
Copy D2 to D3 gives: =B3+C3
Cut D2 and paste to F2 gives: =B2+C2Copying D2 one row down shifts every relative reference down one row. Cutting and pasting moves the formula without changing its references, so the formula still points at B2 and C2. The next chapter covers moving cells in detail.
Relative and absolute references when copying
Consider a price list where column B holds prices and E1 holds a tax rate. The formula in C2 multiplies the price by the rate.
C2: =B2*$E$1
C3: =B3*$E$1When you copy C2 to C3, B2 becomes B3 because it is relative. The reference $E$1 stays fixed because the dollar signs lock both the column and the row. Without them, the pasted formula would read E2 and return the wrong result. Press F4 while editing a reference to cycle through the locked forms.
Copying to several destinations
You can paste one copied range into a larger selection in a single step. Select the destination cells first, then press Ctrl+V.
- If you copy a single cell and select a range as the destination, Excel pastes that cell into every cell of the range.
- If you copy a range and select a destination that is a multiple of its size, Excel repeats the pattern to fill the selection.
- If the destination size is not a multiple of the copied range, Excel pastes only into the top-left cell's matching area and ignores the extra selection.
The paste options button
After you paste, a small Paste Options button appears near the lower-right corner of the pasted area. Click it, or press Ctrl, to choose how the paste behaves. Common choices include keeping the source formatting, matching the destination formatting, pasting values only, and pasting formulas only. This is a quick way to fix a paste that brought along unwanted formatting.
Copying by dragging
You can also copy with the mouse. Select the range, hold Ctrl, and drag the selection by its border. The pointer shows a small plus sign when it is in copy mode. Release the mouse button to drop the copy. Without Ctrl, the same drag moves the cells instead of copying them.
Common errors
| Symptom | Likely cause | Fix |
|---|---|---|
| #REF! appears in pasted cells | A cut cell was pasted over cells that other formulas depend on | Undo and paste elsewhere |
| Results are wrong after pasting | A reference that should be absolute was left relative | Add dollar signs, then copy again |
| "Cannot change part of a merged cell" | The destination has merged cells of a different size | Unmerge them or choose a matching destination |
| Hidden rows reappear in the pasted data | Copy includes hidden rows by default | Select visible cells only, covered in a later chapter |
Exercise
Cell C2 contains =B2*$E$1. You copy C2 and paste it into D5. What formula does D5 contain, and why?
Show answer
D5 contains =C5*$E$1. The paste moved three rows down and one column right, so the relative reference B2 shifts to C5. The absolute reference $E$1 does not change.
Exercise
You copied B2:C4 and want to place copies at both F2 and H2. How do you do it without copying twice?
Show answer
Copy B2:C4 once, click F2 and press Ctrl+V, then click H2 and press Ctrl+V while the marching ants are still showing. Press Esc when you finish.