Excel Lesson 10 – Basic Formulas | Dataplexa
Lesson 10 · Basics Practical

Basic Formulas

This is the lesson where Excel stops being a glorified table and starts being a calculation engine. Formulas are instructions you write into a cell that tell Excel to compute something — a total, an average, a count, a maximum. Once a formula is in place it updates automatically whenever the data it references changes. You write it once and it works forever. This lesson covers the essential formulas every Excel user needs from day one.

How Formulas Work

Every formula in Excel starts with an equals sign =. That equals sign is the signal to Excel that what follows is a calculation, not text. Without it, Excel treats whatever you type as plain text and stores it as-is.

After the equals sign, you can write arithmetic directly, reference cells, or call a function — or combine all three. Here is the anatomy of a formula:

=SUM(B2:B8) + C1
=
Equals Sign
Starts every formula
SUM
Function Name
The calculation to perform
B2:B8
Argument
The range to work on
C1
Cell Reference
Added to the result

Functions are pre-built formulas that Excel provides. Instead of writing a long addition like =B2+B3+B4+B5+B6+B7+B8, you call the SUM function with a range: =SUM(B2:B8). Same result, far less typing, and it handles any number of rows automatically.

Basic Arithmetic Operators

Before we get into functions, here are the arithmetic operators you can use directly in any formula. These work exactly like a calculator:

+
Addition
=B2+C2
Adds two values
-
Subtraction
=B2-C2
Subtracts one value from another
*
Multiplication
=B2*C2
Multiplies two values
/
Division
=B2/C2
Divides one value by another
^
Exponent
=B2^2
Raises a value to a power
&
Concatenate
=A2&" "&B2
Joins text strings together

SUM — Add a Range of Numbers

SUM is the most commonly used function in Excel. It adds up every number in the range you give it. You can sum a column, a row, a block, or a mix of separate cells.

=SUM(B2:B8)           Sum a column range
=SUM(B2:F2)           Sum a row range
=SUM(B2:D8)           Sum a block of cells
=SUM(B2,D5,F8)        Sum specific non-adjacent cells
=SUM(B2:B8, D2:D8)    Sum two separate ranges together
SUM in Action — Monthly Sales Total
A B
1MonthSales
2January12,400
3February15,800
4March18,200
5April14,600
6May19,100
7June22,500
8 TOTAL =SUM(B2:B7)
=SUM(B2:B7)
102,600

AVERAGE — The Mean of a Range

AVERAGE calculates the arithmetic mean — it adds up all the values and divides by how many there are. It automatically ignores empty cells (but not cells containing zero).

=AVERAGE(B2:B7)
17,100 (102,600 ÷ 6 months)

A useful companion is AVERAGEIF — the same as AVERAGE but only for rows matching a condition, like the average sales for a specific region. We will cover that in the Logical Functions lesson.

COUNT, COUNTA, COUNTBLANK

The COUNT family of functions tells you how many cells contain something. They are more useful than they first appear — especially when your data has gaps or you need to validate whether a column is fully filled in.

COUNT
Counts cells containing numbers only. Ignores text and empty cells. Use this when you need to know how many numeric entries exist.
COUNTA
Counts cells that are not empty — numbers, text, dates, anything. Use this to count how many rows have been filled in.
COUNTBLANK
Counts cells that are empty. Use this to audit a column for missing values — if the result is 0, the column is complete.
=COUNT(B2:B100)        How many numeric values in B2:B100
=COUNTA(A2:A100)       How many non-empty cells in A2:A100
=COUNTBLANK(A2:A100)   How many empty cells in A2:A100
COUNT: 6    COUNTA: 7    COUNTBLANK: 2

A common pattern is to use =COUNTA(A:A)-1 to count the number of data rows in a column — subtracting 1 to exclude the header row. Clean and simple.

MIN and MAX — Smallest and Largest

MIN returns the smallest value in a range. MAX returns the largest. Both ignore empty cells and text.

