Excel Formulas and Functions: A Beginner's Guide

Learn how to write Excel formulas, use functions and operators, copy references correctly, and troubleshoot common calculation errors.

An Excel formula is an instruction that calculates a result. A function is a predefined calculation that you can use inside a formula. For example, =B2*C2 is a formula built with cell references and an operator, while =SUM(B2:B10) is a formula that uses the SUM function.

That distinction matters less than knowing how the pieces fit together. Once you understand the equal sign, references, operators, functions, and arguments, you can read unfamiliar formulas instead of treating them as mysterious strings of symbols.

Formula or function: what is the difference?

Term Meaning Example
Formula An expression you enter to calculate or return a result =B2*C2
Function A predefined calculation with a name and expected arguments SUM(B2:B10)
Formula using a function A complete formula that calls a function =SUM(B2:B10)

Every worksheet formula begins with an equal sign. Without it, Excel normally treats what you typed as a value or text rather than as a calculation.

Read a formula one part at a time

Consider this formula:

=SUM(E2:E8)
  • = tells Excel that a formula follows.
  • SUM is the function name.
  • The parentheses enclose the function’s arguments.
  • E2:E8 is a range reference supplied as the argument.

A formula can also contain constants and operators. In =B2*C2*(1-D2), the references are B2, C2, and D2; the constant is 1; and the multiplication and subtraction signs are operators.

Function arguments are commonly separated with commas, but Excel may use semicolons when required by your operating-system locale and Excel settings. Follow the separator shown by Formula AutoComplete on your computer.

Build a useful formula from worksheet data

Suppose an order sheet uses column B for quantity, column C for unit price, column D for the discount rate, and column E for the final line amount.

  1. Select cell E2, where the result should appear.
  2. Type =.
  3. Select B2, type *, and select C2.
  4. Type *(1-D2).
  5. Press Enter.

The completed formula is:

=B2*C2*(1-D2)

If B2 contains 4, C2 contains 25, and D2 contains 10%, the formula returns 90. Excel first calculates the quantity times the price, then multiplies that amount by the portion remaining after the discount.

Using cell references instead of typing all three values directly into the formula makes the result respond when the worksheet data changes.

Use functions for common calculations

Functions save you from spelling out every operation. These five cover many everyday summaries:

Goal Formula What it returns
Total the order amounts =SUM(E2:E8) The sum of the numeric values
Find the average order amount =AVERAGE(E2:E8) The arithmetic mean
Find the smallest amount =MIN(E2:E8) The lowest numeric value
Find the largest amount =MAX(E2:E8) The highest numeric value
Count numeric amounts =COUNT(E2:E8) The number of cells containing numbers

Let Excel help with the syntax

As you type a function name after the equal sign, Formula AutoComplete displays matching functions. After you choose one, Excel shows the expected arguments. You can type references or select cells directly on the worksheet.

For a quick total, select the cell below a column of numbers and choose Home > AutoSum. Because AutoSum detects a nearby range for you, check the highlighted cells before pressing Enter.

If you do not know the function name, choose Formulas > Insert Function or select the Insert Function button beside the formula bar. You can search by task, choose a function, and fill in its arguments.

The Excel Insert Function dialog with the Statistical category selected and AVERAGE highlighted.
The Excel Function Arguments dialog showing the AVERAGE function using the range B1:B3.
An Excel worksheet showing the AVERAGE formula in cell B4 and the result 16.

These steps show how to insert the AVERAGE function, enter its range, and return the final result in the worksheet.

Microsoft’s formula overview provides more examples of functions, references, constants, and operators.

Control the order of calculation

Excel does not simply calculate every formula from left to right. It follows operator precedence. Parentheses override the default order by forcing the enclosed calculation to happen first. Without parentheses, Excel uses this order:

  1. Reference operators, including the colon in a range such as B2:B8
  2. Negation, as in -1
  3. Percent
  4. Exponentiation
  5. Multiplication and division
  6. Addition and subtraction
  7. Text concatenation with &
  8. Comparisons such as =, >, <, and <>

For example, the two formulas below do not return the same result:

=10+5*2
=(10+5)*2

The first returns 20 because multiplication occurs before addition. The second returns 30 because the parentheses make Excel add first.

Even when parentheses are not strictly required, they can make the intended logic easier to see. Use them when a reader might otherwise have to remember the precedence rules.

Copy formulas without breaking references

New references are relative by default. If the formula =B2*C2 is copied from row 2 to row 3, Excel changes it to =B3*C3. This is usually what you want when the same calculation applies to every record.

Use dollar signs when part of the reference must stay fixed. If cell H2 contains a tax rate, this formula keeps referring to that cell as it is copied down:

=E2*(1+$H$2)
Reference What can change when copied
H2 Row and column
$H$2 Nothing; both are locked
H$2 Column only
$H2 Row only

While editing a reference in the formula bar, press F4 to cycle through relative, absolute, and mixed forms.

Combine functions when one is not enough

A function can be used as an argument inside another function. This is called nesting. The following formula calculates an average and then rounds the result to two decimal places:

=ROUND(AVERAGE(E2:E8),2)

Read nested formulas from the inside out. Here, AVERAGE produces a value first, and ROUND uses that value. Nest only when it keeps the logic readable; helper cells can be clearer than one long formula.

Diagnose common formula problems

Problem Likely meaning First check
#DIV/0! The formula divides by zero or by a blank cell. Inspect the denominator and the referenced input.
#REF! A reference is no longer valid, often after referenced cells were deleted or replaced. Locate #REF! in the formula and restore the intended reference.
#VALUE! The formula or one of its arguments uses an unexpected value type. Check for text, hidden spaces, or an unsuitable argument.
#NAME? Excel does not recognize a function, defined name, or formula text. Check spelling and quotation marks around literal text.
##### The column is usually too narrow to display the value. Widen the column before changing the formula.

Show every formula on the worksheet

Press Ctrl+` to switch between displayed results and displayed formulas. You can also choose Formulas > Show Formulas. This view makes inconsistent references easier to spot across a row or column.

Do not wrap a formula in IFERROR until you understand the original error. IFERROR catches every error type, so it can hide a broken reference or an invalid input as easily as an expected error.

Microsoft’s guide to avoiding broken formulas covers separators, parentheses, missing arguments, and common error values in more detail.

Habits that make formulas easier to maintain

  • Keep inputs in cells instead of burying changeable values inside formulas.
  • Use parentheses to make the intended calculation order obvious.
  • Use absolute references only for inputs that must remain fixed.
  • Check the first copied formula before filling an entire column.
  • Break a long calculation into helper cells when that makes the logic easier to audit.
  • Fix the cause of an error before deciding whether its display should be suppressed.

Excel formula questions

Does every Excel formula need an equal sign?

Yes. A worksheet formula begins with =. The equal sign tells Excel to interpret what follows as a formula.

Where can I see the formula stored in a cell?

Select the cell and read the formula bar. The cell normally displays the result, while the formula bar displays the stored formula.

Can a formula use more than one function?

Yes. You can combine functions in one formula or nest one function inside another. Keep the result readable, and use helper cells when nesting starts to obscure the calculation.

Why does a formula change when I copy it?

Relative references adjust to the formula’s new position. Add dollar signs to create an absolute or mixed reference when a row or column must remain fixed.

Start with formulas you can explain

A reliable formula is not merely one that returns a result; it is one you can read and verify. Begin with the equal sign, identify each reference and operator, and check the function arguments before copying the formula elsewhere. That approach scales from a two-cell calculation to far more capable worksheets.