A formula is an expression that the spreadsheet evaluates to produce a result. It is created by the user and can contain:
A1, B2)+, -, *, /)All formulas begin with an equals sign (=). Example:
=A1 + B1 * 2 which is equivalent to the mathematical expression $A1 + (B1 \times 2)$.
A function is a predefined calculation that the spreadsheet software provides. Functions have a name, followed by arguments enclosed in parentheses. They can perform:
SUM, A \cdot ERAGE)IF)CONCATENATE)NOW)Example of a function:
=SUM(A1:A5) which adds the values in cells A1 through A5.
= and use operators directly; functions also start with = but require a name and parentheses with arguments.IFERROR), while formulas rely on the user to manage errors.| Type | Example | Purpose |
|---|---|---|
| Formula | =A2 * B2 - C2 |
Calculates a custom expression using cell values. |
| Function | =A \cdot ERAGE(D1:D10) |
Finds the mean of a range of numbers. |
| Combined | =SUM(A1:A5) + MAX(B1:B5) |
Uses two functions within one formula to add the total of A‑column to the highest value in B‑column. |
Use a formula when you need a unique calculation that is not covered by a built‑in function, or when you are combining several functions into a single expression.
Use a function when the required calculation is standard (e.g., sum, average, count) because it reduces the chance of errors and makes the worksheet easier to read.