How to Subtract in Excel: Step-by-Step Guide
In this article
This guide shows you how to subtract numbers in Microsoft Excel, whether you're working with simple values, cell references, or entire ranges. You'll learn the basic subtraction formula, how to subtract multiple numbers, and how to handle negative results. By the end, you'll be able to subtract in Excel confidently for budgets, inventories, or any data analysis.
What You'll Need
- Microsoft Excel (2010 or later, including Microsoft 365)
- A spreadsheet with numbers you want to subtract, or you can create a new one
- Basic familiarity with typing in cells and using the formula bar
Step-by-Step
- Open Excel and select a cell for the result. Click on the cell where you want the subtraction answer to appear. For example, if you have numbers in cells A1 and B1, you might choose C1.
- Type the equals sign (=). Every formula in Excel starts with an equals sign. This tells Excel that what follows is a calculation, not text.
- Enter the first number or cell reference. You can type a number directly (e.g.,
=10-) or click on a cell that contains the number (e.g.,=A1-). - Type the minus sign (-). This is the subtraction operator. On most keyboards, it's the key with the underscore (_) on it.
- Enter the second number or cell reference. Type the number (e.g.,
=10-4) or click on another cell (e.g.,=A1-B1). - Press Enter. Excel calculates the result and displays it in the selected cell. For example, if A1 is 10 and B1 is 4, the result is 6.
- Subtract more than two numbers. You can chain subtractions:
=A1-B1-C1or=10-4-3. Excel calculates left to right, so this is equivalent to (10-4)-3 = 3. - Use the SUM function for multiple subtractions. To subtract a list of numbers from a starting value, use
=A1-SUM(B1:B5). This subtracts the sum of B1 through B5 from A1. For example, if A1 is 100 and B1:B5 contains 10,20,30,40,50, the result is 100-150 = -50. - Subtract percentages. To subtract a percentage, multiply by the remaining percentage. For example, to subtract 20% from 50, use
=50*(1-20%)or=50*0.8, which equals 40. - Copy the formula to other cells. If you have a column of numbers to subtract from a constant, use absolute references. For example,
=B2-$C$1subtracts the value in C1 from each B cell when copied down.
Common Mistakes
- Forgetting the equals sign. If you type
A1-B1without the =, Excel treats it as text, not a formula. - Using the wrong operator. The minus sign is the hyphen (-), not the underscore (_) or the en dash (–).
- Mixing up cell references. Double-check that you're referencing the correct cells. A simple typo like
=A1-B2instead of=A1-B1can give a wrong result. - Not using parentheses when needed. If you combine subtraction with other operations, Excel follows standard order of operations. For example,
=A1-B1*2multiplies B1 by 2 first, then subtracts from A1. Use parentheses to control the order:=(A1-B1)*2. - Subtracting a range directly. Writing
=A1-B1:B5will not work as expected. Use the SUM function as shown above.
Tips
- Use cell references instead of hard-coded numbers. This makes your formulas dynamic; if you change the input cells, the result updates automatically.
- Use the formula bar. Click on a cell and look at the formula bar to see the underlying formula. This helps you debug errors.
- Format negative results. If you expect negative numbers, you can format the cell to show them in red or with parentheses. Right-click the cell, choose Format Cells, then Number tab.
- For quick subtraction of two numbers, use the status bar. Select two cells with numbers, and the status bar at the bottom shows the difference (if you right-click the status bar and enable "Difference").
- Use the minus sign in the formula bar. You can also type the formula directly in the formula bar instead of in the cell.
Troubleshooting
- Formula displays as text. If the cell shows the formula text instead of the result, check that the cell is formatted as General (not Text). Select the cell, go to Home > Number Format, and choose General. Then re-enter the formula.
- #VALUE! error. This occurs when a referenced cell contains text or a non-numeric value. Check the cells in your formula for any text, spaces, or special characters.
- #NAME? error. This usually means you have a typo in a function name, like
SUMMinstead ofSUM. Check the spelling. - Wrong result due to hidden rows or columns. If you're subtracting a range that includes hidden cells, the result may be unexpected. Unhide rows/columns or use the SUBTOTAL function for filtered data.
- Negative numbers show as ####. This is a column width issue. Widen the column or format the cell to a number format that fits.
Frequently Asked Questions
1. How do I subtract a percentage in Excel?
To subtract a percentage, multiply by (1 - percentage). For example, to subtract 15% from 200, use =200*(1-15%) or =200*0.85, which equals 170.
2. Can I subtract dates in Excel?
Yes. Subtract one date from another to get the number of days between them. For example, =B1-A1 where A1 is 1/1/2023 and B1 is 1/10/2023 returns 9.
3. How do I subtract multiple cells at once?
Use the SUM function: =A1-SUM(B1:B5) subtracts the sum of B1 through B5 from A1. Or chain them: =A1-B1-C1-D1.
4. What does the minus sign do if I put it before a number in a cell?
Typing -5 in a cell enters a negative number. In a formula, =-A1 returns the negative of the value in A1.
5. How do I subtract in Excel without using a formula?
You can use Paste Special: copy a number, select the cells to subtract from, right-click > Paste Special > Subtract. This subtracts the copied value from the selected cells.
6. Why does my subtraction formula show 0 when the cells have numbers?
Check if the cells are formatted as text. If so, the numbers are stored as text and Excel may not calculate them. Use the VALUE function or convert text to numbers by selecting the cells and clicking the warning icon.