Essential Spreadsheet Formulas and Functions Every Beginner Needs

Most everyday spreadsheet work needs about a dozen functions: adding up columns, counting and averaging, making decisions with IF, pulling values from another table, and tidying text and dates. Learn how cell references behave before you learn the functions, because a formula that works in one cell often breaks when you copy it down.

A formula is any calculation you write in a cell that starts with an equals sign. A function is a built-in operation that a formula can call. =B2*C2 is a formula with no function. =SUM(B2:B20) is a formula that uses the SUM function. Excel, Google Sheets and LibreOffice Calc use the same names for nearly all the functions in this guide, so the knowledge transfers between them.

How a formula is built

Every formula starts with =, followed by values, cell references, operators and functions. The main operators are +, -, * (multiply), / (divide) and ^ (power). The & operator joins text, so =A2&" "&B2 puts two cells together with a space between them.

Spreadsheets follow the usual order of operations: brackets first, then powers, then multiplication and division, then addition and subtraction. The brackets matter. =(B2+C2)/2 gives the mean of two values, while =B2+C2/2 gives something quite different. When a result looks wrong, add brackets to make the intended order explicit.

Function arguments are separated by commas in most English settings. Some regional settings, common in parts of Europe, use semicolons instead. If a formula that you copied from a guide produces an error about a problem with the formula, check the separator your software expects.

Cell references: relative, absolute and mixed

A plain reference such as B2 is relative. When you copy the formula down one row, =B2*C2 becomes =B3*C3. This is what you want when every row follows the same pattern.

A dollar sign locks part of a reference. Suppose cell F1 holds a VAT rate of 20%, and column B holds net prices. In C2, =B2*$F$1 gives the VAT on the first row. When you copy it down, the reference to F1 stays fixed, while B2 moves to B3, B4 and so on.

  • $F$1 locks both the column and the row. Copy it anywhere and it still points to F1.
  • $F1 locks only the column. Useful when copying across a row of different months but down a fixed list.
  • F$1 locks only the row. Useful when copying down a list but across a fixed set of headers.

In Excel on Windows, pressing F4 while the cursor sits on a reference cycles through these four states. You can always type the dollar signs by hand, which is how most people learn them.

Cell Rangers: Google Sheets Lessons for Kids

Skip the setup

Cell Rangers: Google Sheets Lessons for Kids

Self-checking spreadsheet activities that teach formulas, sorting and charts step by step.

See it on Taskdale →

The core functions to learn first

Adding up: SUM

=SUM(C2:C50) adds every number in the range from C2 to C50. A range is a block of cells named by its top-left and bottom-right corners, separated by a colon.

SUM ignores text and blank cells, which is convenient but can hide problems. A number that was pasted in as text, such as 54.20 stored as a string, contributes nothing to the total. The sum comes out lower than expected and no error appears. Later in this guide you will see how to find these cells.

You can add several ranges in one call: =SUM(C2:C50,E2:E50). Each argument can be a single cell, a range or another formula.

Averages, extremes and counts

AVERAGE, MIN and MAX work the same way as SUM, taking a range and returning one value. AVERAGE ignores blank cells but treats a zero as a real value. If a column contains zeros for months with no spending, the average falls. If those cells are empty, it does not. Decide which one you mean before you trust the figure.

The three count functions answer different questions:

  • COUNT counts only cells that contain numbers.
  • COUNTA counts every non-empty cell, including text.
  • COUNTBLANK counts empty cells in a range.

Use COUNTA to check how many rows are filled in a list of names, and COUNT to check how many amounts you have entered. If the two numbers differ, some amounts are probably stored as text.

Making decisions: IF and IFERROR

=IF(C2>100,"Review","OK") returns “Review” when the value in C2 exceeds 100 and “OK” otherwise. The structure is always the same: a test, the result if the test is true, and the result if it is false.

Nested IFs get hard to read after two or three levels. In Excel 2019 and later, and in Google Sheets, IFS takes pairs of tests and results instead, which is easier to audit: =IFS(C2>200,"High",C2>100,"Medium",TRUE,"Low"). The final TRUE acts as the default.

IFERROR replaces an error with a value you choose: =IFERROR(B2/C2,0) returns 0 whenever the division fails. Use it only when a blank or zero is a valid answer. Used carelessly, it hides the very mistakes you need to see.

