In my rather simple-minded comment above I suggested the 'MINUS' function for a range A1:A10 would just be

A1-sum(A2:A10)

Another way of doing it would be

2*A1-sum(a1:a10)

Applying this second formula to your filtered data gives:

=2*array_constrain(filter(D:D,left(B:B)<>" ",D:D<>""),1,1)-ARRAYFORMULA(sumif(left(B:B,1),"<> ",D:D))

In other words, find the first row with data in it, multiply by two and subtract the sum of all the data.

Answer from Tom Sharpe on Stack Overflow
🌐
Google Support
support.google.com › docs › thread › 185793678 › array-formula-for-subtraction
ARRAY FORMULA FOR SUBTRACTION - Google Docs Editors Community
October 26, 2022 - Skip to main content · Google Docs Editors Help · Sign in · Google Help · Help Center · Community · Google Docs Editors · Terms of Service · Submit feedback · Send feedback on
Discussions

In Google Sheets, what is the array formula to provide a subtraction result only if both input cells are not blank?
This should do that. If L2:L="" or K2:K="", then leave blank, else subtract K from L. =ARRAYFORMULA(IF((L2:L="")+(K2:K=""), , L2:L-K2:K)) More on reddit.com
🌐 r/sheets
8
2
July 8, 2021
google sheets - How do we use MINUS with array - Stack Overflow
as function MINUS(value1, value2) it only has 2 arguments Do we have function like MINUS(array) and minus each row of an array? Or need to use app-script to create the custom function? my full l... More on stackoverflow.com
🌐 stackoverflow.com
Using ARRAYFORMULA and need to subtract cells within the same column
there's a decent way to do this, but it's difficult to write in the abstract. If you paste a sample into this blank , I can demo how to do it there: https://docs.google.com/spreadsheets/d/1OM3BLyt5wpaLbuasrG3WjYSQqGlxUaytq0AXnkjNtAw/edit More on reddit.com
🌐 r/googlesheets
4
0
September 8, 2021
google sheets - GoogleSheet, Hot to subtract an array, each cell with the last one? - Stack Overflow
I'm trying to find the time gap between a range of times, and ÷ was wondering if there is a way ÷ could do this with array formula? A screenshot: Here is how I do it now, I have a column with each... More on stackoverflow.com
🌐 stackoverflow.com
People also ask

Does Coefficient work with both Google Sheets and Excel?
Yes, Coefficient supports both Google Sheets and Microsoft Excel. You can install Coefficient from the Google Workspace Marketplace for Sheets or from Microsoft AppSource for Excel.
🌐
coefficient.io
coefficient.io › home
How to Subtract in Google Sheets: A Clear and Confident Guide
What is Coefficient's AI Sheets Assistant?
AI Sheets Assistant is Coefficient's AI-powered feature that helps you build formulas, create charts, generate pivot tables, and build entire dashboards using natural language commands in Google Sheets. Unlike generic AI assistants, it's context-aware and creates native Google Sheets objects that are live and editable. It understands your spreadsheet's layout and data structure to provide accurate, actionable results.
🌐
coefficient.io
coefficient.io › home
How to Subtract in Google Sheets: A Clear and Confident Guide
What is Coefficient?
Coefficient is a no-code spreadsheet automation platform that connects Google Sheets and Excel to 100+ business systems including Salesforce, HubSpot, QuickBooks, NetSuite, Snowflake, MySQL, Looker and more. It enables live data sync, automated refreshes, two-way data integration, and AI-powered insights without any coding required. Over 700,000 users trust Coefficient to automate their spreadsheet workflows.
🌐
coefficient.io
coefficient.io › home
How to Subtract in Google Sheets: A Clear and Confident Guide
🌐
Rows
rows.com › blog › post › how-to-subtract-in-google-sheets
How to Subtract in Google Sheets: Step-by-Step Guide [2025]
August 5, 2024 - To perform subtraction across these ranges, use the ARRAY FORMULA function to subtract each element in Column B from the corresponding element in Column A. For the remainder of this example, we take note of the values of the C and D columns, ...
🌐
Coefficient
coefficient.io › home
How to Subtract in Google Sheets: A Clear and Confident Guide
September 2, 2025 - For example, if you want to subtract cell A2 from cells B2 through B5, you would select the range B2 and type “=B2:B5-A2” (without quotes) in the formula bar. Then, press Ctrl + Shift + Enter to enter the formula as an array formula.
🌐
Spreadsheet Point
spreadsheetpoint.com › home › google sheets tips › how to subtract in google sheets: the ultimate guide
How To Subtract in Google Sheets: The Ultimate 2026 Guide
February 6, 2024 - This is done by using the Array formula. ... Enter the equal sign (=) and ARRAYFORMULA in the first cell of the result matrix. Select the cells for the matrix you want to subtract from.
Find elsewhere
🌐
MakeUseOf
makeuseof.com › home › productivity › how to subtract in google sheets
How to Subtract in Google Sheets
January 23, 2023 - The core formula selects matrix 2 (A7 to C9), subtracts it from matrix 1 (A2 to C4), and then displays the subtraction results in matrix 3. The difference between the two methods is that in the first method, we only typed the core formula and then pressed Ctrl + Shift + Enter rather than Enter alone. This combination signals to Google Sheets that it's dealing with an array, and Google Sheets automatically houses the formula inside an ArrayFormula function.
🌐
SimpleSheets
simplesheets.co › blog › how-to-subtract-in-google-sheets
Subtract in Google Sheets: Cells, Columns and Dates
Type the formula =Cell1 - Cell2, replacing Cell1 and Cell2 with the references of the cells you want to subtract. For example, to subtract the value in cell B2 from the value in cell A2, type =A2 - B2.
🌐
Reddit
reddit.com › r/googlesheets › using arrayformula and need to subtract cells within the same column
r/googlesheets on Reddit: Using ARRAYFORMULA and need to subtract cells within the same column
September 8, 2021 -

