Search Excel's function library for a SUBTRACT function and you'll come up empty. That's because Microsoft never built one โ subtraction in Excel uses the minus operator - directly inside a formula, exactly the way you'd write it on paper. Type =10-3 in a cell, press Enter, and you get 7. That's the whole "function."
This trips up plenty of users, especially folks coming from databases or programming languages where every operation has a named function. The mismatch is real: Excel has SUM, AVERAGE, COUNT, PRODUCT โ but no SUBTRACT. Microsoft's design choice was deliberate. Subtraction is order-dependent (5-3 doesn't equal 3-5), and a function would force you to remember which argument comes first. The operator keeps things readable.
So when somebody says "the subtract function in Excel," they usually mean one of four things: the minus operator (=A1-B1), the SUM function with a negative second argument (=SUM(A1,-B1)), the IMSUB function for complex numbers (rare outside engineering), or the Paste Special โ Subtract trick that subtracts a value from a whole range without writing a formula. We'll cover all of them, plus the edge cases Excel users actually hit: subtracting dates, subtracting times that cross midnight, subtracting whole columns, and handling percentage subtraction without breaking your formula.
The good news? Once you know there's no dedicated function, subtraction in Excel becomes simpler, not harder. The minus operator works in every version of Excel โ Windows, Mac, web, mobile โ and it handles dates, times, currencies, and percentages without any special setup. Let's walk through every method, with formulas you can copy straight into your sheet.
The fastest way to subtract two numbers in Excel is the minus operator inside a formula. Click any empty cell, type an equals sign to start a formula, then write the subtraction the natural way: =20-7. Press Enter and Excel shows 13. That's the basic pattern โ equals sign, first value, minus sign, second value.
The same syntax works with cell references. If cell A2 holds 250 and B2 holds 90, then =A2-B2 in cell C2 returns 160. Reference-based formulas are what make Excel powerful: change the value in A2 and C2 recalculates automatically. You can chain subtractions across many cells: =A2-B2-C2-D2 works fine and follows left-to-right order. Excel evaluates each minus in sequence, the way you'd read it aloud.
Mixing constants with cell references works too. =A2-100 subtracts a flat 100 from whatever's in A2 โ useful for fixed deductions like a recurring fee or a discount amount. =1000-B2 subtracts the value in B2 from a fixed 1000 โ handy for tracking remaining budget against running expenses. Both directions are fine; Excel doesn't care whether the variable is first or second, as long as the math reflects what you want.
If you need to subtract several cells from a single starting value, the cleanest approach is to wrap them in SUM and subtract the total: =A2-SUM(B2:E2). This subtracts the sum of B2 through E2 from A2 in one move, which is far tidier than chaining four separate minus signs. Many Excel power users build budgets this way: starting balance in column A, expenses in columns B through whatever, and a single formula at the right edge showing what's left. It also makes the formula easier to audit โ anyone reading it instantly understands the intent.
You can apply the same pattern across a column. Put =A2-B2 in C2, then drag the fill handle (the small square at the bottom-right of the selected cell) down through the column. Excel adjusts each row's references automatically: C3 becomes =A3-B3, C4 becomes =A4-B4, and so on. This is identical to the technique used with the Excel addition formula โ same fill-down logic, opposite operator.
Excel's designers chose the minus operator because subtraction is order-dependent. A function like SUBTRACT(10, 3) would force you to remember which argument means "start with" and which means "take away." The operator =10-3 reads left to right like normal math, so there's no ambiguity. The same logic applies to division (there's a slash operator and the QUOTIENT function, but most users prefer the slash) and you'll see this pattern in the broader Excel cheat sheet for operators.
The SUM function can do subtraction too, even though its name suggests otherwise. SUM accepts negative numbers, so =SUM(A1, -B1) adds A1 plus the negative of B1 โ which is just A1 minus B1 in disguise. This is a useful pattern when you're aggregating a long mix of positive and negative cash flows in financial models. List your incomes as positive numbers and your expenses as negative numbers, then =SUM(A2:A50) handles the whole subtraction in one shot.
The same trick works in reverse: if your data already separates incomes and expenses into different columns but you want a single net total, you can write =SUM(A2:A50)-SUM(B2:B50). Excel calculates each total, then subtracts the second from the first. This is how most cash flow templates work โ gross revenue minus total expenses equals net profit, all in one formula.
Some users use SUM specifically to subtract a range from a single cell: =A2-SUM(B2:F2). This reads naturally: "take A2, then take away the sum of B2 through F2." If you tried to write it without SUM โ =A2-B2-C2-D2-E2-F2 โ it works, but it's harder to maintain. If you insert a new column in the middle, the chained version misses the inserted cell, while the SUM version expands automatically. Always prefer SUM when subtracting a range; it's more robust against sheet edits. For more on building flexible totals, see Excel SUM function coverage of common cases.
One pitfall worth flagging: Excel's order of operations follows standard math (PEMDAS). Multiplication and division happen before addition and subtraction unless parentheses change the order. So =A2-B2*C2 calculates B2*C2 first, then subtracts the result from A2. If you actually wanted (A2-B2) multiplied by C2, you'd write =(A2-B2)*C2. Get the parentheses wrong and your numbers silently break. When in doubt, parenthesize โ the visual noise is cheaper than a wrong total in a quarterly report. This rule applies across the wider family of Excel formulas, not just subtraction.
Standard method. =A1-B1 or =100-A1. Works in every Excel version. Handles dates, times, currencies. Drag the fill handle to copy down a column.
=SUM(A1, -B1) or =A1-SUM(B1:E1). Useful for financial models with mixed positives and negatives, or when subtracting a range from one cell.
Only true subtraction function in Excel. Subtracts complex numbers: =IMSUB("5+2i", "3+1i"). Niche โ engineering and physics work only.
Subtracts a value from an entire range without writing a formula. Copy the value, select target range, Paste Special, choose Subtract. Permanent edit, not a formula.
Subtracting dates in Excel is one of the most common real-world subtraction tasks โ and it works beautifully because Excel stores dates as serial numbers under the hood. Each date is a number representing the days since January 1, 1900 (or January 1, 1904 on older Mac files). When you subtract one date from another, Excel returns the number of days between them, automatically.
Type =DATE(2026,12,31)-DATE(2026,1,1) in a cell and you get 364 โ the number of days between January 1 and December 31, 2026. With cell references, the same pattern works: =B2-A2 where A2 holds a start date and B2 holds an end date returns the day count. Format the result cell as Number (not as a date) or Excel might display the answer as a strange-looking date instead of an integer. Right-click โ Format Cells โ Number โ choose 0 decimal places.
For more nuanced date subtraction โ months between two dates, years between two dates, full years plus extra months and days โ the dedicated DATEDIF function handles the calculation in one step. For example, =DATEDIF(A2, B2, "Y") returns the number of complete years between the two dates. The DATEDIF in Excel with real examples walk-through covers all the unit codes ("D", "M", "Y", "YM", "YD", "MD") with practical scenarios. Pure subtraction always returns days; DATEDIF handles every other unit.
Time subtraction is trickier because Excel stores times as decimal fractions of a day. 6:00 AM is 0.25 (a quarter of the day), noon is 0.5, 6:00 PM is 0.75. So =B2-A2 where A2 is a start time and B2 is an end time returns the elapsed time as a decimal fraction.
Format the result cell as h:mm or h:mm:ss to see it as hours and minutes instead. If your end time is on the next day (say, an overnight shift from 11 PM to 7 AM), the simple subtraction returns a negative number, which Excel can't display as a time. Wrap the result in =MOD(B2-A2, 1) to handle the wraparound correctly.
Scenario: Calculate the difference between A2 (revenue) and B2 (expenses).
Formula: =A2-B2
Result: Net profit. Drag down to apply across all rows.
Tip: Format the column as Currency for instant readability. If B2 ever exceeds A2, the result goes negative โ useful as a built-in loss indicator.
Scenario: Starting budget in A2, expenses in B2 through F2. Calculate what's left.
Formula: =A2-SUM(B2:F2)
Result: Remaining budget. SUM expands automatically if you insert new expense columns inside the range โ more robust than =A2-B2-C2-D2-E2-F2.
Scenario: Project start date in A2, end date in B2. Calculate duration in days.
Formula: =B2-A2
Result: Days between the two dates. Format the cell as Number (not Date) so Excel shows an integer like 47, not a date like 02/16/1900.
Scenario: Clock-in time in A2, clock-out in B2. Calculate hours worked.
Formula: =B2-A2 formatted as h:mm
For totals over 24 hours: Use the custom format [h]:mm instead. The square brackets tell Excel to keep counting past 24 instead of rolling over to a new day.
Scenario: Original price in A2, new price in B2. Calculate percent change.
Formula: =(B2-A2)/A2 formatted as Percentage
Result: A negative percentage shows a decrease, positive shows an increase. The parentheses are critical โ without them, Excel divides B2 by A2 first, then subtracts A2, which is the wrong math.
Subtracting percentages causes more confusion than any other subtraction case in Excel. The trap: people see "subtract 10%" and write =A2-10%, which actually subtracts 0.1 from A2 (because Excel reads 10% as the decimal 0.1). To subtract 10% of A2 from A2, you need either =A2-A2*10% or, more cleanly, =A2*(1-10%). Both return A2 minus a tenth of itself. The second form is preferred because it does one multiplication instead of one multiplication plus one subtraction โ slightly cleaner and faster across large datasets.
If your percentage lives in a cell rather than as a typed number, the same pattern applies: =A2*(1-B2) where B2 contains the percentage. This is how discount calculators work: A2 is the original price, B2 is the discount percent (formatted as %), and the formula returns the discounted price in one move. For more advanced percentage manipulation including markup, margin, and percent change, see the Excel percentage formula guide โ it covers every variation with worked examples.
Percent change is its own beast. The formula =(B2-A2)/A2 gives the percentage difference between two values, where A2 is the original and B2 is the new. Format the result as a percentage to see something like -15% (decrease) or +22% (increase). This is the standard formula used in financial reporting for period-over-period comparisons, year-over-year growth, and variance analysis. Forget the parentheses around the subtraction and you'll get nonsense โ division has higher precedence than subtraction, so =B2-A2/A2 calculates A2/A2 first (returning 1), then subtracts that from B2. Always parenthesize.
Cumulative subtraction โ sometimes called running subtraction โ is the mirror of a running total. Say you have a starting balance in A2 and a series of withdrawals in B3, B4, B5, and so on. You want column C to show the remaining balance after each withdrawal. In C2 put =A2 to seed the balance, then in C3 put =C2-B3 and drag down. Each row subtracts the current row's withdrawal from the previous row's balance. This pattern shows up in checkbook registers, inventory depletion sheets, and any "countdown" calculation.
Paste Special โ Subtract is a hidden gem when you need to subtract one value from an entire range without writing a formula. Say you have prices in B2:B50 and you need to lower every price by exactly 5 dollars. Without Paste Special, you'd build a helper column with =B2-5, copy the values back, then delete the helper column.
With Paste Special: type 5 into any empty cell, copy it (Ctrl+C), select B2:B50, then go to Home โ Paste โ Paste Special โ Subtract โ OK. Every cell in the range drops by 5 in place, with no helper column and no formulas left behind.
This trick scales to any operation Paste Special offers: Add, Subtract, Multiply, Divide. It's destructive โ the original values are gone โ so use it only when you genuinely want the new numbers and don't need to undo the change later. It's also great for fixing batch data errors. Suppose you imported a CSV and every value is off by exactly 100 in the wrong direction. Type 100, copy, select the bad column, Paste Special Subtract, done. Far faster than rebuilding the import.
The IMSUB function is Excel's only function with the word "subtract" in its purpose, but it operates on complex numbers โ the kind with imaginary components used in electrical engineering, signal processing, and quantum physics. Syntax: =IMSUB("5+2i", "3+1i") returns "2+i". The arguments are text strings, not regular numbers. Most Excel users will never touch this function, but if you're an EE student or working with AC circuit analysis, IMSUB is essential and works seamlessly with sibling functions like IMSUM, IMPRODUCT, and IMDIV.
Subtracting whole columns in one move is a common request, especially in summary dashboards. The trick depends on what "whole column" means. To put a per-row difference in a third column, use the fill-down approach we've covered: =A2-B2 in C2, drag to fill.
To get a single number representing the difference between two column totals, use =SUM(A:A)-SUM(B:B). To use Excel 365's dynamic arrays for an automatic per-row result without dragging, type =A2:A100-B2:B100 in a single cell โ Excel spills the results down automatically. The spill pattern is one of the cleaner additions to modern Excel, similar to how Excel date formulas with examples use dynamic arrays for filling date sequences.
Errors during subtraction are usually rooted in one of three problems: text in a cell that should be a number, a date format that's not really a date, or a reference pointing to the wrong place. #VALUE! shows up when Excel finds text where it expected a number.
The cell might look like a number โ "123" โ but it's actually stored as text with a leading space, a trailing space, or a non-breaking space from a copy-paste. Highlight the cell, look at the formula bar, and if the value is left-aligned (text alignment by default), that's your clue. Use =VALUE(A2) or run Find & Replace to strip stray characters.
Negative results that should be positive often trace back to swapped references. =A2-B2 and =B2-A2 return opposite values. When building summary formulas, write out what you actually want in plain English first: "revenue minus cost" means =A2-B2 where A2 is revenue. Reversing the cells flips the sign. For variance reports where you want a positive number regardless of direction, wrap the formula in ABS: =ABS(A2-B2) returns the magnitude of the difference, ignoring sign.
Dates that subtract to weird numbers are usually formatting issues. =B2-A2 between two dates should return an integer like 47. If you see 02/16/1900 instead, Excel is treating the result cell as a date and showing day 47 of 1900. Fix it: select the cell, Ctrl+1 to open Format Cells, choose Number, set decimals to 0. The underlying value is correct โ it's just being displayed as a date. Same issue can hit time subtraction: result looks like a clock time but should be a duration. The format [h]:mm handles durations past 24 hours; plain h:mm rolls over.
If your subtraction formula returns 0 when you expected a real number, check whether the cells you're subtracting actually hold numbers. A common gotcha: imported data sometimes contains numbers stored as text โ they look right but Excel can't do math on them. Select the range, look for the green triangle in the top-left of each cell (Excel's "number stored as text" warning), and use the Convert to Number option from the warning menu. Or wrap the formula: =VALUE(A2)-VALUE(B2) forces a conversion. This same diagnostic flow applies broadly when troubleshooting any of the Excel formulas that produce unexpected zeros.
Building a clean subtraction-based dashboard is mostly about consistency. Decide early whether expenses are entered as positive numbers and subtracted by formula, or entered as negative numbers and summed. Mixing both conventions in the same sheet leads to sign errors that are painful to debug. Most professional finance templates use the positive-and-subtract approach: expenses stay positive in the data column, and the summary line subtracts them. This makes the raw data easy to read at a glance โ a 500 expense looks like 500, not -500.
For analyses where you need a running variance โ actual versus budget, this quarter versus last quarter, current versus target โ set up two columns side by side and a third column with the variance formula =B2-A2. Apply conditional formatting to color positive variances green and negative variances red, and the dashboard tells its story without anyone having to read the numbers. This pattern works across budgeting, sales tracking, project burndown, and inventory monitoring.
If you're new to formula writing in general and want a structured path through the operators and functions, the Excel cheat sheet covers subtraction alongside the other arithmetic operators with quick-reference syntax. Pair that with Excel keyboard shortcuts for fast formula editing and you'll write working subtraction formulas faster than most analysts. For people learning Excel as a job skill or working toward certification, Microsoft's MOS exam tests subtraction patterns directly โ see the Excel certification guide for prep details and exam structure.
Subtraction in Excel is a small operation that quietly underpins most analytical work: variance, change, balance, runway, gap, delta. Master the minus operator, know when to switch to SUM with negatives, recognize when dates need special formatting, and you've covered 95% of the subtraction patterns you'll ever need. The remaining 5% โ Paste Special, IMSUB, dynamic array spills โ are tools you reach for when the standard pattern would be clumsy. The right tool for the right job is what separates fast spreadsheet work from slow.
One last pattern worth knowing: subtracting between sheets. If your data lives on a sheet called "Q1" and you want to compare it against "Q2" data on a different tab, the syntax is =Q2!A2-Q1!A2. The exclamation point separates the sheet name from the cell reference. If the sheet name contains a space or special character, wrap it in single quotes: ='Sales Q2'!A2-'Sales Q1'!A2. This cross-sheet subtraction is how most multi-period comparison dashboards work โ keep raw data on its own tab, build subtraction formulas on a summary tab.
Subtracting between workbooks works the same way but adds the file name in square brackets: =[Budget2026.xlsx]Sheet1!A2-[Budget2025.xlsx]Sheet1!A2. The external workbook must be open for the link to update; closed workbook references show the last calculated value but won't recalculate until you open the source. For long-term consolidation, most teams paste values rather than maintain live cross-workbook links โ links break when files move, get renamed, or land in different cloud folders.
And if you ever genuinely need a function named SUBTRACT, you can build one with LAMBDA in Excel 365: =LAMBDA(a, b, a-b). Save it as a Name in Name Manager called SUBTRACT and you'll have =SUBTRACT(A2, B2) available throughout the workbook. It's a workaround, not a Microsoft-blessed function, but it's a clean way to give your team a named subtraction function if your house style demands it. Most experienced Excel users skip the LAMBDA and just use -, but the option exists.