5.2 Microsoft Excel Addressing, Formulas & Data Functions
Key Takeaways
Excel's A1 reference style places the column letter before the row number (such as B3 for column B, row 3); introduce formulas with an equals sign (=)
Relative references (B2) shift automatically when copied across rows or columns, whereas absolute references (
$E$2) lock the column and row with dollar signsCOUNT counts numeric cells only, COUNTA counts all non-empty cells (including text, errors, and formulas returning empty strings), and COUNTBLANK counts empty cells plus formulas returning empty strings
SUMIF aggregates values matching a single criterion, while VLOOKUP searches the leftmost column of a lookup table and returns a corresponding value when given FALSE for an exact match
A1 Reference Style and Formula Syntax
In modern desktop Microsoft Excel (MS Excel), worksheets are organized into vertical columns labeled with letters (A, B, C, ..., XFD) and horizontal rows labeled with numbers (1, 2, 3, ..., 1,048,576). Under Excel's standard A1 reference style, every cell address always puts the column letter first and the row number second. Therefore, the cell at the intersection of column B and row 3 is B3—never 3B. A contiguous group of cells is written as a range separated by a colon, such as B2:B10 for a single column slice or A1:D6 for a rectangular table.
Enter a formula or function using a leading equals sign (=). If you type SUM(A1:A5) without the leading =, Excel treats the entry as ordinary text and displays the literal words instead of a sum. Typing =SUM(A1:A5) instructs Excel to evaluate the expression and display the computed total.
Relative vs. Absolute Cell References
Understanding how cell addresses behave when copied down a ledger prevents silent calculation errors on budget and stationery sheets:
- Relative Reference (
B2): Has no dollar signs. When you copy a formula such as=B2*C2from row2down to row3, Excel automatically adjusts the references to=B3*C3. - Absolute Reference (
$E$2): Places a dollar sign ($) before both the column letter and the row number, locking that exact cell during copying. For example, if cell$E$2holds a fixed unit price of PKR 950 per paper ream, writing=C2*$E$2in row2and copying it down to row5turns it into=C5*$E$2—the quantity updates per row while the unit price stays pinned to$E$2. - Mixed Reference (
$A2orA$2): Locks only the column or only the row. In Excel for Windows, pressingF4while editing a cell reference in the formula bar cycles through relative, absolute, and mixed forms.
Essential Clerical Functions Comparison
Attendance rosters, office inventories, and monthly stationery tallies are useful contexts for practising these nine Excel functions:
| Function | Syntax Example | What It Does | Function Detail |
|---|---|---|---|
SUM | =SUM(B2:B7) | Adds all numeric values in a range | Ignores blank cells and text |
AVERAGE | =AVERAGE(B2:B7) | Calculates the arithmetic mean | Divides by numeric count only; empty cells are ignored, unlike 0 |
COUNT | =COUNT(C2:C7) | Counts cells containing numbers | Ignores text labels, blank cells, and errors |
COUNTA | =COUNTA(C2:C7) | Counts all non-empty cells | Counts numbers, text, errors, and formulas returning "" |
COUNTBLANK | =COUNTBLANK(C2:C7) | Counts empty cells | Counts truly blank cells and formulas returning "" |
MAX | =MAX(B2:B7) | Returns the largest number in the range | Ignores text and empty cells |
MIN | =MIN(B2:B7) | Returns the smallest number in the range | Ignores text and empty cells |
SUMIF | =SUMIF(A2:A7,"Library A",C2:C7) | Sums values meeting one condition | Uses (criteria_range, criteria, sum_range) |
VLOOKUP | =VLOOKUP(F2,A2:D7,3,FALSE) | Looks down column 1 and returns a match | Use FALSE (or 0) for an exact match |
Critical Distinction: COUNT vs. COUNTA vs. COUNTBLANK
To practise distinguishing Excel's three counting functions, put numbers, text notes (like "Leave"), truly blank cells, and formulas that return an empty string ("", such as =IF(B2=0,"","Issued")) inside the same column:
COUNTcounts only numeric entries (including dates, which Excel stores as serial numbers). Text strings and empty cells are skipped.COUNTAcounts every cell that is not empty—so it counts numbers, text, errors, and even a cell containing a formula whose result is""(because the cell holds a formula, not nothing).COUNTBLANKcounts truly empty cells plus cells whose formula evaluates to"".
Worked Example: Library Counts & Stationery Stock Sheet
Consider a fictional office tracking sheet covering cells A1:D6, with headers in row 1 and five data records below:
| Row | Col A (Library) | Col B (Books Returned) | Col C (A4 Reams Issued) | Col D (Audit Note) |
|---|---|---|---|---|
1 | Library | Returns | Reams | Audit_Note |
2 | Library A | 42 | 12 | Verified |
3 | Library B | 38 | 8 | Pending |
4 | Library A | 40 | 10 | (blank) |
5 | Library C | 35 | On Hold | =IF(C5="On Hold","","OK") |
6 | Library D | 29 | 6 | Verified |
Let us trace what each formula returns on this exact sheet:
=SUM(B2:B6)adds42 + 38 + 40 + 35 + 29=184total books returned.=AVERAGE(C2:C6)averages only the four numeric cells in columnC(12, 8, 10, 6), ignoring the text"On Hold"inC5:9.=COUNT(C2:C6)returns4(onlyC2,C3,C4, andC6hold numbers;C5holds text).=COUNTA(D2:D6)returns4(D2,D3, andD6hold text, andD5holds a formula returning"", whichCOUNTAcounts; only truly blankD4is skipped).=COUNTBLANK(D2:D6)returns2(D4is truly blank andD5evaluates to"").=MAX(B2:B6)returns42and=MIN(B2:B6)returns29.=SUMIF(A2:A6,"Library A",C2:C6)sums columnConly where columnAequals"Library A"(rows2and4):12 + 10=22reams.=VLOOKUP("Library D",A2:D6,2,FALSE)scans the leftmost column (A2:A6) for an exact match (FALSE) to"Library D"(found on row6) and returns the value from the 2nd column ofA2:D6(columnB), giving29. Remember thatVLOOKUPcan only search down the first column of the specifiedtable_arrayand look rightward; omittingFALSEdefaults to an approximate match, which can return an incorrect match unless the first column is sorted in ascending order.
Sorting and Filtering a Table
Sorting places records in a chosen order; filtering temporarily displays only records meeting a criterion. In desktop Excel, a table's header menus offer sorting and filtering. Keep all columns of a record together when sorting rows so the library name, returns and notes remain associated. Verify that headers are recognized correctly and that numeric values are stored as numbers rather than text.
In the fictional sheet, sorting the entire record set by Books Returned largest to smallest would order the numeric counts as 42, 40, 38, 35 and 29. Filtering the Library column to Library A instead displays the two matching records (42 and 40 returns); clearing the filter makes the other records visible again. A filter does not delete data or automatically change the behavior of ordinary SUM over the full source range. Excel's SUBTOTAL can calculate totals for visible filtered records when appropriate.
In the range C2:C6, three cells contain numbers (12, 8, 6), one cell contains the text 'Pending', and one cell contains a formula returning an empty string (""). What does =COUNT(C2:C6) return?
5
3
4
2
A clerk writes =VLOOKUP(G2, A2:D50, 3, FALSE) to pull an employee's section name from a master roster. Why is FALSE included as the fourth argument?
It tells Excel to search from right to left across the columns
It prevents Excel from displaying an error when a match is missing
It locks the lookup table range so it cannot move when copied
It requires an exact match instead of an approximate match on a sorted list
In Microsoft Excel's default A1 reference style, type the exact cell address for column D, row 7:
Type your answer below
The fictional worksheet contains five library records. Filtering the Library column to Library A displays two records. What happens to the other three records?
They are permanently deleted
They automatically change to Library A
They are hidden temporarily and reappear when the filter is cleared
They are moved into a different workbook
Sections you finish are checked off in the contents.