Most small businesses get by with about a dozen functions. Invoicing, stock counts, simple payroll checks and monthly reporting reuse the same handful of formulas. The hard part is rarely the syntax. It is choosing the function that answers the question you actually have, and building the sheet so it still gives the right answer after someone adds a row on a busy Friday.
A worked example at the end builds a working sales and invoice log from scratch.
The core set of functions
The functions below cover most day-to-day needs. Learn these before anything else.
| Function | What it does | Typical small business use |
|---|---|---|
SUM | Adds a range of numbers | Total sales for the month |
SUMIFS | Adds values that meet one or more conditions | Sales for one client in March |
COUNTIFS | Counts rows that meet one or more conditions | Number of unpaid invoices |
IF | Returns one value if a condition is true, another if false | Flag stock below the reorder level |
IFERROR | Replaces an error with a value you choose | Show “Check code” when a lookup fails |
XLOOKUP | Finds a value in one range and returns the matching value from another | Price from a product list |
INDEX and MATCH | Do the same job as lookup functions, in older versions too | Price lookup in files shared with older Excel users |
ROUND | Rounds a number to a set number of decimal places | VAT amount to the penny |
EOMONTH | Returns the last day of a month, offset by a number of months | Month-end reporting boundaries |
SUMPRODUCT | Multiplies matching items across arrays, then adds them | Weighted totals, such as quantity multiplied by price |
You will also meet TODAY(), which returns the current date and updates every time the sheet recalculates. It is useful for ageing invoices and dangerous for anything that must not change, such as an invoice date.

Skip the setup
Sales, costs, cash and targets on one screen. The formulas are already built, so you type the numbers and the dashboard does the rest.
How the formulas work
Relative and absolute references
A formula such as =E2*F2 refers to cells by position. When you copy it down one row, it becomes =E3*F3. That is what you want for row-by-row calculations.
A fixed value, such as a VAT rate in cell Settings!B2, needs an absolute reference: =G2*Settings!$B$2. The dollar signs stop the reference shifting when the formula is copied. Without them, the first copy points at an empty cell and returns zero, which looks plausible until someone checks the totals.
Ranges, whole columns and tables
You can refer to a fixed range such as A2:A500, or to a whole column such as A:A. Fixed ranges are faster on very large sheets but miss any rows added below row 500. Whole columns catch every new row but also pick up headings and notes if they sit in the same column, which can throw off counts.
Excel tables (select the data and press Ctrl+T) solve much of this. The table expands automatically when you add a row, and formulas copy down without being dragged. Google Sheets has no direct equivalent, so there you use whole-column references or an ARRAYFORMULA where needed.
Argument separators and locale settings
In English-language versions of Excel and Google Sheets, function arguments are separated by commas. Some European locales use semicolons. If a formula copied from a website fails to paste, or the formula bar shows semicolons where you expected commas, the cause is usually the regional setting on the computer or the file, not the formula itself.
Choosing the right function
Most mistakes start with picking a function before defining the question. Work through five steps first:
- Write the question in plain words, for example “How much did client C014 owe at the end of March?”
- Decide the output: a single value, a value per row, or a list.
- List the conditions: the client, the month, the payment status.
- Check the data type of each column. Dates, numbers and text behave differently (see the edge cases below).
- Choose the simplest function that returns the answer. Add conditions only when a simpler version gives the wrong result.
The question types map to functions fairly consistently:
- “How much in total?” points to
SUM, orSUMIFSif there are conditions. - “How many meet a condition?” points to
COUNTIFS. - “What is the value for this code?” points to
XLOOKUPorINDEXwithMATCH. - “Do I need to act?” points to
IF, usually with a threshold. - “When is this due, or how old is it?” points to date arithmetic with
TODAY()andEOMONTH.
XLOOKUP, VLOOKUP and INDEX with MATCH
These three cause more arguments than any other pair of functions, so it helps to compare them directly.
| Feature | VLOOKUP | XLOOKUP | INDEX with MATCH |
|---|---|---|---|
| Available in | Every version | Microsoft 365, Excel 2021 onwards, and Google Sheets | Every version |
| Looks in which direction | Left column to right only | Either direction | Either direction |
| Match type by default | Approximate, unless the last argument is FALSE | Exact | Exact, if the match type is 0 |
| Survives inserted columns | No, the column number changes | Yes, because it refers to the range itself | Yes |
| Readability | Simple to read, easy to break | Simple to read | Two functions, more to check |
For a file that will be shared with people on older versions of Excel, use INDEX with MATCH. For a file used only in Microsoft 365 or Google Sheets, XLOOKUP is the clearer choice. VLOOKUP still works, but treat it as a legacy option: its column-number argument breaks silently when someone inserts a column in the source table.
Common mistakes and how to fix them
Hard-coded numbers inside formulas. A formula such as =G2*1.2 works until the VAT rate changes, and then every cell has to be found and edited. Put the rate in one labelled cell and reference it with an absolute reference.
Totals that include other totals. If a column contains a running subtotal and a grand total, a plain SUM over the column counts the subtotals as well. Keep totals in a separate column or row outside the data range, or use SUBTOTAL so the grand total ignores the subtotal rows.
Approximate matches by accident. A VLOOKUP without FALSE on an unsorted price list returns a plausible but wrong price, and nothing flags it. Set the exact-match argument every time, or use XLOOKUP, which defaults to exact.
Dates stored as text. A date that imports as text will sort wrongly, and SUMIFS on date ranges will return zero. The usual cause is a CSV exported in a different format. A cell that is left-aligned by default is often text. Convert the column with Data, Text to Columns, or use DATEVALUE on a copy of the column.
IFERROR hiding real problems. Wrapping an entire sheet in IFERROR makes every error look like a blank cell. Apply it only to the lookup itself, and return a visible marker such as “Check code” so the problem stays visible.
Copy-and-paste over formulas. Pasting values over a formula column removes the logic from the cells, and nobody notices until the figures stop changing. Protect formula columns, or lock them with sheet protection, where more than one person edits the file.
Merged cells in data ranges. Merged cells break sorting, and a SUMIFS range that spans a merged block can return a size mismatch error. Avoid merging anything inside a data table.

