Subtract Date AND Time in Excel

There are two ways to “subtract date and time in excel”: the quick way you copy and the durable way you understand. This page gives you both. The exact Excel answer is above; below, we build the small mental model that makes the fix stick, so the next variation of the same problem solves itself.

Exact answer

In Excel: there is no SUBTRACT function — just use the minus operator, for example =A2-B2.

Annotated stepsExcel
1

Click the cell where you want the difference.

2

Type = then the first cell or number, a minus sign, and the second, e.g. =A2-B2.

3

Press Enter; copy the formula down to subtract row by row.

4

To subtract many cells, use =A2-SUM(B2:B10) instead of a long chain.

=A2-B2
Ctrl+CthenCtrl+Shift+V+Cthen+Ctrl+VPaste values · WindowsMac

What this does

Excel and Google Sheets have no SUBTRACT function because the minus sign already does the job: any formula that starts with = can subtract one cell or number from another. To subtract several values at once you can chain them (=A2-B2-C2) or subtract a SUM (=A2-SUM(B2:B10)), which is tidier when the list is long. Most people learn this as a sequence of clicks and forget it by next week; learning it as a pattern instead is what lets you apply it to the next, slightly different version of the problem without starting from scratch. That is the difference this page is trying to make. The difference between a quick fix and a sheet you can trust is the extra minute you spend validating “subtract date and time in excel”. Start on a copy or a tiny sample, keep the affected cells visible, and compare the result with the tool above before you touch the real workbook. When a formula is involved, keep the inputs labelled beside it, reference cells instead of typing values, and apply number formatting only after the result checks out. The point is a workflow that saves repeating the same clicks every week, but the practical win is that someone else can open the file and understand what happened without asking you.

A worked example

To take expenses of 120 away from revenue of 500, type =500-120 (or =A2-B2 pointing at the two cells) and press Enter — the result is 380. To subtract a whole column of costs from a budget in B1, use =B1-SUM(B2:B20). Negative results display with a minus sign automatically. Subtraction is the quiet backbone of every variance, margin and running-total formula. Knowing there is no function — only the operator — saves you hunting for one and lets you build differences directly. If there is any chance you will reuse this, drop it into a small template tab right now: a labelled input area on the left and the formula beside it, checked once against the tool above. Next time the same question comes up, the answer is a single paste away instead of a rebuild from memory.

In Google Sheets

Everything above works in Google Sheets too. Excel and Sheets share the formula syntax used here; only the surrounding menus are arranged differently. That portability is deliberate — learn it once and it follows you between the two tools and across Windows and Mac. Keep this page bookmarked for the next time the same question comes up. Better still, rebuild the example once in your own sheet — doing it yourself, with the tool above to check against, is what turns a copied formula into a technique you own. Here is the takeaway for “subtract date and time in excel”: copy the answer if you are busy, but if you have a spare few minutes, rebuild the example in Excel yourself with the tool above open beside it. That single pass — type it, run it, watch the result move when you change an input — is what turns a formula you found into a technique you trust. Keep your inputs labelled and referenced, never hard-coded, and the same sheet stays correct and auditable as it grows. Done that way, you will not need to look this up again, and you will be the person others ask.

Common mistakes

  • Looking for a SUBTRACT function — there is none; the − operator is the answer.
  • Forgetting the leading =, so the sheet treats the entry as text.
  • Subtracting cells that contain text or are blank, which can return errors or unexpected zeros.
  • Mixing up the order — A2-B2 and B2-A2 differ by a sign.

Frequently asked questions

Is there a SUBTRACT function?

No. Both Excel and Google Sheets subtract with the minus operator. To subtract many numbers, subtract a SUM: =A2-SUM(B2:B10).

How do I subtract a percentage?

Multiply and subtract in one step: =A2*(1-10%) takes 10% off the value in A2.

Why does my subtraction show an error?

Usually one cell contains text or an error value. Wrap the inputs in VALUE() or clean the data so both sides are numbers.