Skip to playerSkip to main contentSkip to footer
  • 7/2/2025
Learn how do I calculate totals with SUMPRODUCT in Excel? You will be surprise to find the answer to can you use SUMPRODUCT to count from my video. The idea is to sum only cells containing formulas in Excel. I will be using Sumproduct And ISformula To Sum Only Formula Cell in my example.

Excel is a popular spreadsheet software used by millions of people worldwide to perform various tasks such as data analysis, financial modeling, and project management. Excel offers a wide range of functions and formulas to perform complex calculations and automate repetitive tasks. One such formula is the SUMPRODUCT function, which allows users to multiply corresponding components in arrays and then sum the products. The SUMPRODUCT function can be used to perform a variety of tasks, including calculating weighted averages, counting cells based on multiple conditions, and more.

The formula =SUMPRODUCT(E2:E33,--ISFORMULA(E2:E33)) is a specific application of the SUMPRODUCT function, used to calculate the sum of all the formula-containing cells in a given range. This formula can be useful in situations where a user needs to quickly determine the number of cells containing formulas in a range, such as when auditing a spreadsheet or verifying the accuracy of complex formulas. By leveraging the ISFORMULA function to identify the cells containing formulas and then multiplying them with the SUMPRODUCT function, users can get an accurate count of formula-containing cells in a given range.

Here's the formula use in the video.

=SUMPRODUCT(E2:E33,--ISFORMULA(E2:E33))

The formula =SUMPRODUCT(E2:E33,--ISFORMULA(E2:E33)) calculates the sum of all the formula-containing cells in the range E2:E33.

This is the overall anatomy of the formula.

- ISFORMULA(E2:E33) returns an array of TRUE or FALSE values indicating whether each cell in the range contains a formula or not.
- The double unary operator (--) converts the boolean values to 1 or 0, so that we can use them in arithmetic operations.
- SUMPRODUCT multiplies the values in the two arrays (the cell values and the 1's and 0's indicating whether they are formulas), and then sums up the products to give the final result.

SUMPRODUCT,ISFORMULA,double unary operator,
How do I calculate totals with SUMPRODUCT in Excel?,Can you use SUMPRODUCT to count?,Sum only cells containing formulas in Excel,
excel calculate total formula,excel sum of two cells formula,sumproduct and if excel,sumproduct if and excel,
advanced sumproduct function in excel,sumproduct with multiple criteria,sumproduct excel example,sumproduct with criteria,how to use sumproduct in excel,sumproduct if excel,
Transcript
00:00To calculate the final total of the spreadsheet, you can either add up all the subtotal like this,
00:04alternatively you can actually add up all the line item excluding the subtotal and you can get it.
00:09But as you can see, this task can be dauntingly difficult if there are hundreds or thousands of
00:14rows. Never than last, like anything else in Excel, there's a smarter way to do this,
00:17and this is how you do it. The formula we'll be using is called SUMPRODUCT,
00:22and the first argument on SUMPRODUCT would be everything on that particular column itself,
00:27including the tax and the subtotal and everything. And the second argument will be using a double
00:32unary operator, and we're going to check if that particular cell is a formula, and we're going to
00:37select everything including the tax and the subtotal itself. If the cell is a formula, the cell value
00:42will be multiplied by 1. If it's not, the cell value will be multiplied by 0, and the results are all
00:48added up together.

Recommended