Sub topic 7
Editing Cells, Filling Formulas, and Anchoring References
This chapter assumes you can enter formulas, copy cells, and distinguish relative references such as A1 from absolute references such as $A$1. The goal is to edit and extend formulas without changing the logic accidentally.
Edit a cell without reaching for the mouse
Select a cell and press F2 to edit its contents in place. Move through the formula with the arrow keys, then press Enter to commit or Esc to cancel.
When editing a reference, press F4 to cycle through its reference types:
| Reference | Row changes when copied down? | Column changes when copied right? |
|---|---|---|
| `A1` | Yes | Yes |
| `$A$1` | No | No |
| `A$1` | No | Yes |
| `$A1` | Yes | No |
Use Ctrl+D to fill the selected range downward from its top cell. Use Ctrl+R to fill rightward from its left cell. These commands copy formulas while adjusting relative references.
=Revenue*(1+Growth_Rate)If this formula is copied from January to February and Revenue refers to the current period, Excel adjusts the relative reference. A named range such as Growth_Rate remains unchanged.
Anchor references deliberately
Suppose row 5 contains monthly prices and column B contains product quantities. In cell C8, enter:
=C$5*$B8C$5 keeps the price row fixed while allowing the column to change. $B8 keeps the quantity column fixed while allowing the row to change. Filling the formula right and down produces the correct price-by-quantity calculation for every product and month.
While editing a reference, pressing F4 repeatedly changes C5 to $C$5, C$5, $C5, and back to C5. This is faster and safer than typing dollar signs manually.
Check the result before continuing
After filling formulas, select a few cells at the corners of the range and press F2. Confirm that the changing references moved in the intended direction and that anchored references did not move.
Keyboard workflow
- Select the starting cell and press
F2. - Edit the formula and use
F4to set anchors. - Press
Enter. - Select the destination range.
- Press
Ctrl+DorCtrl+R. - Inspect the first, middle, and last copied formulas with
F2.
Exercise
In cell C8, a formula must use the price in row 5 for the current month and the quantity in column B for the current product. Which formula should you enter, and which shortcut fills it across a selected range?
Show answer
Enter =C$5*$B8. Select the range and press Ctrl+R to fill it right.