Sub topic 3
What Happens When You Copy, Cut, Insert, and Delete
Assume you can enter formulas, select ranges, and use copy, paste, and the fill handle. This chapter focuses on how Excel changes references when the worksheet structure changes.
Copy Versus Cut
When you copy a formula, Excel adjusts relative references according to the new location. Absolute references remain fixed.
C2: =A2*B2
C3: =A3*B3Copying C2 to C3 moves both relative references down one row. A formula such as =B2*$E$1 changes B2 when copied, but $E$1 stays fixed.
When you cut and paste a formula, Excel moves the formula rather than creating a location-based copy. Its references generally remain tied to the same referenced cells. This makes cut and paste useful when reorganizing a model without changing its logic.
Inserting and Deleting Rows or Columns
Excel usually updates references when you insert a row or column. For example, if =SUM(B2:B10) refers to a range and you insert a row inside that range, Excel expands the reference to include the new row.
Deleting a referenced row or column can remove part of a range or produce #REF!. A #REF! error means that a formula points to a cell that no longer exists.
References to Other Sheets
A reference can include a sheet name:
C2: =B2*Rates!$B$1Here, B2 changes when the formula is filled down, while Rates!$B$1 remains fixed on the Rates sheet. Sheet names containing spaces require single quotation marks, such as ='Tax Rates'!$B$1.
Named Ranges
A named range is a meaningful name assigned to a cell or range. If E1 is named TaxRate, use:
D2: =B2*TaxRateNames are absolute by default, so TaxRate remains fixed when copied. Names can make formulas easier to read, but check whether a name applies to the whole workbook or only one sheet.
Common Mistakes and Debugging
Common errors include:
- Omitting
$from a fixed input. - Locking the wrong part, such as
$B2instead ofB$2. - Copying a formula when you meant to move it.
- Deleting cells that a formula still needs.
- Referencing the wrong sheet or name.
Select the formula cell and inspect the highlighted references. Compare the formula with a neighboring row or column, then add or remove $ from the reference that should move or stay fixed.
Exercise
A copied formula changes Rates!$B$1 to another cell on the Rates sheet. What should you check?
Show answer
Check that both the column and row are locked: Rates!$B$1. Also verify that the formula was copied from the intended source cell.