Smart Systems for Home

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

Google Sheets MINUS Function: How to Subtract

· 6 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

Google Sheets does not have a function called MINUS. To subtract in Google Sheets you use the minus sign (-) in a formula, for example =A2-B2 or =100-25. The MINUS function exists in Excel, but in Sheets the operator is the correct and only built-in way to subtract numbers, cells, ranges and dates. This guide shows exactly how to write subtraction formulas, how to subtract whole columns, how to handle dates, and what to do when a formula returns an error instead of a number.

What You'll Need

  • A Google account with access to Google Sheets (sheets.google.com or the Google Sheets app).
  • A spreadsheet with at least two numbers or two cells containing numbers, so you have something to subtract.
  • Basic familiarity with clicking a cell and typing a formula that starts with =.

Step-by-Step

  1. Open your spreadsheet. Go to sheets.google.com, sign in, and open the file you want to work in, or create a blank spreadsheet with Blank.
  2. Click the cell where the result should appear. This is the cell that will hold the answer, not the cells you are subtracting. For example, click C2 if A2 and B2 hold your numbers.
  3. Type an equals sign. Every formula in Google Sheets starts with =. Without it, Sheets treats your entry as text.
  4. Type the first number or click the first cell. For a direct calculation type =100-25. To subtract cell values, click A2 (or type A2) so the formula reads =A2.
  5. Type the minus sign. Use the hyphen key on your keyboard, the one above the P key on a standard layout. Do not use an en dash or em dash; Sheets will not read those as subtraction.
  6. Type or click the second value. Click B2 so the formula becomes =A2-B2. The complete formula should show in the formula bar at the top.
  7. Press Enter. The cell displays the difference. If A2 is 50 and B2 is 20, the result is 30.
  8. Copy the formula down a column. Select the result cell, grab the small square handle at its bottom-right corner (the fill handle), and drag down. Sheets adjusts the references automatically, so row 3 becomes =A3-B3 and so on. Alternatively, copy the cell with Ctrl+C (Cmd+C on Mac), select the cells below, and paste with Ctrl+V (Cmd+V).
  9. Subtract more than two values. Chain the minus signs: =A2-B2-C2 subtracts both B2 and C2 from A2. To subtract a total, use =A2-SUM(B2:B10), which adds the range and subtracts the sum in one step.
  10. Subtract dates. If A2 holds a later date and B2 an earlier one, =A2-B2 returns the number of days between them. Format the result cell as a plain number (Format > Number > Number) if it appears as a date.
  11. Check your work. Click the result cell and confirm the formula in the formula bar matches what you intended, especially the cell references.

Menu labels and formula behaviour can differ slightly between the desktop browser version, the Android app and the iPhone app, but the minus operator works the same everywhere. The steps above describe the desktop browser version; on mobile, tap the cell, tap the formula bar or the fx entry area, type the formula, and tap the checkmark to confirm.

Common Mistakes

  • Looking for a MINUS function. Typing =MINUS(A2,B2) returns a #NAME? error because that function does not exist in Google Sheets. Use the - operator instead.
  • Forgetting the equals sign. Typing A2-B2 without = leaves the text in the cell rather than calculating anything.
  • Using the wrong dash character. Copying a formula from a document can bring in a typographic dash that Sheets does not recognise. Retype the hyphen manually.
  • Subtracting text. If a cell contains text such as "50 units" rather than the number 50, the formula returns #VALUE!. Keep numeric cells free of units and put labels in a separate column.
  • Reversing the order. =A2-B2 and =B2-A2 give different results. Subtraction is not interchangeable the way addition is.
  • Dragging instead of filling. Clicking and dragging the cell itself moves the formula rather than copying it. Use the fill handle or copy and paste.

Tips

  • Use =SUM(A2:A10)-SUM(B2:B10) to subtract two whole columns in one formula.
  • Wrap a subtraction in ROUND to avoid long decimals: =ROUND(A2-B2,2).
  • Absolute references with dollar signs, such as =$B$2-A3, keep one value fixed when you copy the formula down.
  • Select a range and check the status bar at the bottom right; it shows the sum, average and count, which helps you sanity-check a subtraction result.
  • Press Ctrl+` (the key left of 1) to toggle formula view and see every formula in the sheet at once, useful for spotting a cell that is text rather than a number.

Troubleshooting

If the result is not what you expect, work through these checks in order.

  1. #NAME? error. You likely typed a function name such as MINUS. Replace it with the - operator.
  2. #VALUE! error. One of the referenced cells contains text, a stray space or an apostrophe. Click the cell, look at the formula bar, and remove any non-numeric characters. A leading apostrophe forces text and is invisible in the cell.
  3. Result looks like a date. The cell is formatted as a date. Select it and choose Format > Number > Number.
  4. Result is zero unexpectedly. The two referenced cells may hold the same value, or one reference may point to the wrong row after a copy. Click the cell and read the formula bar.
  5. Formula shows as text. The cell is formatted as plain text before you typed the formula. Clear the cell, set Format > Number > Automatic, and retype the formula.
  6. Nothing recalculates. Reload the browser tab, then check that the referenced cells actually contain numbers by selecting them and reading the status bar.

Frequently Asked Questions

Is there a MINUS function in Google Sheets?

No. Google Sheets uses the minus operator (-) inside a formula. The MINUS function exists in Excel but is not available in Sheets.

How do I subtract a whole column from another column?

Put =A2-B2 in the first result cell and drag the fill handle down, or use =SUM(A2:A10)-SUM(B2:B10) for a single total.

Why does my subtraction formula return #VALUE!?

At least one referenced cell contains text rather than a number. Remove spaces, units or apostrophes so the cell holds a plain number.

Can I subtract dates in Google Sheets?

Yes. Subtracting an earlier date from a later date returns the number of days between them. Format the result as a number if it appears as a date.

How do I subtract a percentage?

Multiply instead: =A2*(1-0.2) reduces A2 by 20 percent. Subtracting the percentage value directly, as in =A2-20%, subtracts 0.2 rather than 20 percent of A2.

Does the minus operator work the same on the mobile app?

Yes. Tap the cell, enter the formula in the formula bar, and confirm with the checkmark. Only the interface differs, not the formula.