Sub topic 4
Copying and Pasting Cells
This chapter assumes you can open and save a workbook, type text, numbers, and simple formulas, and select cells and ranges with the mouse and keyboard. It covers how Excel copies cells, what travels with a copy, and the errors that most often appear when you paste.
How copying works in Excel
When you copy a cell or range, Excel places a copy of its contents on the Clipboard. The Clipboard is a temporary holding area that Excel and other programs share. Excel also draws a moving dashed border, called the marching ants, around the source. The border tells you the copy is still active and can be pasted.
A copy carries more than the visible value. It includes:
- The cell's content: a constant (text, number, date) or a formula.
- The number format, font, fill color, borders, and alignment.
- Data validation rules and conditional formatting that apply to the cell.
- Any comment or note attached to the cell.
It does not carry column widths or row heights. Those need Paste Special, which a later chapter covers.
The basic steps are the same for every copy:
- Select the source cell or range.
- Press Ctrl+C, or choose Copy on the Home tab.
- Click the top-left cell of the destination.
- Press Ctrl+V, or choose Paste on the Home tab.
You only select the top-left cell of the destination. Excel fills in the rest of the area, based on the size and shape of what you copied.
Copying to different sizes of destination
The destination you select affects the result. These cases cover most situations:
| Source | Destination selected | Result |
|---|---|---|
| One cell | One cell | The cell is pasted there. |
| One cell | A range | Every cell in the range receives a copy. |
| A range | One cell | The whole range is pasted, starting at that cell. |
| A range | A range of the same size | The range is pasted into that area. |
| A range | A range that is a multiple of the source size | The source pattern repeats to fill the area. |
| A range | A range of a different size that is not a multiple | Excel shows an error and does not paste. |
Pasting one cell into a large selection is a quick way to apply a value or formula to many cells at once. If you select a destination of mixed shape, such as non-adjacent cells, a single-cell source still pastes into each one.
Pasting over existing data
Excel overwrites the destination without asking. If cells in the paste area already hold data, that data is replaced. This is one of the most common ways to lose work. Before pasting into an area that may not be empty, check what is there.
If you paste over something by mistake, press Ctrl+Z straight away. Undo restores the overwritten cells and removes the pasted ones. Once you save and close the workbook, Undo history is gone.
The Paste Options button
After a paste, a small Paste Options button appears at the lower-right corner of the pasted area. Click it, or press Ctrl, to see choices that change how the paste was applied. Common choices include:
- Keep Source Formatting: keep the look of the source cells.
- Match Destination Formatting: use the look of the cells you pasted into.
- Values: paste only the results, not the formulas.
- Formulas: paste the formulas without the source formatting.
- Transpose: swap rows and columns.
You can also open the full list from the Paste drop-down arrow on the Home tab. Hover over an icon to see what it does before you click it. These options are introduced here and covered in depth in the Paste Special chapter.
What happens to formulas when you copy them
A formula copied to a new cell is adjusted for its new position. Excel treats a reference like B2 as a relative offset: "the cell one column left, in the same row". When the formula moves, the offset stays the same and the address changes.
Before: D2 contains =B2+C2
Copy D2 to D3 gives: =B3+C3
Cut D2 and paste to F2 gives: =B2+C2The example shows both behaviors. Copying D2 to D3 shifts each reference down one row. Cutting D2 and pasting it into F2 leaves the formula unchanged, because cut and paste moves the formula and keeps its references. The next chapters cover cutting and moving in detail. What matters here is that copy and cut behave differently for formulas.
An absolute reference uses dollar signs, as in $E$1. The dollar signs lock the column, the row, or both, so the reference does not shift when you copy.
C2: =B2*$E$1
C3: =B3*$E$1Here B2 is relative and becomes B3 one row down. $E$1 is absolute and stays on the same cell. A typical use is a single tax rate or exchange rate in E1 that many rows multiply by.
You can also lock only part of a reference. $A1 fixes the column, and A$1 fixes the row. These mixed references are useful in tables where one formula is copied both across and down.
Press F4 while editing a reference to cycle through A1, $A$1, A$1, and $A1.
A worked example
Suppose a sheet has prices in column B, starting at B2, and a tax rate of 0.2 in E1. You want the tax in column C.
- In C2, type
=B2*$E$1and press Enter. - Select C2 and press Ctrl+C.
- Select C3:C10.
- Press Ctrl+V.
Every selected cell receives a copy of the formula. Cell C5 contains =B5*$E$1, and C10 contains =B10*$E$1. Now try the same thing with =B2*E1 typed in C2. C3 would contain =B3*E2, which points to an empty cell, and the results would be 0. This is the most common cause of wrong results after copying.
The flow below shows how Excel decides what a pasted formula contains.
Pasting between sheets and workbooks
You can paste into another sheet or another workbook with the same steps. Click the sheet tab, or switch windows, and select the destination cell. Some points need care:
- A formula that refers to a cell on the same sheet keeps pointing to the destination sheet after the paste, not the source sheet.
- A reference that already names a sheet, such as
Sheet2!A1, keeps pointing to that sheet. - If you copy a formula to another workbook and it refers to cells outside the copied range, the pasted formula may keep a link to the original workbook. Excel shows the file name in square brackets. Check the Data tab, under Edit Links, if you do not want this link.
Named ranges and styles can also be copied across workbooks. If the destination already has a name with the same label, Excel asks whether to use the existing one.
Copy by dragging with Ctrl
You can copy without the Clipboard. Select a range, point at its border until the cursor becomes a four-way arrow, hold Ctrl, and drag. A small plus sign appears next to the cursor. Release to drop a copy in the new place. Without Ctrl, the same drag moves the cells instead. The Clipboard is unaffected, which can be handy if you want to keep other data copied.
Edge cases and common errors
- Copying a multi-area selection. If you select non-adjacent areas with Ctrl, Excel can copy them only when they share the same rows or the same columns. Otherwise it shows "That command cannot be used on multiple selections".
- Merged cells. Pasting into a range that partly overlaps merged cells can fail with "We can't do that to a merged cell". Select the whole merged area, or unmerge it first.
- Different sizes. Pasting a range into a destination of an incompatible size shows "The information cannot be pasted because the Copy area and paste area aren't the same size". Select only the top-left cell of the destination.
- Hidden rows and columns. A normal copy includes hidden and filtered rows in the range. Copying only visible cells is covered in a later chapter.
- #REF! errors. If a pasted formula reaches past the edge of the sheet or a relative reference lands on a cell that no longer exists, the result is
#REF!. Check the reference with F2. - Pasting over a formula with a value. If you paste values into formula cells, the formulas are gone. Undo, or restore them from a saved copy.
- Table ranges. In an Excel Table, pasting extends the table when you paste right below the last row, and formulas in calculated columns fill automatically.
Practice
Exercise
Cell C2 contains =B2*$E$1. You copy C2 and paste it into F5. What formula does F5 contain?
Show answer
F5 contains =E5*$E$1. The relative reference B2 moves 3 columns right and 3 rows down, so it becomes E5. The absolute reference $E$1 does not change.
Exercise
You copy a single cell and select the range G2:G20 before pasting. What happens, and which key cancels the marching ants afterward?
Show answer
The single cell is pasted into every cell of G2:G20. Pressing Esc removes the marching ants and cancels the active copy.
Exercise
You paste a formula and every result is 0, although the first row was right. The first formula was =B2*E1. What is the likely cause, and how do you fix it?
Show answer
E1 is a relative reference, so it shifted to E2, E3, and so on in the lower rows, which are empty. Change the first formula to =B2*$E$1 (press F4 while editing) and copy it down again.