Field Guide

Basic Excel formulas: how to add, subtract, multiply, and divide

Updated

To calculate with a formula in Excel, type an equal sign, then the two cells you want to combine with an operator between them. =A1+B1 adds them, =A1-B1 subtracts B1 from A1, =A1*B1 multiplies them (the * is an asterisk, not the letter x), and =A1/B1 divides A1 by B1 (the / is a forward slash). Every formula starts with =; leave it off and Excel keeps your entry as text instead of calculating it.

The same four operators work whether you point at cells or type plain numbers, so =12*5 returns 60 in exactly the way =B2*C2 does. A subtraction reads left to right: in the grid below, =B2-C2 takes the amount spent away from the budget.

D2
fx
=B2-C2
A B C D
1 Category Budget Spent Left
2 Rent 2,000 1,700 300
D2 is selected. =B2-C2 subtracts the 1,700 in C2 from the 2,000 in B2, leaving 300.

The four operators

Each basic operation is one keystroke. Type the first cell, the operator, then the second cell:

Order matters for - and /, because =B2-C2 and =C2-B2 come out with opposite signs and =B2/C2 is not the same as =C2/B2. It does not matter for + and *, where swapping the two cells gives the same answer.

=B2-C2
The minus operator does the subtraction; there is no separate function for it. Swap the cells to =C2-B2 and the sign flips.

There is no SUBTRACT function

Most operations pair with a function, but subtraction does not. Microsoft’s own subtraction guide says so outright: “There is no SUBTRACT function in Excel.” You subtract with the - operator, the way you would on paper. Addition is the one operation that has both forms, so =B2+C2 and =SUM(B2:C2) return the same total, and the guide to what a formula is and how SUM works covers the function version.

Multiplication has the same pair of forms in reverse: the * operator for two cells, and grids often use it to extend a rate across a row.

D2
fx
=B2*C2
A B C D
1 Item Units Price Total
2 Cable 12 5 60
D2 multiplies the 12 units in B2 by the 5 price in C2: 12 times 5 is 60.

Which operator runs first

When a formula mixes operators, Excel does not simply read left to right. Multiplication and division run before addition and subtraction, so =10-2*3 works out to 4, not 24, because 2*3 is calculated first. Parentheses force the order you mean: =(10-2)*3 returns 24. That is the whole rule you need for arithmetic; the full operator order, including exponents and comparisons, is laid out in the formula symbols reference.

Add up a whole column fast

To total a column you do not have to type every cell: AutoSum writes the whole =SUM(...) for you from one click on the Home tab. It is quick because it guesses the range, and it can guess wrong when a blank row or a header sits inside the column, which is what that page covers. For an average or a count of the same column, reach for the functions in Excel’s counting functions instead of a sum.

When the answer is not a number

An arithmetic formula calculates cleanly when the cells hold real numbers. If a cell holds a word or a stray character instead, an operator like - has nothing numeric to work with and the formula returns #VALUE!. A function behaves differently: Microsoft notes that “Functions often ignore text values and calculate everything as numbers, eliminating the #VALUE! error,” so a =SUM(...) over the column keeps calculating where a =B2-C2 on the same non-numeric cell errors.

D2
fx
=B2-C2
A B C D
1 Invoice Billed Paid Balance
2 1004 2,000 pending #VALUE!
C2 holds the text pending, not a number, so =B2-C2 cannot subtract it and returns #VALUE! in place of a balance.

A related trap is a number that is only stored as text. A SUM built over the column skips it, so the total can read low with no cell showing an error, and numbers stored as text covers how to spot and convert them.

The short version

Fixing arithmetic usually means editing a formula and saving over the earlier file. To check that the edit changed what you meant and nothing else moved, compare the two saved workbooks: each cell you changed shows its before and after value, and on the formula itself the exact piece that moved is boxed, so a fixed operator or a repointed cell is spelled out instead of hunted for.

Frequently asked questions

How do you subtract in Excel?
Type an equal sign, the cell you are starting from, a minus sign, and the cell you are subtracting, so =B2-C2 takes the value in C2 away from the value in B2. There is no SUBTRACT function in Excel; subtraction is the minus operator. Order matters here: =B2-C2 and =C2-B2 give opposite signs.
How do you multiply two cells in Excel?
Use the asterisk as the multiply sign, so =B2*C2 multiplies the value in B2 by the value in C2. It is the asterisk character, not the letter x. Order does not matter for multiplication, so =B2*C2 and =C2*B2 return the same result.
How do you divide numbers in Excel?
Use the forward slash, so =B2/C2 divides the value in B2 by the value in C2. It is the forward slash, not the backslash, and order matters, so =B2/C2 and =C2/B2 are not the same. You can also divide a cell by a plain number, as in =B2/12.
Is there a SUBTRACT function in Excel?
No. Excel has no SUBTRACT or MINUS function. You subtract with the minus operator, so you write =B2-C2 rather than calling a function. Addition is the exception that also has a function: =B2+C2 and =SUM(B2:C2) give the same total.
Why does my subtraction show #VALUE! instead of a number?
That usually means one of the referenced cells holds a word or a stray character rather than a number, so the minus operator has nothing numeric to subtract. Check that both cells hold a real number and not label text like a note or a status. A function such as SUM behaves differently, ignoring text instead of erroring on it, which is why a total can keep calculating when a plain subtraction on the same cell does not.
In Excel, does multiply happen before add?
Yes. Multiplication and division run before addition and subtraction, so =10-2*3 works out to 4, not 24, because 2*3 is calculated first. Wrap the part you want first in parentheses to change that, so =(10-2)*3 returns 24. The full operator order is set out in the formula symbols guide.

Catch the errors before they ship

Reviewing a change to a model? Compare the two versions in your browser and see every changed cell, formula, and value. It's free, and nothing leaves your computer.