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 signs

  • COUNT 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

Last updated: December 2026

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*C2 from row 2 down to row 3, 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$2 holds a fixed unit price of PKR 950 per paper ream, writing =C2*$E$2 in row 2 and copying it down to row 5 turns it into =C5*$E$2—the quantity updates per row while the unit price stays pinned to $E$2.
  • Mixed Reference ($A2 or A$2): Locks only the column or only the row. In Excel for Windows, pressing F4 while 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:

FunctionSyntax ExampleWhat It DoesFunction Detail
SUM=SUM(B2:B7)Adds all numeric values in a rangeIgnores blank cells and text
AVERAGE=AVERAGE(B2:B7)Calculates the arithmetic meanDivides by numeric count only; empty cells are ignored, unlike 0
COUNT=COUNT(C2:C7)Counts cells containing numbersIgnores text labels, blank cells, and errors
COUNTA=COUNTA(C2:C7)Counts all non-empty cellsCounts numbers, text, errors, and formulas returning ""
COUNTBLANK=COUNTBLANK(C2:C7)Counts empty cellsCounts truly blank cells and formulas returning ""
MAX=MAX(B2:B7)Returns the largest number in the rangeIgnores text and empty cells
MIN=MIN(B2:B7)Returns the smallest number in the rangeIgnores text and empty cells
SUMIF=SUMIF(A2:A7,"Library A",C2:C7)Sums values meeting one conditionUses (criteria_range, criteria, sum_range)
VLOOKUP=VLOOKUP(F2,A2:D7,3,FALSE)Looks down column 1 and returns a matchUse 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:

  • COUNT counts only numeric entries (including dates, which Excel stores as serial numbers). Text strings and empty cells are skipped.
  • COUNTA counts 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).
  • COUNTBLANK counts 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:

RowCol A (Library)Col B (Books Returned)Col C (A4 Reams Issued)Col D (Audit Note)
1LibraryReturnsReamsAudit_Note
2Library A4212Verified
3Library B388Pending
4Library A4010(blank)
5Library C35On Hold=IF(C5="On Hold","","OK")
6Library D296Verified

Let us trace what each formula returns on this exact sheet:

  1. =SUM(B2:B6) adds 42 + 38 + 40 + 35 + 29 = 184 total books returned.
  2. =AVERAGE(C2:C6) averages only the four numeric cells in column C (12, 8, 10, 6), ignoring the text "On Hold" in C5: (12+8+10+6)÷4=(12 + 8 + 10 + 6) \div 4 = 9.
  3. =COUNT(C2:C6) returns 4 (only C2, C3, C4, and C6 hold numbers; C5 holds text).
  4. =COUNTA(D2:D6) returns 4 (D2, D3, and D6 hold text, and D5 holds a formula returning "", which COUNTA counts; only truly blank D4 is skipped).
  5. =COUNTBLANK(D2:D6) returns 2 (D4 is truly blank and D5 evaluates to "").
  6. =MAX(B2:B6) returns 42 and =MIN(B2:B6) returns 29.
  7. =SUMIF(A2:A6,"Library A",C2:C6) sums column C only where column A equals "Library A" (rows 2 and 4): 12 + 10 = 22 reams.
  8. =VLOOKUP("Library D",A2:D6,2,FALSE) scans the leftmost column (A2:A6) for an exact match (FALSE) to "Library D" (found on row 6) and returns the value from the 2nd column of A2:D6 (column B), giving 29. Remember that VLOOKUP can only search down the first column of the specified table_array and look rightward; omitting FALSE defaults 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.

Test Your Knowledge

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?

A

5

B

3

C

4

D

2

Test Your Knowledge

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?

A

It tells Excel to search from right to left across the columns

B

It prevents Excel from displaying an error when a match is missing

C

It locks the lookup table range so it cannot move when copied

D

It requires an exact match instead of an approximate match on a sorted list

Test Your Knowledge
Fill in the Blank

In Microsoft Excel's default A1 reference style, type the exact cell address for column D, row 7:

Type your answer below

Test Your Knowledge

The fictional worksheet contains five library records. Filtering the Library column to Library A displays two records. What happens to the other three records?

A

They are permanently deleted

B

They automatically change to Library A

C

They are hidden temporarily and reappear when the filter is cleared

D

They are moved into a different workbook

Sections you finish are checked off in the contents.