• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

SUMPRODUCT or SUMIFS that will allow formulas

I have a simple database, attached. I want to calculate the average weight by class. Column G does this with a SUMIF formula. I also experimented with SUMPRODUCT for this purpose. However, I want to eliminate column D, and these functions want a matching range like column D, not a formula. What formula can I use to do this?
Paul
 

Attachments

  • Sample Data.xlsx
    55 KB · Views: 6
Hi,

Something like this?

=SUMPRODUCT(($A$3:$A$24=$F5)+0,$B$3:$B$24,$C$3:$C$24/100)/(SUMIF($A$3:$A$24,$F5,$C$3:$C$24)/100)
 

Attachments

  • Sample Data.xlsx
    21.2 KB · Views: 4
Back
Top