Opposite of Sum in Excel: Subtract Step by Step
In this article
The opposite of SUM in Excel is subtraction, and the reliable way to do it is a simple formula: =A1-B1 for two cells, or =A1-SUM(B1:B10) when you want to take a whole range away from one starting number. Excel has no SUBTRACT function, so subtraction is always done with the minus operator inside a normal formula. Before you start, have your numbers in separate cells (one value per cell) and note that the status bar at the bottom of the window already shows the sum of any selected range, which is handy for checking your work.
What You'll Need
- Excel on Windows, macOS, the web, iPhone or Android — the minus operator works the same on every version, though on mobile you type the formula in the formula bar rather than by clicking cells that much.
- Your numbers organized in cells, ideally one value per cell with nothing typed in the same cell as text like "120 " plus a stray space.
- A clear idea of which direction you are subtracting: each value taken from one starting total, or one value taken off a running balance.
Step-by-Step
- Pick your output cell. Click the empty cell where the answer should appear. A good habit is to leave a blank row between your data and the result so inserted rows do not split them.
- Type the equals sign first. Every formula in Excel begins with =. If you forget it, Excel stores your text as a label and shows it instead of calculating. Press Enter to confirm the formula and move the selection down a row.
- For two numbers, type the cell references with a minus between them. For example, to subtract the value in B2 from the value in A2, type =A2-B2. You can also click A2, type -, then click B2. Press Enter. The result appears in the cell and the formula stays visible in the formula bar when the cell is selected.
- For a whole range, use SUM after the minus. To start with a total in A1 and take away everything in B1 through B10, type =A1-SUM(B1:B10). This is the closest thing to "reverse SUM": SUM adds the range together first, and the minus takes that combined total off your starting number.
- To subtract column by column, put the formulain the first row and fill it down. With headers in row 1 and data from row 2, type =A2-B2 in C2, then drag the small square in the bottom-right corner of the cell (the fill handle) down the column. Excel adjusts each row automatically, so C3 becomes =A3-B3.
- To subtract a fixed number from every row, lock that cell with dollar signs. If the amount to deduct sits in E1, write =A2-$E$1. The $ signs pin the reference so it does not shift when you copy the formula down. Without them, the second row tries to read E2 and returns an error or a wrong number.
- To reverse a sign instead of subtracting, multiply by -1. If you need the negative of a single number or an entire range, =A1*-1 flips it. This is useful when you want to turn a column of expenses into negatives before summing, and it is the arithmetic opposite of adding in the sense of changing sign rather than removing value.
- Format the result. Select the answer cells, then use the Number Format dropdown on the Home tab (or Format Cells with Ctrl+1 on Windows, Cmd+1 on Mac) to add currency, decimals or thousands separators. Formatting changes only how the value looks, not the stored figure.
Labels for these commands vary slightly between Excel versions, platforms and regional language settings, so if a button name looks different, look for the equivalent icon or menu entry rather than assuming the feature is missing.
Common Mistakes
Storing numbers as text. Values pasted from other systems often arrive left-aligned with a green triangle in the corner. Subtracting them either returns zero or a #VALUE! error. Fix it by selecting the range, opening the warning icon that appears, and choosing Convert to Number, or by re-entering the value.
Reversing the order. =B2-A2 and =A2-B2 give different answers, and both may look plausible. Decide first which figure is the starting amount and which is what gets removed, then write the formula in that order.
Forgetting absolute references. A fixed deduction that is not locked with $ signs drifts down the column and produces nonsense from row three onward.
Typing numbers inside the formula. =500-120 works, but if 500 changes later you must edit every formula. Reference cells so the sheet stays live.
Confusing SUM with subtraction. Some people try =SUM(A1-B1) which works but adds nothing; =SUM(A1,-B1) is the cleaner trick if you insist on using SUM, since a comma followed by a negative value adds a minus. Neither is needed for simple subtraction.
Tips
- Press Ctrl+` (the key left of 1) on Windows or Ctrl+` on Mac to toggle showing every formula in the sheet instead of its result — the fastest way to audit a subtraction-heavy workbook.
- Use Ctrl+Shift+Arrow keys to select a whole contiguous range quickly before wrapping it in SUM.
- Keep the amounts you subtract in their own column rather than scattering them. A single deduction column makes the sheet easy to extend and easy to explain to someone else.
- Check totals with the status bar. Select a range and the sum appears bottom-right without adding a formula.
- Prefer Table formatting (Insert > Table) when you plan to add rows later; formulas then fill down automatically.
- If you only need a running difference, such as a bank balance, a formula like =previous_balance - amount in the next row gives you a running total that behaves like reverse addition.
Troubleshooting
The cell shows the formula as text. The cell is formatted as Text, or an apostrophe sits before the equals sign. Select the cell, press Ctrl+1, set the format to General, then re-enter the formula. On the web version, the same Format Cells dialog is under Home > Number.
You see #VALUE!. At least one referenced cell contains text, a space or an error. Select each referenced cell and check the formula bar. Text that merely looks numeric is the usual culprit.
The answer is wrong by a huge margin. A range may be larger than intended, or an absolute reference is missing. Click the cell, review the addresses in the formula bar, and confirm they point exactly where you mean.
The result looks like a date. Widening a date-formatted cell can display a subtraction result as a serial number or a strange date. Reformat the cell as Number.
Circular reference warning. The formula refers to its own cell, directly or through a chain. Excel flags this because it would loop forever. Rebuild the formula so the output cell is not inside the range being subtracted.
Nothing recalculates after a change. If Calculation Options is set to Manual, press F9 to recalculate, then set it back to Automatic under Formulas > Calculation Options.
If that did not work, copy the formula into a fresh sheet with two hand-typed test numbers. If it computes correctly there, the problem is in the source data, not the formula, so inspect the original cells for hidden text, merged cells or stray spaces.
Frequently Asked Questions
Is there a SUBTRACT function in Excel?
No. Excel has no dedicated SUBTRACT function. Subtraction is done with the minus operator in a formula, optionally combining SUM to aggregate a range first.
How do I subtract a range of numbers from one total?
Write =A1-SUM(B1:B10). SUM adds the range, then the minus removes that figure from the total in A1. This gives the same result as subtracting each value one after another.
What is the opposite of summing a column?
If you mean the arithmetic inverse, it is subtracting each value or using SUM with a minus in front of the range, as in =SUM(-B1:B10), which yields the negative total. If you mean a running decrease, use a chain of subtractions or a running balance formula.
How do I subtract a fixed number from an entire column?
Put the number in a cell, for example E1, and use =A2-$E$1 in the first data row, then fill down. The dollar signs keep the reference fixed.
Why does my subtraction give a negative result when I expected a positive one?
The order of the operands is reversed — Excel calculates exactly what you tell it. Swap the cell references, or wrap the formula in ABS() if you only ever want the distance between two values.
Can I subtract dates or times?
Yes. Excel stores dates as serial numbers, so =A2-A1 returns the number of days between them, and times subtract to a fraction of a day. Format the result as a number, or as elapsed hours using a custom format, so it does not display as a date.