Conditional totals: SUMIF, COUNTIF and their relatives

These functions apply a test before they add or count. =SUMIF(B2:B7,"Groceries",C2:C7) looks at column B, finds rows labelled “Groceries”, and adds the matching amounts in column C. COUNTIF(B2:B7,"Groceries") counts those rows instead.

The test, called the criteria, can be a word, a number or a comparison: ">100", "<>Travel" (not equal to Travel), or "Eating*" (starts with “Eating”, using a wildcard). SUMIFS and COUNTIFS accept several pairs of range and criteria, so you can total “Groceries” spending in March only.

Looking up values from another table: VLOOKUP, XLOOKUP and INDEX with MATCH

A lookup finds a key in one list and returns a related value from the same row of another list. Typical uses include pulling a budget figure for a category, or a price for a product code.

The original tool is VLOOKUP:

=VLOOKUP(B2,Budget!A2:B5,2,FALSE)

This means: find the value in B2 within the first column of Budget!A2:B5, then return the value from column 2 of that range. The final FALSE requests an exact match. Leaving it out, or typing TRUE, makes the function accept the nearest match, which can return a wrong answer without any warning.

XLOOKUP is newer and clearer: =XLOOKUP(B2,Budget!A2:A5,Budget!B2:B5,"Not set"). It names the lookup range and the return range directly, and the fourth argument supplies a message when nothing matches.

INDEX with MATCH does the same job in every version: =INDEX(Budget!B2:B5,MATCH(B2,Budget!A2:A5,0)). The 0 requests an exact match.

Working with text

  • TRIM removes extra spaces at the start and end of a cell, and doubles between words. Imported data often contains invisible trailing spaces that break lookups.
  • LEFT(text,n), RIGHT(text,n) and MID(text,start,n) extract characters. =LEFT(A2,3) returns the first three letters.
  • LEN counts characters, which helps when you suspect hidden spaces.
  • UPPER, LOWER and PROPER change capitalisation.
  • TEXTJOIN combines a range with a separator: =TEXTJOIN(", ",TRUE,A2:A4) joins three cells into one list, skipping blanks when the second argument is TRUE.

Working with dates

Dates are numbers behind the scenes, which is why you can subtract them. Several functions handle the common cases:

  • YEAR, MONTH and DAY pull out one part of a date.
  • EDATE(date,months) moves a date forward or back by whole months.
  • EOMONTH(date,months) returns the last day of a month, useful for monthly reporting.
  • TODAY() returns the current date and NOW() returns the current date and time. Both recalculate every time the sheet changes, which can shift totals without warning.

Rounding

=ROUND(A2,2) rounds to two decimal places. Formatting a cell to show two decimals changes only the display. The underlying number keeps all its precision, so a total of rounded displays can differ by a penny from the total of the stored values. Use ROUND when the rounded figure is the one you need to keep.

How to choose the right function

Start from the question, not from the function list. The table below maps common questions to a starting point.

What you need to knowStart withExample
Total of a listSUM=SUM(C2:C50)
Total of rows matching a labelSUMIF or SUMIFS=SUMIF(B2:B50,"Travel",C2:C50)
How many rows match a labelCOUNTIF or COUNTIFS=COUNTIF(B2:B50,"Travel")
Yes or no, pass or failIF or IFS=IF(C2>100,"Review","OK")
A value from another tableXLOOKUP or INDEX with MATCH=XLOOKUP(B2,Budget!A2:A5,Budget!B2:B5)
Clean up imported textTRIM=TRIM(A2)
A date a number of months awayEDATE=EDATE(A2,3)

Lookup functions deserve a closer comparison, because the choice affects what happens when someone edits the sheet later.

AttributeVLOOKUPINDEX with MATCHXLOOKUP
Available inEvery versionEvery versionExcel 2021 and Microsoft 365, Google Sheets
Can return a value to the left of the keyNoYesYes
Survives an inserted columnNo, the column number goes staleYesYes
Built-in message when nothing matchesNo, needs IFERRORNo, needs IFERRORYes, fourth argument
Readability for a beginnerFamiliar but fragileModerateClearest

For a new sheet, use XLOOKUP if everyone who opens the file has a current version. If the file must work in an older Excel, use INDEX with MATCH. Avoid VLOOKUP for anything you expect to change, because a column inserted in the source table silently changes which column is returned.

