Smart Systems for Home

Plain how-to guides for smart home, security and home Wi-Fi

How to Subtract in Excel: Step-by-Step Guide

· 5 min read · Home Tech

In this article
  1. What You'll Need
  2. Step-by-Step
  3. Common Mistakes
  4. Tips
  5. Troubleshooting
  6. Frequently Asked Questions

Subtracting in Excel is straightforward: type an equals sign, then the first number or cell reference, a minus sign, and the second number or cell reference, then press Enter. For example, =A1-B1 subtracts the value in B1 from the value in A1. You can also subtract constants like =10-4 or combine cell references and numbers like =A1-5. This guide covers the exact steps, common pitfalls, and troubleshooting for subtraction in Excel on Windows, Mac, and the web version.

What You'll Need

  • Excel installed on your computer or access to Excel for the web (a free Microsoft account works).
  • A workbook with at least one worksheet open.
  • Basic familiarity with clicking cells and typing in the formula bar.

Step-by-Step

  1. Open your workbook and click the cell where you want the result. This is the destination cell. It can be empty or contain existing data you are willing to overwrite.
  2. Type an equals sign (=). This tells Excel you are entering a formula, not text. The cell enters edit mode and the formula bar becomes active.
  3. Enter the first value or cell reference. Click the cell containing the number you want to subtract from (the minuend), or type its address like A1. You can also type a plain number, e.g., 100.
  4. Type a minus sign (-). Use the hyphen key on the main keyboard, not the en dash or em dash. The minus sign is the subtraction operator in Excel.
  5. Enter the second value or cell reference. Click the cell containing the number you want to subtract (the subtrahend), or type its address like B1, or type a number.
  6. Press Enter. Excel calculates the result and displays it in the destination cell. The formula remains visible in the formula bar when the cell is selected.
  7. Copy the formula down or across if needed. Drag the fill handle (the small square at the bottom-right corner of the selected cell) to apply the same subtraction pattern to other rows. Relative references adjust automatically, so =A2-B2 becomes =A3-B3 and so on.

To subtract multiple numbers in one formula, chain the minus signs: =A1-B1-C1 subtracts B1 and C1 from A1. You can also use SUM with negative values, but the minus operator is simpler for basic subtraction.

If you need to subtract a range of cells from a total, use =A1-SUM(B1:B10). This subtracts the sum of B1 through B10 from A1. The SUM function is a real Excel function and works in all versions.

Common Mistakes

  • Forgetting the equals sign. If you type 10-4 without =, Excel treats it as text, not a calculation. Always start with =.
  • Using the wrong dash character. Copying a formula from a website or document can bring an en dash (–) or em dash (—) instead of a hyphen (-). Excel returns a #NAME? error or treats it as text. Retype the minus sign manually.
  • Referencing text instead of numbers. If a cell contains text that looks like a number (e.g., '100 with an apostrophe or a leading space), subtraction returns #VALUE!. Check cell formatting and remove stray characters.
  • Mixing absolute and relative references incorrectly. When copying formulas, $A$1 stays fixed while A1 changes. If your results look wrong after filling down, check whether you need absolute references.
  • Subtracting dates without understanding serial numbers. Excel stores dates as serial numbers, so =A1-B1 for two dates returns the number of days between them. That is correct, but format the result as a number, not a date, or you will see an odd date.

Tips

  • Use the formula bar to edit long formulas instead of double-clicking the cell; it gives you more room and avoids accidental clicks.
  • Press F2 to quickly enter edit mode on the selected cell (Windows). On Mac, Control+U works in many layouts.
  • To subtract a percentage, multiply first: =A1-(A1*0.1) subtracts 10% of A1. Or use =A1*(1-0.1) for the same result.
  • Use Ctrl+` (grave accent) to toggle showing formulas instead of results, which helps audit a sheet.
  • If you need to subtract the same value from many cells, put that value in one cell and use an absolute reference like =$D$1 so it does not shift when copied.

Troubleshooting

If your subtraction does not work, check these in order:

  1. Does the formula start with =? If the cell shows the formula as text, you likely omitted the equals sign or the cell is formatted as Text. Change the format to General or Number, then re-enter the formula.
  2. Are the referenced cells numbers? Select each cell and look at the status bar or use =ISNUMBER(A1) to test. Text-formatted numbers can be converted with Text to Columns or by multiplying by 1 in an empty cell and copying back.
  3. Is there a #VALUE! error? One of the operands is text or an empty cell with a space. Clear the cell or use IFERROR to handle it: =IFERROR(A1-B1,"").
  4. Is the result unexpected after copying? Check relative vs. absolute references. Press Ctrl+` to see all formulas and confirm the pattern.
  5. Is the result showing as a date? The destination cell may be formatted as Date. Change the number format to General or Number.
  6. Still stuck? Close and reopen the workbook, or start a new blank sheet and test =10-4. If that works, the issue is in your data or references, not Excel itself.

Frequently Asked Questions

Can I subtract in Excel without using cell references?

Yes. Type =100-25 and press Enter. The result 75 appears. You can mix numbers and cell references in the same formula, e.g., =A1-25.

How do I subtract a whole column from another column?

Enter the formula in the first row, e.g., =A2-B2, then drag the fill handle down. Each row calculates its own difference. For a single total, use =SUM(A2:A10)-SUM(B2:B10).

Why does my subtraction formula show a date instead of a number?

The result cell is formatted as a date. Select the cell, open the Number Format dropdown on the Home tab, and choose General or Number. The underlying value is correct; only the display changes.

Can I subtract times in Excel?

Yes. If A1 is 14:00 and B1 is 9:30, =A1-B1 returns 4:30 when formatted as time. For total hours as a decimal, multiply by 24 and format as Number: =(A1-B1)*24.

What is the difference between the minus sign and the subtraction function?

Excel has no dedicated SUBTRACT function. The minus operator (-) is the standard way. You can use SUM with negative numbers, e.g., =SUM(A1,-B1), but the minus operator is clearer and shorter.

How do I subtract a percentage from a number?

Use =A1-(A1*0.15) to subtract 15% of A1, or =A1*(1-0.15) for the same result. Replace 0.15 with your percentage as a decimal.