I created a Google Form we can use to track our utility meter readings. I want to find out the total daily consumption which would subtract the newest submission from the previous submission and then multiply it by the meter multiplier (VLOOKUP). I am using the ARRAYFORMULA so it copies down with new submissions, but it doesn't seem to be changing the subtraction cells in the copy down. How can I get this to work properly?

=ARRAYFORMULA(If(ROW(B:B)=1,"Total Consumption",VLookup(B$1,'Metered Usage'!A1:B24,2,0)*(B3-B2)))

https://imgur.com/a/w30gWBU

🌐
Layer Blog
blog.golayer.io › google sheets › how to subtract in google sheets formula & examples
How to Subtract in Google Sheets Formula & Examples | Layer Blog
June 26, 2023 - Type the ARRAYFORMULA function, followed by the MINUS function. Select the range of cells as the first parameter, followed by a comma and the value or cell reference you want to subtract.
Price: $
Address: La Marina de Valencia Muelle de la Aduana, 46024
🌐
YouTube
youtube.com › watch
How to Subtract in Google Sheets (single cells and full arrays) - YouTube
Here are a few easy ways to subtract cells in Google Sheets. Skip to 40 seconds to see how to use the array formula to subtract a group of cells from another...
Published: February 1, 2024
🌐
Layer
golayer.io › home › how to subtract in google sheets formula & examples
How to Subtract in Google Sheets Formula & Examples | Layer Blog
July 17, 2024 - 1. Open the spreadsheet with your columns of values. 2. In an empty cell, type the ARRAYFORMULA function followed by the MINUS function. 3. Select the column with the minuends followed by a comma.
🌐
ExcelMojo
excelmojo.com › home › google sheets › google sheets math functions › subtraction formula in google sheets
Subtraction Formula in Google Sheets - Syntax, How To Subtract?
April 28, 2026 - To perform subtraction on these ranges, let us use the ARRAYFORMULA function to subtract each value in Column B from the corresponding value in Column A. Step 2: Let us use ARRAYFORMULA as follows in cell I1. ... Master spreadsheet formulas, dashboards, charts, reporting, and productivity workflows that transfer well across Excel and Google Sheets.
🌐
InfoInspired
infoinspired.com › home › google docs › spreadsheet › subtract the previous row’s value in google sheets
Subtract the Previous Row’s Value in Google Sheets
March 27, 2025 - MAP, BYROW, and SCAN can all perform row-wise subtraction, but MAP allows working with multiple arrays. Dynamic ranges can be handled using INDEX and MATCH. Grouped calculations require an additional condition to reset subtraction at group boundaries. This method is efficient and avoids the need for helper columns or manual calculations. Try it out in your Google Sheets workflows!
🌐
The Bricks
thebricks.com › home › resources › how to subtract columns in google sheets
How to Subtract Columns in Google Sheets
April 22, 2025 - Instead, we manually add the columns within the array formula, which produces the same effective result as a row-wise sum: =ARRAYFORMULA(IF(A2:A="", "", A2:A - (B2:B + C2:C + D2:D))) Notice the columns being subtracted are grouped in parentheses ...