In this article, we are going to learn how to modify the SUMPRODUCT function to return sum rather than a count.
We use Sumproduct function to return the sum of the product of parallel ranges or arrays. Now, we use the SUMPRODUCT function to return sum.
Let’s take an example and understand:-
We have data in range D4:F14. Column D contains product, Column E contains Item and column F contains sales price.
By using SUMPRODUCT, we will return the number of sales for the Product 1 and item A and then we will modify it to return the sum for the same criteria.
In Cell D17, we have Product’s drop down list and in cell D18, we have Item’s drop down list. In the drop down list, when we change the product, theitem no. of sales will be changed according to the criteria.
Follow below given steps:-
To make the SUMPRODUCT formula to sum the values from a range instead of counting them, add another argument to the SUMPRODUCT formula that contains the range to sum (cells F5:F14)
To modify the Sumproduct function in order to return the Sum rather than count, follow below given steps:-
In this way, we can use Sumproduct function in place of Countif and Sumif, in Microsoft Excel.
We would love to hear from you, do let us know how we can improve, complement or innovate our work and make it better for you. Write us at firstname.lastname@example.org
The applications/code on this site are distributed as is and without warranties or liability. In no event shall the owner of the copyrights, or the authors of the applications/code be liable for any loss of profit, any problems or any damage resulting from the use or evaluation of the applications/code.