=MIN(B2:B7)     Lowest monthly sales figure
=MAX(B2:B7)     Highest monthly sales figure
MIN: 12,400 (January)     MAX: 22,500 (June)

You can also combine them — for example, to calculate the range between the lowest and highest: =MAX(B2:B7)-MIN(B2:B7). Useful for spotting how spread out your data is.

ROUND, ROUNDUP, ROUNDDOWN

Numbers from calculations often come with long decimal tails. The ROUND family lets you control how many decimal places your result shows — and unlike simply formatting a cell to show fewer decimals, ROUND actually changes the stored value.

=ROUND(number, num_digits)

=ROUND(17100.666, 2)      →  17100.67   (rounds to 2 decimal places)
=ROUND(17100.666, 0)      →  17101      (rounds to nearest whole number)
=ROUND(17100.666, -2)     →  17100      (rounds to nearest hundred)

=ROUNDUP(17100.1, 0)      →  17101      (always rounds up, even if .1)
=ROUNDDOWN(17100.9, 0)    →  17100      (always rounds down, even if .9)
ROUND(17100.666, 0) = 17,101     ROUNDUP(17100.1, 0) = 17,101     ROUNDDOWN(17100.9, 0) = 17,100

Use ROUND when accuracy matters — for example, in financial reports where displaying 17,100.67 as 17,101 due to formatting could create a discrepancy between what is shown and what is calculated.

Putting It All Together — A Sales Summary

Here is a practical example of all these functions working together on a real business dataset. This kind of summary block is something you will build in almost every reporting project:

Q1 Sales Summary — All Key Functions in Use
Sales Rep Sales
Maria38,000
James55,000
Sarah42,000
David47,000
Priya61,000
TOTAL $243,000
AVERAGE $48,600
HIGHEST $61,000
LOWEST $38,000
COUNT 5 reps
Formulas Used
TOTAL
=SUM(B2:B6)
AVERAGE
=AVERAGE(B2:B6)
HIGHEST
=MAX(B2:B6)
LOWEST
=MIN(B2:B6)
COUNT
=COUNT(B2:B6)

Formula Errors — What They Mean

When a formula cannot calculate correctly, Excel shows an error code instead of a result. These are not random — each error code tells you exactly what went wrong. Knowing what each one means saves a lot of debugging time:

#DIV/0!
You are dividing by zero or by an empty cell. Check the denominator in your formula.
#VALUE!
Wrong data type in the formula — like trying to add a number to text. Check that all referenced cells contain the right type.
#REF!
The cell the formula references has been deleted or moved. The reference is now broken.
#NAME?
Excel does not recognise the function name — usually a typo. Check the spelling of your function.
#N/A
A lookup function (like VLOOKUP or XLOOKUP) could not find the value it was looking for. Very common in lookup formulas.
######
Not really an error — the column is just too narrow to display the value. Widen the column and it disappears.
💡 Teacher's Note
Always reference cells in your formulas rather than typing raw numbers. Instead of =1200*0.2, write =B2*C2 where B2 holds the amount and C2 holds the rate. This way, if the rate changes from 20% to 25%, you update one cell and every formula recalculates automatically. Hard-coding numbers into formulas is one of the most common mistakes I see in professional spreadsheets — it makes them fragile and hard to maintain.

🟠 Practice

Q1. Your sales data runs from B2 to B13. Write a formula that calculates the total, the average, and counts how many values are in the range.




Q2. A cell shows #DIV/0!. What does this mean and how do you fix it?




Q3. You need to round 4876.349 to the nearest hundred. Which formula achieves this?



🟣 Quiz

Q1. A column has 10 cells — 7 contain numbers, 2 contain text, and 1 is empty. What does =COUNT(A1:A10) return?







Q2. What is the difference between formatting a cell to show 0 decimal places and using =ROUND(value, 0)?







Q3. A cell shows #REF!. What most likely caused this?






Next up — Text Functions, where you will learn how to clean, extract, combine, and transform text data using functions like LEFT, RIGHT, MID, TRIM, UPPER, and more.