Subtracting in Microsoft Excel is straightforward using cell references and basic arithmetic formulas. You don’t need special functions—just the minus (-) operator. This allows you to calculate differences between numbers, dates, or time values, and is essential for budgeting, inventory tracking, and data analysis.
What You'll Need
- Microsoft Excel installed (Excel for Microsoft 365, Excel 2021, Excel 2019, or newer; also works in Excel Online and Excel mobile apps)
- A workbook open with data you want to subtract (e.g., numbers in cells A1 and B1)
- Basic understanding of how Excel stores values in cells
Step-by-Step
- Open your Excel workbook and locate the cells containing the numbers you want to subtract. For example, suppose cell A1 contains 150 and cell B1 contains 45.
- Click the cell where you want the result to appear (e.g., C1). This is your output cell.
- Begin your formula by typing an equals sign (=). Excel requires this to recognize a formula.
- Type the first cell reference (e.g., A1), followed by a minus sign (-), then the second cell reference (e.g., B1). Your formula should read:
=A1-B1. - Press Enter on your keyboard. Excel will calculate the result (105 in this example) and display it in cell C1. The formula bar above the grid will show the formula, not the result.
- To subtract more than two numbers, extend the formula:
=A1-B1-C1-D1. Excel evaluates left to right, so it subtracts each subsequent value from the running total. - To subtract a fixed number from a range of cells, use absolute referencing. For example, to subtract 25 from each value in column A, enter
=A1-25in B1, then drag the fill handle (small square in the bottom-right of the selected cell) down column B to apply the formula to other rows.
Common Mistakes
- Forgetting the equals sign (=): Typing
A1-B1without=makes Excel treat it as text, and no calculation occurs. - Using spaces in cell references:
=A1 - B1works, but avoid spaces in references like=A 1-B1, which cause errors. - Mixing up the order: Subtraction is not commutative—
=A1-B1yields a different result than=B1-A1. - Referencing empty or non-numeric cells: If a referenced cell is blank, Excel treats it as 0. If it contains text (e.g., "N/A"), Excel returns a #VALUE! error.
- Using the wrong operator: The subtraction operator is a single hyphen (-), not a dash (–) or en dash (—), which Excel may insert automatically depending on your keyboard settings.
Tips
- Use SUM for complex cases: If subtracting multiple values from a total, use
=SUM(A1:A10)-B1to subtract B1 from the sum of A1 through A10. - Subtract dates or times: Excel stores dates as serial numbers and times as decimals. To find the difference between two dates (e.g., A1 = 2024-05-10, B1 = 2024-05-01), use
=A1-B1—the result is the number of days (9). - Apply formatting after calculating: Format the result cell (e.g., as currency or percentage) after entering the formula to avoid display issues.
- Copy formulas safely: When dragging the fill handle, Excel adjusts relative references automatically. To keep a reference fixed (e.g., subtracting a constant in B1), use
=A1-$B$1. - Check for hidden characters: If subtraction returns unexpected results, use
=ISNUMBER(A1)to verify the cell contains a number, not text masquerading as a number.
Troubleshooting
If your subtraction formula doesn’t work, follow these checks:
- Ensure the cell is not formatted as text: Right-click the result cell, choose Format Cells, and set Category to Number. Text-formatted cells prevent formula recalculation.
- Verify cell references: Click inside the formula bar and confirm the cell addresses (e.g., A1, B2) match your intended cells. A typo like A2 instead of A1 will cause incorrect results.
- Check for error messages:
- #VALUE!: One or more cells in the formula contain text instead of numbers. Use Find & Select > Go To Special > Text to locate them.
- #REF!: A referenced cell was deleted or moved. Recreate the formula with valid cell addresses.
- #####: The column is too narrow to display the result. Widen the column or adjust the number format.
- Recalculate manually: Press F9 to force Excel to recalculate all formulas. This helps if automatic calculation is disabled (check under Formulas > Calculation Options).
- Test with simple numbers: Enter 10 in A1 and 3 in B1, then retype
=A1-B1in C1. If it returns 7, your data or formatting is the issue—not the formula structure.
Frequently Asked Questions
Can I subtract across different worksheets?
Yes. Include the sheet name followed by an exclamation mark before the cell reference. For example, to subtract cell A1 in Sheet2 from cell A1 in Sheet1, use =Sheet1!A1-Sheet2!A1.
How do I subtract time values (e.g., hours worked)?
Enter start and end times in separate cells (e.g., A1 = 9:00 AM, B1 = 5:30 PM), then use =B1-A1. Format the result cell as Time or Custom (e.g., h"h" m"m") to display hours and minutes correctly.
Why does Excel show the formula instead of the result?
This happens if Formulas > Show Formulas is enabled or the cell is formatted as text. Disable Show Formulas (press Ctrl+`), or reformat the cell as Number and re-enter the formula.
Can I subtract a range of cells from a single value?
Yes, but not directly with a single minus sign. Use =A1-SUM(B1:B10) to subtract the total of B1 through B10 from A1.
What’s the difference between =A1-B1 and =SUM(A1,-B1)?
Both yield the same result, but =SUM(A1,-B1) is unnecessary for simple subtraction. SUM is better suited for adding multiple values or handling arrays.
Does subtracting work the same in Excel Online and mobile apps?
Yes. The core subtraction process—typing =cell-cell and pressing Enter—is identical in Excel for the web and mobile apps. Minor interface differences (e.g., button placement) don’t affect formula entry.