BUS 120 · Spreadsheets and Business Data
How Spreadsheets Think: Cells, Ranges and References
Learn how cells, ranges and references work, and why a copied formula changes in ways that can help or hurt you.
Key takeaways
- A spreadsheet is a grid of cells, and each cell has an address made of a column letter and a row number.
- A cell holds either a value you typed or a formula that calculates something from other cells.
- A range is a block of cells written as its first corner, a colon and its opposite corner.
- Relative references shift when you copy a formula, while a dollar sign locks the column, the row or both.
- Put each assumption, such as a tax rate, in its own cell and point formulas at it.
Priya runs a small bike repair shop that exists only in this lesson. One evening she builds a sheet to add sales tax to her week's repairs. The first row looks perfect. She copies the formula down, and every row below it shows a tax of zero.
Nothing crashed. No warning appeared. The spreadsheet did exactly what she asked. The trouble is that she did not know what she had asked.
A spreadsheet is a very fast, very literal assistant. Once you learn how it reads your instructions, it will do a week of arithmetic in a blink. Until then, it will cheerfully hand you wrong answers with two decimal places.
The grid and its addresses
Open a new spreadsheet and you see a grid. Columns run top to bottom and are named with letters: A, B, C and so on. After Z comes AA, then AB. Rows run left to right and are named with numbers.
A cell is one box where a column meets a row. Its address is the column letter followed by the row number. Cell B3 sits in column B, row 3. Think of a seat in a theater: the address tells you where to find it, not who is sitting there.
A file is called a workbook. Inside it are one or more worksheets, the tabs along the bottom. Priya might keep one tab for repairs, one for parts and one for her tax settings.
The examples in this course use Microsoft Excel. Google Sheets and other programs work in much the same way, though some menu names and newer functions differ. When something behaves differently, check the help pages for your program.
What lives inside a cell
Every cell holds one of two things.
- A value is something you typed: a number, a date or some text.
- A formula is an instruction that starts with an equals sign, such as =B2+C2.
The cell usually shows the formula's result. The formula itself appears in the formula bar above the grid. This split matters. Two cells can both show 120, while one was typed and the other is calculated. Change the inputs and only the calculated one updates.
Click a cell and read the formula bar to see which kind you have.
There is also a difference between a value and how it looks. Formatting changes the display only. A cell holding 0.0825 can show as 8.25%. A cell holding 12.499 can show as 12.50, yet the formulas still use 12.499. If you need the stored number rounded, you must use a rounding function, which the next lesson covers.
Dates have a secret too. Excel stores a date as a count of days. In its usual date system, January 1, 2026 is day number 46023. That is why you can subtract one date from another and get the number of days between them. It is also why a date sometimes shows up as a strange large number: the formatting was lost, not the date.
Text that pretends to be a number
Numbers normally line up on the right side of a cell, and text lines up on the left. If a "number" hugs the left edge, the program may be treating it as text. This often happens with data pasted from another system. Sums will skip it without complaint.
Ranges: talking about many cells at once
A range is a rectangular block of cells. You write it as one corner, a colon, then the opposite corner.
| Range | What it covers | Number of cells |
|---|---|---|
| B2:B6 | Part of one column | 5 |
| B2:E2 | Part of one row | 4 |
| B2:D4 | A block 3 wide and 3 tall | 9 |
| B:B | All of column B | Every row in it |
Ranges are what make a spreadsheet fast. =SUM(B2:B6) adds five cells. =SUM(B2:B6000) adds thousands with no extra typing.
You can also point to another worksheet. Write the sheet name, an exclamation mark and the address, as in =Parts!C4. If the sheet name has a space, wrap it in single quotes: ='Parts List'!C4.
References: the heart of the matter
A reference is a cell address used inside a formula. When Priya types =B2*C2, she is saying "multiply whatever is in B2 by whatever is in C2."
Here is the surprise. The program does not really remember "B2." It remembers directions, such as "the cell two to my left." If the formula sits in D2, then B2 is two columns left and C2 is one column left. Copy it to D3 and the same directions now point to B3 and C3.
That is called a relative reference, and it is the normal kind. It is wonderful when every row follows the same pattern.
Sometimes you need a reference that stays put. Type a dollar sign before the column letter, the row number or both. This has nothing to do with money. It is a pin.
In Excel on Windows, you can press F4 while editing a reference to cycle through these four forms. Mac keyboards use a different shortcut, so check your version.
A worked example: Priya's repair sheet
Priya types her sales tax rate once, in cell B1. Suppose the rate is 8%. This is a made-up number, so look up the real rate where you do business. Then she lists three repairs.
| Row | A (Job) | B (Labor) | C (Parts) | D (Subtotal) | E (Tax) | F (Total) |
|---|---|---|---|---|---|---|
| 4 | Tune-up | 60 | 15 | 75 | 6.00 | 81.00 |
| 5 | Flat fix | 20 | 10 | 30 | 2.40 | 32.40 |
| 6 | Brake job | 45 | 40 | 85 | 6.80 | 91.80 |
Her formulas in row 4 are:
D4: =B4+C4
E4: =D4*$B$1
F4: =D4+E4 Now she selects D4 through F4 and drags the small square at the lower right corner down to row 6. That square is the fill handle, and dragging it copies formulas.
Watch what happens in row 6:
D6: =B6+C6 → 45 + 40 = 85
E6: =D6*$B$1 → 85 × 0.08 = 6.80
F6: =D6+E6 → 85 + 6.80 = 91.80 D4 became D6 because it is relative. $B$1 did not budge because it is locked. A total row finishes the job: =SUM(F4:F6) gives 81.00 + 32.40 + 91.80 = 205.20.
You can check it another way. The subtotals add to 75 + 30 + 85 = 190. Tax at 8% on 190 is 15.20. And 190 + 15.20 = 205.20. Two roads, same town.
Next month the rate changes? Priya edits one cell, B1, and every tax and total updates.
The common mistake: the reference that wandered off
Here is what Priya did the first time. In E4 she typed =D4*B1, with no dollar signs. Row 4 was correct. Then she copied it down.
- E5 became =D5*B2. Cell B2 is empty, which counts as zero. Tax: 0.
- E6 became =D6*B3. Cell B3 holds the column heading "Labor". Multiplying by text gives the error #VALUE!.
The first problem is the dangerous one. A zero looks like an answer. An error at least waves a red flag.
A close cousin of this mistake is typing the rate straight into the formula, as in =D4*0.08. This is called hard-coding. It works until the rate changes. Then you must hunt through every formula, and the one you miss will quietly stay wrong.
When a copied formula looks odd, click the last cell in the column and press F2 in Excel for Windows. The program outlines the cells the formula uses. Ten seconds of looking beats an hour of explaining.
Locking only half: a price grid
Mixed references earn their keep in two-way tables. Priya wants to see labor charges for several hourly rates and job lengths. Hours go down column A (A2, A3, A4 hold 1, 2, 3). Rates go across row 1 (B1 and C1 hold 40 and 50).
In B2 she types =$A2*B$1. The $A keeps the formula looking at the hours column. The $1 keeps it looking at the rates row. She copies it across and down:
| Rate 40 | Rate 50 | |
|---|---|---|
| 1 hour | 40 | 50 |
| 2 hours | 80 | 100 |
| 3 hours | 120 | 150 |
Cell C4 now reads =$A4*C$1, which is 3 × 50 = 150. One formula filled the whole grid.
Copying, cutting and filling are not the same
Three actions look similar, but they treat references differently.
Copy and paste makes a second formula and shifts its relative references. That is what you saw with the fill handle.
Cut and paste moves a formula to a new spot. The formula keeps pointing at the same cells as before. If Priya cuts E4 and pastes it into H4, it still multiplies D4 by B1.
Moving an input cell works in your favor too. If she cuts the tax rate from B1 and pastes it into B2, formulas that pointed at B1 follow it to the new home.
Deleting is the risky one. If she deletes column D, formulas that needed it have nothing to point to. They show #REF!, short for a broken reference. Use Undo right away, then decide what you really meant to remove.
Inserting rows is usually safe. The program renumbers references so they keep pointing at the same data. Still, glance at your totals afterward to be sure the new rows are included.
Names and habits that help
You can give a cell a named range, a readable label such as TaxRate. Then the formula reads =D4*TaxRate. A name normally points to a fixed place, so it behaves like a locked reference.
A few habits will carry you through this course. Keep one kind of information per column. Keep inputs apart from calculations. Avoid blank rows in the middle of a list. Accountants care because a sheet may feed the books, and a quiet error there flows into ratios and decisions.
Next, you will put these references to work in formulas and essential functions. Later, designing a workbook others can trust turns these habits into a full layout.
Words to know
Cell one box in the grid, found by its column letter and row number.
Workbook a spreadsheet file, which can hold several worksheets.
Range a rectangular block of cells written with a colon between two corners.
Reference a cell or range address used inside a formula.
Relative reference an address that shifts when its formula is copied to a new place.
Absolute reference an address locked with dollar signs so that copying does not change it.
Hard-coding typing a changeable number directly into a formula.
Check yourself
- What is the difference between a value and a formula in a cell?
- How many cells are in the range C3:E7?
- Cell D2 holds =B2*$A$1. What does the formula become if you copy it to D5?
- If B1 holds 8% and D9 holds 250, what does =D9*$B$1 return?
- Why is typing =D4*0.08 riskier than typing =D4*$B$1?
- Cell B2 holds =$A2*B$1. What does it become when copied to D6?
Show the answers
- A value is typed and stays as entered, while a formula starts with an equals sign and recalculates from other cells.
- Columns C, D and E make 3, and rows 3 to 7 make 5, so there are 3 × 5 = 15 cells.
- It becomes =B5*$A$1, because B2 moves down three rows and $A$1 is locked.
- It returns 250 × 0.08 = 20.
- The hard-coded rate must be found and edited in every formula, while a locked reference updates from one cell.
- It becomes =$A6*D$1, since column A and row 1 stay locked while the other parts move.