Ready-made template
BalanceBloom Bookkeeping Studio
Income, expenses, profit and loss and sales tax in one bookkeeping workbook for Excel and Google Sheets.
Edge cases that catch people out
Blank cells and zeros. AVERAGE ignores blank cells but counts zeros. A stock sheet that records zero sales on a closed day will show a lower average than one that leaves the day blank. Decide which is correct for your question, then enter it consistently.
Division by zero. A margin calculation such as =(Price-Cost)/Price returns #DIV/0! when a price is missing. Use =IF(B2=0,"",(B2-C2)/B2) so the cell stays readable.
Client names that differ slightly. SUMIFS matches text exactly, so “Smith Ltd” and “Smith Limited” count as two clients. Use a client ID in the data and keep the name in a separate lookup. This is the single most useful habit for small business reporting.
Date boundaries. A month total should run from the first day to the last day of the month, inclusive. A condition of "<="&DATE(2025,3,31) drops any time stamped on the last day if the dates include times. Use EOMONTH to avoid hard-coding the last day.
Negative values. Returns and credit notes entered as negatives will reduce SUM and SUMIFS results correctly, but COUNTIFS will count them as transactions unless you add a condition to exclude them.
Hidden and filtered rows. SUM includes hidden rows. SUBTOTAL(109, range) ignores rows hidden by a filter or by hand. Use the second when a report needs to respond to a filter.
Rounding per line or per total. Rounding each line’s VAT to the penny and summing the lines can differ by a penny from rounding the total VAT. Match the method to what the invoice shows, and apply it the same way every time.
Worked example: a sales and invoice log
This example builds a small sales log for a business that sells a handful of products on 20 per cent VAT terms. It uses two tabs and a settings cell, which is the standard arrangement for most small files.
Setting up the sheets
Create three tabs:
- Settings: cell B2 holds the VAT rate,
20%, with a label in A2. - Prices: columns A to C hold product code, description and net unit price, with data from row 2 to row 50.
- Sales: the working log.
On the Sales tab, set up the columns in this order:
| Column | Heading | Content |
|---|---|---|
| A | Date | Invoice date |
| B | Invoice no | Sequential invoice number |
| C | Client ID | Code such as C014 |
| D | Product code | Code from the Prices tab |
| E | Qty | Quantity sold |
| F | Unit price | Looked up from Prices |
| G | Net | Quantity multiplied by unit price |
| H | VAT | Net multiplied by the VAT rate, rounded |
| I | Gross | Net plus VAT |
| J | Paid | Y or N |
The formulas
Enter these in row 2 and copy them down, or convert the range to a table so they fill automatically.
Unit price, using INDEX and MATCH for compatibility with older versions:
=IFERROR(INDEX(Prices!$C$2:$C$50,MATCH(D2,Prices!$A$2:$A$50,0)),"Check code")
Net amount:
=E2*F2
VAT, rounded to the penny:
=ROUND(G2*Settings!$B$2,2)
Gross amount:
=G2+H2
Two worked rows show how these behave. Invoice 1041 is three units of product code BK-02 at £49.50 each. Net is £148.50, VAT is £29.70, and gross is £178.20. Invoice 1042 is two units of product code SV-11 at £120.00. Net is £240.00, VAT is £48.00, and gross is £288.00.
Reporting formulas
Net sales for March 2025, on a month boundary that stays correct for any month when you change the start date in one cell:
=SUMIFS(G:G,A:A,">="&DATE(2025,3,1),A:A,"<="&EOMONTH(DATE(2025,3,1),0))
Outstanding gross balance for client C014:
=SUMIFS(I:I,C:C,"C014",J:J,"N")
Count of invoices unpaid for more than 30 days, assuming 30-day payment terms:
=COUNTIFS(J:J,"N",A:A,"<"&(TODAY()-30))
Flag on each row, so overdue invoices can be filtered:
=IF(AND(J2="N",TODAY()-A2>30),"Overdue","")
Data check, to catch product codes that failed to match:
=COUNTIF(F:F,"Check code")
What happens when something goes wrong
Suppose someone types product code BK-20 on a new invoice, but the price list only contains BK-02. The unit price cell shows “Check code”. The net formula then multiplies quantity by text, which returns #VALUE!. That error is deliberate. It stops the total from being understated silently, and the data check formula in the reporting section counts the problem so it appears on the summary.
Fixing the price list adds the missing row, and every dependent cell recalculates with no further edits.
Keeping the example correct
Two habits keep this kind of file reliable. First, lock columns F to I so nobody overwrites a formula. Second, add a single reconciliation row that compares the sum of gross amounts against the figure from the bank or accounting software each month. A difference of a few pence usually points to rounding; a larger difference points to a missing or duplicated row.
Checklist for a working formula sheet
Use this list before a sheet goes into regular use:
- Every fixed number, such as a rate or a threshold, sits in a labelled cell and is referenced, not typed into formulas.
- Every lookup sets exact match, and every lookup has a visible “not found” result.
- Dates are real dates, confirmed by right alignment or by a test formula returning a value.
- Clients and products are identified by code, not by name.
- Formula columns are locked or protected where more than one person edits the file.
- A data check counts errors and unmatched codes, and the check is visible on the summary.
- A reconciliation row compares totals with an external source each period.
The rule to apply when a formula becomes hard to read
If a formula needs a comment to explain it, split it into two columns. A helper column that shows the converted date, or the eligible amount before the final sum, costs a little space and saves hours of checking later. Keep each cell answering one question, and the sheet will still make sense to whoever inherits it.

Get the finished file
Paidmark Invoice and Estimate Kit
Invoices, estimates, receipts and a payment tracker that flags what’s overdue, all in one Excel file.