Seaglass Annual Budget Spreadsheet

Ready-made template

Seaglass Annual Budget Spreadsheet

A year of budgeting in one Excel file: monthly budgets, bill calendar, debt payoff and a dashboard.

See it on Taskdale →

Worked example: a monthly spending sheet

This example builds a small summary for one month of spending. It uses two sheets: a sheet named Transactions with dates in column A, categories in column B and amounts in column C, and a sheet named Budget with categories in column A and monthly limits in column B.

Six transactions, in pounds:

CategoryAmount (£)
Groceries54.20
Transport12.50
Groceries38.75
Eating out27.00
Groceries61.10
Utilities84.00

The Budget sheet sets Groceries at £150, Transport at £40, Eating out at £50 and Utilities at £90.

Work through these steps in order.

  1. Total all spending. In a cell on the Transactions sheet, enter =SUM(C2:C7). The result is 277.55.
  2. Count grocery transactions. Enter =COUNTIF(B2:B7,"Groceries"). The result is 3.
  3. Total grocery spending. Enter =SUMIF(B2:B7,"Groceries",C2:C7). The result is 154.05.
  4. Find the average transaction. Enter =AVERAGE(C2:C7). The cell displays 46.26, although the stored value is 46.2583 recurring, so the displayed figure is rounded.
  5. Find the largest transaction. Enter =MAX(C2:C7). The result is 84.00.
  6. Build a category summary. In a new block, list the four categories in A12 to A15. In B12, enter =SUMIF($B$2:$B$7,A12,$C$2:$C$7) and copy it down. The dollar signs fix the two ranges, while A12 moves with each row.
  7. Look up each budget. In C12, enter =IFERROR(INDEX(Budget!$B$2:$B$5,MATCH(A12,Budget!$A$2:$A$5,0)),"Not set") and copy it down. The IFERROR shows “Not set” if a category has no budget, rather than an error.
  8. Calculate the share of budget used. In D12, enter =IFERROR(B12/C12,"") and format the column as a percentage.

The finished summary:

CategorySpent (£)Budget (£)Used
Groceries154.05150.00102.7%
Transport12.5040.0031.3%
Eating out27.0050.0054.0%
Utilities84.0090.0093.3%

Groceries is £4.05 over budget, which the 102.7% figure shows at a glance. Utilities is close to its limit, with £6.00 left.

Test the sheet before you rely on it. Add a seventh transaction in Groceries and confirm that the grocery total, the count and the summary all change. Then type a grocery price as text, with a trailing space, and see how the totals respond. Finding these failures now costs a few minutes. Finding them after a month of decisions based on the numbers costs far more.

Before you rely on a sheet

Run through this list before you share a sheet or make a decision from it.

  • Check that each total’s range covers every row, including rows added later.
  • Confirm that numbers are numbers: right-aligned, and counted by COUNT.
  • Search for error values with # in the find tool, and fix or explain each one.
  • Look at one copied formula and confirm that its references point where you expect.
  • Move every hard-coded rate, limit or date into a labelled input cell.
  • Test one known case by hand and check that the formula returns the same answer.
  • Write a one-line note at the top of the sheet explaining what each summary cell measures.

Key terms used in this guide

  • Argument: a value a function needs, such as the range in SUM(C2:C7).
  • Cell reference: the address of a cell, such as B2, used inside a formula.
  • Criteria: the test applied by SUMIF, COUNTIF and similar functions.
  • Error value: a message such as #N/A or #DIV/0! that a formula returns when it cannot produce a result.
  • Lookup key: the value a lookup function searches for in the first list.
  • Range: a block of cells, written as a top-left and bottom-right pair such as C2:C7.
  • Volatile function: a function that recalculates on every change, such as TODAY() or NOW().

If you learn the references, the twelve functions in this guide and the eight-step worked example, you can build most of the summary sheets a beginner will meet. Start with one real list you already keep, write the total and the count, then add one lookup. Each new formula you build from a real question will teach more than any list of functions.

Clearday Task Tracker

Get the finished file

Clearday Task Tracker

To-do lists with checkboxes, recurring tasks and a weekly and monthly view for Excel and Google Sheets.

See it on Taskdale →

Scroll to Top