How-to
Spreadsheet formulas for beginners: the ten you will use most
How formulas and cell references work, plus SUM, AVERAGE, COUNT, IF, SUMIF, lookups and rounding, explained with simple household and work examples.

Spreadsheet formulas for beginners can look intimidating, but a handful of them cover most everyday needs: adding up a budget, averaging scores, counting entries or flagging overdue items. Once you understand how a formula is built, the rest is just learning names.
This guide explains how formulas and cell references work, then walks through the ten functions most people use, with simple examples. Function names and syntax are almost identical across the common spreadsheet programs, whether installed or in the browser.
How does a spreadsheet formula work?
Every formula starts with an equals sign. After it, you write a calculation using numbers, cell references and functions. Type =5+3 in a cell and it shows 8. Type =A1+A2 and it adds whatever is in cells A1 and A2, updating automatically when they change.
Functions are named shortcuts for common calculations. They take inputs, called arguments, inside brackets, separated by commas. =SUM(A1:A10) adds every number from A1 to A10; the colon means “through”. In some regional settings, spreadsheets use semicolons instead of commas between arguments, so if a formula gives an error, check which separator your program expects.
- Start with =
- Use + − * / for add, subtract, multiply, divide
- Refer to cells by column letter and row number, such as B4
- Use a colon for ranges, such as B2:B20
- Press Enter to confirm, then drag the fill handle to copy the formula down
What are relative and absolute references?
When you copy a formula to another cell, its references move with it. A formula =B2*C2 copied one row down becomes =B3*C3. These are relative references, and they are what you want most of the time.
Sometimes one value must stay fixed, such as a tax rate in cell F1. Add dollar signs to lock it: =B2*$F$1. Now, when you copy the formula down, B2 changes to B3, B4 and so on, but $F$1 stays the same. In most programs, pressing F4 while editing a reference cycles through the locking options.
Every formula starts with an equals sign; the rest is just learning names.
Which basic functions should you learn first?
These five cover a large share of everyday spreadsheet work: budgets, scores, inventories and simple reports. Learn them first and practise each on a small list of numbers.
- =SUM(B2:B20) adds up a range
- =AVERAGE(B2:B20) gives the mean of a range
- =COUNT(B2:B20) counts cells containing numbers; =COUNTA counts any non-empty cells
- =MIN(B2:B20) and =MAX(B2:B20) find the smallest and largest values
- =ROUND(B2, 2) rounds a value to two decimal places
How does the IF function work?
IF lets a spreadsheet make a decision. It has three parts: a test, what to show if the test is true, and what to show if it is false. =IF(C2>100, "Over budget", "OK") shows “Over budget” when C2 is more than 100 and “OK” otherwise. Text in formulas goes inside straight double quotes.
Tests use comparison signs: = equal, <> not equal, > greater than, < less than, >= and <=. You can also put calculations in the true and false parts, such as =IF(B2>=50, B2*0.1, 0) to calculate a bonus only above a threshold.
How do you add up or count only some rows?
SUMIF and COUNTIF apply a condition. Say column A holds categories such as Food, Transport and Bills, and column B holds amounts. =SUMIF(A2:A100, "Food", B2:B100) adds up only the food spending. =COUNTIF(A2:A100, "Food") counts how many food entries there are.
When you need more than one condition, use SUMIFS and COUNTIFS. =SUMIFS(B2:B100, A2:A100, "Food", C2:C100, "March") adds food spending in March, assuming column C holds the month. These functions turn a simple list into a useful summary without any manual sorting.
How do you look up a value in another table?
Lookups find a value in one column and return the matching value from another, such as a price for a product code. The classic function is VLOOKUP: =VLOOKUP(E2, A2:C50, 3, FALSE) looks for E2 in the first column of A2:C50 and returns the value in the third column of the same row. FALSE means it must be an exact match, which is almost always what you want.
Many current spreadsheet programs also offer XLOOKUP, which is easier to read: =XLOOKUP(E2, A2:A50, C2:C50) looks for E2 in A2:A50 and returns the matching item from C2:C50. It can look left or right and defaults to an exact match. If your program does not recognise it, the combination INDEX and MATCH does the same job and works everywhere.
What do common formula errors mean?
Errors are clues, not failures. Each one points to a specific problem. Click the cell and read the formula in the formula bar to find the cause.
- #DIV/0! means you divided by zero or by an empty cell
- #N/A means a lookup found no match
- #NAME? means a function name is misspelled or text is missing quotes
- #REF! means a formula refers to a cell that was deleted
- #VALUE! means the wrong type of data, such as text where a number was expected
- ##### usually just means the column is too narrow to show the result
Frequently asked questions
How do I add up a column in a spreadsheet?
+
Click the cell below the numbers and type =SUM(, then select the cells you want to add and close the bracket, for example =SUM(B2:B20). Press Enter. Many programs also have an AutoSum button that writes this for you.
What does the $ sign mean in a formula?
+
The dollar sign locks part of a cell reference so it does not change when you copy the formula. $F$1 always points to F1, while F1 without dollar signs shifts as you copy the formula to other cells.
What is the difference between COUNT and COUNTA?
+
COUNT counts only cells that contain numbers. COUNTA counts every cell that is not empty, including text. Use COUNTA to count names or entries, and COUNT for numeric values.
Should I use VLOOKUP or XLOOKUP?
+
If your spreadsheet program supports XLOOKUP, it is simpler and more flexible. If you share files with people using programs that may not support it, VLOOKUP or INDEX with MATCH works everywhere.
Why does my formula show as text instead of a result?
+
The cell may be formatted as text, or the formula may not start with an equals sign. Change the cell format to General or Automatic, then re-enter the formula.
Why do I get an error when I use commas in a formula?
+
In some regional settings, spreadsheets use semicolons to separate function arguments, because the comma is used as a decimal point. Replace the commas between arguments with semicolons.
Start with SUM, AVERAGE and IF on a small list you actually care about, such as a monthly budget. Once those feel natural, add SUMIF and a lookup, and you will handle most everyday spreadsheet tasks with confidence.
How we research: Guides are written from established sources and checked for accuracy. They are general information, not professional advice.
Written by
Cursorlane Editorial Team
Software & tools
Our writers are developers and heavy software users who test what they write about and update guides when the tools change.


