Sub topic 15
Common mistakes and how to recover
This chapter assumes you can already select ranges, copy, cut, paste, and use the fill handle. It also assumes you know the difference between relative references (B2) and absolute references ($B$2). It covers the errors those skills most often produce, how to recognize each one, and how to fix it without losing work.
A working model of recovery
Most mistakes in this area change cells in one of three ways: they overwrite values, they change references, or they act on more cells than you meant. Each has a different cheapest fix. Before you do anything else, decide which kind of mistake you made.
Undo (Ctrl+Z) is your first tool. It reverses cut, paste, fill, and drag actions one step at a time. Two limits matter:
- Running a macro clears the undo history.
- Closing the workbook discards it.
If you made a large mistake, stop and undo before making any other change. Every extra edit makes the clean recovery harder.
Overwriting data
Paste over existing cells
A paste replaces whatever is in the destination without asking. This is the most common way to lose data. Pasting a 10-row block onto a 10-row area that held different values overwrites all of them.
Ways to avoid it:
- Look at the destination before you paste. The pasted block has the same size as the copied block, starting at the active cell.
- Paste into an empty area first, check it, then move it.
- Use Insert Copied Cells (right-click, then choose it) when you want the new cells to push existing data aside instead of replacing it.
Drag and drop
Dragging a selection by its border moves it. If you drop it on filled cells, Excel asks "Do you want to replace the contents of the destination cells?" Click Cancel if you are unsure. If you turned that warning off in the options, you will get no prompt, so rely on Ctrl+Z.
Dragging is also easy to do by accident. A slight mouse slip on the border of a selected cell can move a value one row. If a value suddenly appears in the wrong place, check whether you dragged before you start retyping.
Fill that runs too far
Dragging the fill handle past the end of your data writes into empty cells below. If those cells held notes or a second table, the fill overwrites them. Double-clicking the fill handle stops at the edge of the neighboring column's data. If that column has a gap, the fill stops early.
Press Ctrl+Shift+End to see where Excel thinks the used range ends. If it goes far beyond your visible data, you may have stray formatting or stray contents that affect fills and selections.
Reference mistakes
Relative references that should be absolute
A formula that works in the first row and fails in the next rows often needs one anchored reference. Compare these two fills from a price list, where E1 holds a tax rate:
Wrong, filled down from C2:
C2: =B2*E1
C3: =B3*E2 (E2 is empty, so the result is 0)
Correct:
C2: =B2*$E$1
C3: =B3*$E$1To fix it, select the first formula cell, click in the formula bar on the reference, and press F4 to cycle through E1, $E$1, E$1, and $E1. Then fill again. If you need a row-only or column-only anchor, use the mixed forms.
Copy versus cut
A copied formula shifts its relative references. A cut formula keeps them exactly.
D2 contains =B2+C2
Copy D2, paste to D3: =B3+C3
Cut D2, paste to F2: =B2+C2If the pasted result shows the wrong inputs, you used the wrong action. Undo, then repeat with the other one.
`#REF!` errors
#REF! means a formula points to a cell that no longer exists. Two common causes:
- You deleted a row, column, or cell that a formula used.
- You pasted copied cells over a cell that a relative formula referred to, so the reference could not be preserved.
Undo restores both. If you only notice later, check each formula for #REF! using Find (Ctrl+F) and search the formulas for #REF! with Look in: Formulas. Retype the broken reference by hand. Deleting and re-creating the cell will not repair the formula, because the reference text itself is lost.
References to other workbooks
Copying a formula from another workbook can leave a reference such as [Budget.xlsx]Sheet1!B2. If that file moves or is renamed, the value breaks or Excel asks to update links. Check for this under Data > Edit Links. To remove the dependency, paste the cells as values.
Pasting the wrong kind of content
A plain paste brings everything: values, formulas, formats, and validation. That is not always what you want. The table lists the usual symptoms.
| Symptom after pasting | Likely cause | Fix |
|---|---|---|
| Colors and borders changed in the destination | Normal paste copied the source formats | Undo, then use **Paste Special > Values**, or use **Match Destination Formatting** |
| Numbers change when the source changes | You pasted formulas | Paste as **Values** to freeze them |
| Numbers are left-aligned and will not sum | Numbers were pasted as text | Select the cells, use the warning icon, and choose **Convert to Number** |
| Rows and columns are swapped the wrong way | You used or skipped Transpose | Undo, then paste with **Transpose** checked or unchecked as needed |
| Column widths do not match the source | Paste does not carry widths by default | Use **Paste Special > Column widths** afterward |
Paste Values has a side effect: it removes formulas permanently. Before you do it, keep a copy of the formulas somewhere, such as another sheet, unless you are sure you will never need them again.
Selecting more or fewer cells than intended
Hidden and filtered rows
Hidden rows are the classic trap. When you copy a range that includes rows hidden by a filter, Excel copies only the visible rows. Rows you hid by hand are different: a normal copy includes them. If you want visible cells only, select the range and press Alt+; (or use Go To Special > Visible cells only), then copy.
Pasting is riskier than copying. A multi-row block pasted into a filtered list lands on consecutive rows, including hidden ones, so it can overwrite data you cannot see. Clear the filter first, or paste into a helper column that has no filter.
Multiple selections
If you hold Ctrl and select two separate areas, you can copy them only when they cover the same rows or the same columns. Otherwise Excel says, "That command cannot be used on multiple selections." Copy each area separately, or rearrange the sheet.
Merged cells
Merged cells interfere with sorting, filling, and pasting. A paste can fail with "To do this, all the merged cells need to be the same size." If you must avoid errors, use Center Across Selection instead of merging.
Fill handle surprises
The fill handle guesses what you want. When the guess is wrong, use the Auto Fill Options button that appears at the corner after the fill:
- Copy Cells repeats the value.
- Fill Series counts up.
- Fill Formatting Only copies only the format.
- Fill Without Formatting copies values or formulas but leaves formats alone.
A single number such as 1 copies by default. Two numbers, such as 1 and 2, give Excel a step to continue. Holding Ctrl while dragging switches between copy and series for a single number.
Flash Fill guessing wrong
Flash Fill (Ctrl+E) infers a pattern from your examples. It does not create formulas, so the results do not update when the source changes. If the output is wrong, undo it and type two or three more examples that show the difference, such as names with a middle initial. Then run it again. Always scan the results, because Flash Fill can look right and still fail on a few rows.
Recovering after you saved
If you saved a bad version, Ctrl+Z may no longer help. Try these in order:
- Open File > Info > Version History if the file is stored in OneDrive or SharePoint.
- Look under File > Info > Manage Workbook for AutoRecover versions of unsaved work.
- Check for a backup copy or an earlier file name.
- Rebuild only the broken cells from a copy of the old file by copying from it into the current one.
A short checklist
Before any large operation, run through these checks:
- Is the destination empty, or do I mean to replace it?
- Do I want copy or cut?
- Do any references need
$signs? - Are there hidden rows or filters?
- Can I undo this, or should I save a copy first?
Exercise
In C2 you wrote =B2*E1 and filled it down to C20. Only C2 shows the right value, and the others show 0. What went wrong, and how do you fix it?
Show answer
E1 is a relative reference, so it shifted to E2, E3, and so on, which are empty. Select C2, change the formula to =B2*$E$1 (press F4 while the cursor is on E1), then fill it down to C20 again.
Exercise
You filtered a list so that only some rows show, then pasted a copied 5-row block into the visible cells. Later you find data missing in rows you cannot see. Why did that happen, and what should you do now and next time?
Show answer
A multi-row paste lands on consecutive rows, including the hidden ones, so it overwrote data that was not visible. Now, press Ctrl+Z immediately, or restore an earlier version if you have saved. Next time, clear the filter first, or paste into a helper column, and use Alt+; before copying when you need only the visible cells.
Exercise
You use Flash Fill (Ctrl+E) to split full names, and some results are wrong. Do you need to fix each cell by hand?
Show answer
No. Press Ctrl+Z to undo the Flash Fill, type two or three more examples that include the cases that failed, and run Flash Fill again. Check the results afterward, because Flash Fill output is static and does not update if the names change.