Sub topic 15
Common mistakes and how to recover
This chapter assumes you can select ranges, copy and paste, use the fill handle, and read A1 references. It covers the mistakes that cost the most time and how to undo or avoid each one.
Overwriting data
Typing in a selected cell replaces its contents. Pasting over a range does the same, and Excel does not warn you. Pasting a block onto cells that already hold data is the most common way to lose work.
Press Ctrl+Z straight away to undo. Undo works only until you save and close, and some actions clear the undo history. Before a large paste, check the destination's size and contents. If you are unsure, paste into a blank area first.
Copying hidden rows
A normal copy of a range that spans filtered or hidden rows can include the hidden rows. After you paste, rows you never meant to share appear in the new location.
To copy only what you can see:
- Select the range.
- Press Alt+; (semicolon) to select visible cells only. You can also use Go To Special and choose Visible cells only.
- Copy and paste as usual.
Filtered ranges often copy only the visible rows already, but rows hidden by hand are not always excluded. Selecting visible cells first removes the doubt.
Breaking references
References change when you copy, fill, or move formulas. Two failures are common.
- A relative reference drifts when it should stay fixed.
- A formula points at the wrong cell after you move its inputs.
The first case is shown below. Cell E1 holds a rate, and column C multiplies column B by it.
C2: =B2*E1
C3: =B3*E2Filling C2 down shifts E1 to E2, which is empty, so C3 returns 0. Anchor the rate with dollar signs:
C2: =B2*$E$1
C3: =B3*$E$1Moving behaves differently from copying. Cutting and pasting a formula keeps its references unchanged. Cutting a cell that other formulas use updates those formulas to follow it. Copying a cell does not.
Before: D2 contains =B2+C2
Copy D2 to D3 gives: =B3+C3
Cut D2 and paste to F2 gives: =B2+C2If a formula shows #REF!, the cell it pointed to was deleted, or a paste landed on top of it. Undo first. If you have already saved, you must rebuild the reference by hand.
Pasting formulas when you wanted values
A pasted formula recalculates against its new position. If you want the numbers frozen, use Paste Special and choose Values. Pasting values over formulas deletes the formulas permanently, so keep a copy of the sheet if you might need them again.
Fill handle surprises
The fill handle guesses what you want. A single number copies, and a single date or weekday name extends as a series. If Excel guesses wrong, click the Auto Fill Options button that appears after the fill and switch between Copy Cells and Fill Series. To give Excel a step, enter two values first.
A1: 1
A2: 2
Select A1:A2 and drag the fill handle down to A5 to get 1, 2, 3, 4, 5Recovery checklist
The diagram shows a quick order of recovery steps.
Habits that prevent mistakes
- Check the selection size shown in the Name Box before you paste.
- Press F2 on a formula to see which cells it uses.
- Test a fill on two rows before filling thousands.
Exercise
Cell C2 contains =B2*E1, where E1 holds a tax rate. You fill C2 down to C10, and every result from C3 on is 0. What went wrong, and how do you fix it?
Show answer
The reference E1 is relative, so it shifts to E2, E3, and so on, which are empty. Change C2 to =B2*$E$1 so the rate is absolute, then fill down again.
Exercise
You filtered a list, copied it, and the pasted result contains rows that were hidden. What do you do before copying next time?
Show answer
Select the range, press Alt+; to select visible cells only, then copy and paste.