Formulas and Functions
Listen to this lesson
Nigerian voice narration
Fictional training case. The manager at Kola & Sons Ventures looks at your expense register and asks four questions: How much did we spend? What was the average payment? How many vouchers were above ₦100,000? Which department spent the most? You could count by hand, but one wrong row would embarrass the office. This module teaches formulas that answer these questions instantly and correctly, and shows you how to check them before you report.

Introduction and learning objectives
This lesson explains how Excel formulas work and introduces the functions every office worker needs: SUM, AVERAGE, MIN, MAX, COUNT, COUNTA, IF, SUMIF and COUNTIF. You will also learn relative and absolute references and how to read common errors. By the end you should be able to write a formula from a plain-English question, copy it safely down a column and fix the errors you are likely to meet.
How a formula works
Every formula starts with an equals sign. =F2+F3 adds two cells. =SUM(F2:F10) adds a range. A function is a built-in formula with a name, such as SUM or AVERAGE. Arguments go inside brackets and are separated by commas or semicolons depending on your regional settings. The result appears in the cell, while the formula bar shows the formula. Press Enter to calculate. If you change a number in the range, Excel recalculates automatically. A formula should be readable: if you cannot explain it, do not send the report.

Try it yourself — step by step
- In E21 type Total spent and in F21 type =SUM(F2:F19).
- Below it add =AVERAGE(F2:F19), =MAX(F2:F19) and =COUNT(F2:F19).
- Format F21:F24 as #,##0 and shade the block green.
- Check the total against the visible rows before reporting.
The five everyday functions
=SUM(F2:F21) adds a column. =AVERAGE(F2:F21) gives the mean payment. =MIN(F2:F21) returns the smallest amount, which catches a ₦50 typo that should be ₦50,000. =MAX(F2:F21) returns the largest. =COUNT(F2:F21) counts numeric cells, while =COUNTA(A2:A21) counts non-empty cells such as voucher numbers. Use COUNT on amounts and COUNTA on text or mixed columns. These five functions answer most routine office questions without any advanced training.

Try it yourself — step by step
- In I1 type Receipt check.
- In I2 type =IF(H2="Yes","OK","Follow up").
- Copy the formula down to I14.
- Read each result and follow up the rows that say Follow up.
Making decisions with IF
The IF function tests a condition and returns one value if true and another if false. =IF(F2>100000,"Check","OK") flags payments above ₦100,000. A nested IF tests more than one condition: =IF(F2>500000,"High",IF(F2>100000,"Medium","Low")). Keep nested IFs short; if you need many categories, an IFS function or a lookup table is clearer. Text results must be in double quotes. Always test the first row before copying the formula down.

Try it yourself — step by step
- List Admin, Finance, Sales and Technical in J2:J5.
- In K2 type =COUNTIF(C$2:C$19,J2) and copy down.
- In L2 type =SUMIF(C$2:C$19,J2,F$2:F$19) and copy down.
- Add a green total row under the summary.
Adding only what matches: SUMIF and COUNTIF
=SUMIF(C2:C21,"Finance",F2:F21) adds amounts where the Department column says Finance. The order is range to check, condition, range to add. =COUNTIF(C2:C21,"Finance") counts matching rows. =SUMIFS adds with more than one condition: =SUMIFS(F2:F21,C2:C21,"Finance",D2:D21,"Travel"). Note that SUMIFS puts the sum range first. These functions turn a long register into a department summary in seconds.
Relative, absolute and mixed references
A relative reference like F2 changes when you copy the formula down to F3, F4 and so on, which is usually what you want. An absolute reference like $F$2 stays fixed. A mixed reference locks one part: $F2 locks the column, F$2 locks the row. Use absolute references for a single budget cell that every row must divide by. Press F4 while editing a reference to cycle through the four forms. Copying without the right lock is the most common cause of wrong totals.

Try it yourself — step by step
- Type =120000/0 to see #DIV/0!.
- Multiply text with ="Transport"*2 to see #VALUE!.
- Type =TOTAL(F2:F19) to see #NAME?.
- Leave a bracket open, then select the range again for #REF!.

Build the prompt from three phrases — Role, Task and Format — and watch the AI answer.
Reading and fixing common errors
#DIV/0! means you divided by zero or an empty cell; wrap the calculation in IFERROR. #VALUE! usually means a number is stored as text or a date is malformed. #NAME? means a function name is misspelled or missing. #REF! means a referenced cell was deleted. #N/A appears in lookups when the value is not found. Click the warning icon beside the cell to see Excel's explanation. Fix the cause rather than hiding every error with a blank result.
Step-by-step: build an expense summary
1) In the Expenses sheet, click an empty cell below the data. 2) Type =SUM(F2:F21) and press Enter. 3) In the next cell type =AVERAGE(F2:F21). 4) Add =MAX(F2:F21) and =MIN(F2:F21). 5) In a new area, list the departments once. 6) Beside the first department type =SUMIF($C$2:$C$21,H2,$F$2:$F$21). 7) Copy the formula down. 8) Add a flag column: =IF(F2>100000,"Check","OK"). 9) Compare the SUM total with the SUMIF department total; they must agree. 10) Save and note which figures you verified.
Workplace applications and checks
Use these formulas for attendance counts, sales by product, expenses by department, payroll totals and budget utilisation. Always keep a control total: the sum of a category breakdown must equal the grand total. Check the row count with COUNTA and compare it with the source document. If a number looks too round or too large, inspect the underlying rows. Save a copy before a major edit and write one line in the report explaining what was verified and what remains unconfirmed.
Common mistakes to avoid
The most damaging mistake is copying a formula without locking the budget or rate cell, so every row gradually points to the wrong reference. Others include typing numbers as text, using commas inside text without quotes, selecting the wrong range so the last row is excluded, and hiding every error with IFERROR before understanding it. Do not use a formula you cannot explain to a colleague. A formula that gives a confident wrong answer is worse than a manual count you can check.
Practice exercise
Open the downloadable expense register. Write formulas for total spend, average payment, highest payment, lowest payment and number of vouchers. Add an IF column that flags amounts above ₦100,000. Build a small department summary with SUMIF and COUNTIF. Check that the department totals add back to the grand total, then write one sentence about any difference.
Lesson summary
Formulas start with = and use functions such as SUM, AVERAGE, MIN, MAX, COUNT, COUNTA, IF, SUMIF and COUNTIF. Use absolute references when a cell must stay fixed. Learn to read errors such as #DIV/0!, #VALUE! and #REF!. Build a control total, compare it with the category breakdown and verify the row count before reporting any figure.
Open Microsoft Copilot (free tier) and paste this prompt there. Explains formula arguments clearly; confirm every result against your own register.
You are an Excel formula coach for Nigerian office workers. Write formulas to total expenses, count vouchers and flag payments above ₦100,000 formula first, then a one-line explanation of each part.
Why this tool: Explains formula arguments clearly; confirm every result against your own register.
Hit a free limit? Switch to ChatGPT or Gemini and continue — the prompt works in any assistant.
Answer all three questions and check your answers to unlock the next lesson. Pass mark: 2 of 3.
A copied formula gives a wrong result because the budget cell moved down. The fix is to…
Which function counts non-empty cells such as voucher numbers?
#VALUE! most often means…
