What a formula does and where to start

A formula in Excel is an instruction that tells the spreadsheet to perform a calculation using the numbers or text in your cells. Instead of typing the answer yourself, you write a formula once and Excel does the math every time — and updates it automatically if you change any of the numbers it uses.

Every formula starts with an equals sign (=). That single character tells Excel: "This is not just text I'm typing. This is an instruction." Without it, Excel treats what you type as regular text and does nothing with it.

The simplest formulas add, subtract, multiply, or divide. A formula like =10+5 will show 15. A formula like =A1+A2 will add whatever numbers are sitting in cell A1 and cell A2. That second type is far more useful, because when you change the number in A1 or A2, the answer updates by itself.

Key Takeaways

  • Every formula starts with an equals sign, followed by the calculation you want Excel to perform.
  • You can reference cells by their letter and number (like A1 or B3) instead of typing numbers directly, so the formula updates when those cells change.
  • The four basic operations are addition (+), subtraction (−), multiplication (*), and division (/).
  • After you type a formula and press Enter, Excel shows the result in that cell, and you can copy the formula down to other rows to repeat the same calculation.
  • If a formula shows an error like #DIV/0! or #REF!, it means Excel found a problem — usually a missing cell reference or division by zero.

The anatomy of a simple formula

Open a spreadsheet and click on any empty cell. Type =5+3 and press Enter. Excel shows 8. That is a formula. It is also useless, because you could have just typed 8.

Now try something practical. Put the number 100 in cell A1. Put the number 25 in cell A2. Click on cell A3 and type =A1+A2. Press Enter. Excel shows 125. If you later change the 100 to 200, the answer in A3 automatically becomes 225. That is why formulas matter — they do the work for you.

The parts of that formula are: the equals sign (which starts it), the cell reference A1 (which means "the value in A1"), the plus sign (the operation), and the cell reference A2 (which means "the value in A2"). You can chain as many of these together as you need: =A1+A2+A3+A4 adds four cells at once.

Using the four basic operations

Excel recognizes four symbols for basic math. Use + to add, − (minus sign) to subtract, * (asterisk) to multiply, and / (forward slash) to divide. Notice that multiplication uses an asterisk, not an × symbol — that is a common mistake that will break your formula.

A subtraction formula looks like =A1−A2. A multiplication formula looks like =A1*A2. A division formula looks like =A1/A2. You can also mix operations in one formula: =A1+A2*A3 will multiply A2 and A3 first, then add A1 to the result. Excel follows the standard order of operations (multiplication and division before addition and subtraction), just like math class.

If you want to force a different order, use parentheses. The formula =(A1+A2)*A3 adds A1 and A2 first, then multiplies the result by A3. Parentheses always go first, no matter what.

Copying a formula to other cells

Once you have written a formula in one cell, you can copy it down to other rows without retyping it. Click on the cell that holds your formula. You will see a small square in the bottom right corner of the cell. Click and drag that square downward to copy the formula to the cells below.

When you do this, Excel automatically adjusts the cell references. If your formula in A3 is =A1+A2, and you copy it down to A4, the formula in A4 becomes =A2+A3. The formula in A5 becomes =A3+A4. Each row shifts the references down by one. This is called a relative reference, and it is what you usually want.

Sometimes you want a reference to stay the same when you copy. If you want cell A1 to always mean A1 (not shift to A2, A3, and so on), type the formula as =$A$1+A2. The dollar signs lock that reference in place. When you copy this formula down, A1 stays A1, but A2 becomes A3, A4, and so on. This is called an absolute reference.

Common formula errors and what they mean

If your formula shows #DIV/0!, you are dividing by zero — either directly (like =5/0) or because a cell you are dividing by is empty or contains zero. Check the cells in your formula and make sure none of them are blank or zero when they should not be.

If your formula shows #REF!, Excel cannot find a cell you referenced. This usually happens when you delete a column or row that your formula was using. Go back and check that all the cell references in your formula actually exist.

If your formula shows #NAME?, you have typed something Excel does not recognize — often a misspelled function name or a symbol that is not allowed. Check that you used the correct spelling and the right symbols (asterisk for multiply, forward slash for divide).

If your formula shows a number that seems wrong, double-click the cell to see the formula itself. Read through it carefully to make sure you referenced the right cells and used the right operations. A common mistake is forgetting parentheses, which changes the order that Excel does the math.

Using built-in functions to do more complex work

Beyond basic math, Excel has hundreds of built-in functions that do specific jobs. A function is a pre-written formula that Excel provides. Instead of writing =A1+A2+A3+A4+A5, you can write =SUM(A1:A5), which adds all the cells from A1 to A5 in one go.

The SUM function is the most common. Type =SUM(A1:A5) to add cells A1 through A5. The colon means "through" — so A1:A5 means all cells from A1 to A5. You can also use =AVERAGE(A1:A5) to find the average, =COUNT(A1:A5) to count how many cells have numbers, or =MAX(A1:A5) to find the largest number.

Functions follow the same pattern: equals sign, function name, then the cells you want to work with in parentheses. If you are not sure what a function does, type the equals sign and the function name, and Excel will show you a tooltip explaining what it needs.

Testing your formula before you rely on it

Before you copy a formula across hundreds of rows, test it on a few cells first. Put test numbers in your source cells (the ones your formula references), run the formula, and check that the answer is correct. If it is wrong, you have caught the mistake before it spreads.

A good test is to use numbers where you already know the answer. If your formula is supposed to add two cells, put 10 in one and 5 in the other, and check that the result is 15. If your formula is supposed to multiply, put 4 in one cell and 3 in the other, and check that the result is 12. Once you see the right answer, you can trust the formula with real data.

Another useful check: click on a cell with your formula and look at the formula bar at the top of the screen. You will see the actual formula written out. Read it carefully to make sure it references the cells you intended and uses the right operations.

Frequently Asked Questions

What is the difference between a formula and a function?

A formula is any instruction that starts with an equals sign, like =A1+A2. A function is a pre-built formula that Excel provides, like =SUM(A1:A5). All functions are formulas, but not all formulas are functions. When you write =A1+A2, you are writing a formula. When you write =SUM(A1:A5), you are using a function.

Can I use a formula to combine text from two cells?

Yes. Use the ampersand symbol (&) to join text. The formula =A1&" "&B1 will combine the text in A1, add a space, and add the text in B1. If A1 contains "John" and B1 contains "Smith", the result is "John Smith".

Why does my formula show the formula itself instead of the answer?

You probably forgot the equals sign at the start. Excel only treats it as a formula if it begins with =. If you typed A1+A2 without the equals sign, Excel shows it as text. Click the cell, add the equals sign at the beginning, and press Enter again.

Can I edit a formula after I have already entered it?

Yes. Double-click the cell to enter edit mode, or click the cell and edit the formula in the formula bar at the top. Make your changes and press Enter. The formula will recalculate with your new instructions.

What does the colon mean in a formula like A1:A5?

The colon means "through" or "to". A1:A5 refers to all cells from A1 to A5, including both endpoints. It is a shorthand way to reference a range of cells instead of typing each one individually.