PDF download Download Article
Easy guide to subtracting values and dates in Google Sheets
PDF download Download Article

If you use Google Sheets a lot, you may need to subtract some numbers. Perhaps you're working on a spreadsheet for a personal budget, taking inventory, or tracking project expenditure. No matter why you need to use subtraction, there are a few ways to accomplish this in Google Sheets: by using the minus sign, the MINUS function, the SUM function, and the DATEDIF function. In this article, we'll teach you all of these methods, as well as go over what kinds of numbers you can subtract in Google Sheets .

Things You Should Know

  • Before any function you must put a = sign.
  • You can simply use the - sign to subtract two numbers.
  • If you want to use a function, you can use the MINUS function by writing =MINUS(X,Y) , where X and Y are the two numbers you want to subtract.
Section 1 of 5:

Minus Sign

PDF download Download Article
  1. Subtraction is a basic formula you can do in Google Sheets, and you don't even need a specific function to do it.
  2. All functions require you to start with an = sign.
    Advertisement
  3. The number you subtract from is called the "minuend," and the number you are subtracting is the "subtrahend." So, the function looks like =minuend-subtrahend , such as =A1-A2 . You can either type the cell numbers or click the cells individually.
    • You can also use other numbers, such as integers, decimals, and dates, instead of cells.
  4. The cell will fill with the result of your formula.
  5. Advertisement
Section 2 of 5:

MINUS Function

PDF download Download Article
  1. If you prefer, you can use the MINUS function in Google Sheets .
  2. The MINUS function simply subtracts two numbers; the first number is the number you want to subtract from, and the second number is the number you want to subtract. So, if you wanted to subtract A1 from A2, you'd write =MINUS(A1, A2) . You can write the cell names or click on them.
    • You can also use other numbers, such as integers, decimals, and dates, instead of cells.
  3. The cell will fill with the result of your formula.
  4. Advertisement
Section 3 of 5:

SUM Function

PDF download Download Article
  1. While the SUM function adds two numbers together, if you add a positive number to a negative number, it will actually subtract.
  2. Like the other functions, the first number should be the number you want to subtract from, and the second should be the number you want to subtract. So, if you wanted to subtract A1 from A2, you'd write =SUM(A1, -A2) . You can write the cell names or click on them.
    • You can also use other numbers, such as integers, decimals, and dates, instead of cells.
  3. The cell will fill with the result of your formula.
  4. Advertisement
Section 4 of 5:

DATEDIF Function

PDF download Download Article
  1. If you want to see how many days it has been between two dates, you can use the DATEDIF function . [1]
    • You can also use the above three methods to subtract dates. However, the DATEDIF function only works with dates.
  2. Unlike the other subtraction methods, for DATEDIF, you put the earlier date first. The final parameter is the units you want the answer in, which can be as follows:
    • "D" : days
    • "M" : months
    • "Y" : years
    • "MD" : the number of days between the dates, ignoring months and years
    • "YM" : the number of months between the dates, ignoring days and years
    • "YD" : the number of days between the dates, ignoring years
  3. The cell will fill with the result of your formula.
  4. Advertisement
Section 5 of 5:

Numbers You Can Subtract

PDF download Download Article
  1. You can subtract any integer, including positive or negative numbers.
  2. You can subtract decimals and fractions.
  3. You can subtract cells from one another. Simply replace the number with the name of the cell (A1, B5, etc.). A cell can be the minuend, subtrahend, or both.
    • A cell must have a number or date in it to reference it in a subtraction formula. The formula should be written in a blank cell.
  4. You can use the ARRAYFORMULA function followed by the MINUS function to subtract a range of cells. You can use the function =MINUS(minuend, subtrahend) where the minuend, subtrahend, or both are a range of cells. You can signify a range of cells by writing cell 1:cell 2 , such as A1:C10 .
    • An example function could look like =ARRAYFORMULA(MINUS(A1:C10, D1) . All of the cells referenced must have numbers in them.
  5. Advertisement

Expert Q&A

Ask a Question
      Advertisement

      Tips

      Submit a Tip
      All tip submissions are carefully reviewed before being published
      Thanks for submitting a tip for review!

      About This Article

      Thanks to all authors for creating a page that has been read 2,456 times.

      Is this article up to date?

      Advertisement