• 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 with offset and subtotal with filters

Pugazh

New Member
I am able to get weight with variants (Base, Mid, Upr, Prm and Sprt) with formula
=IF(J$1="F1",SUMPRODUCT(SUBTOTAL(109,OFFSET($E$11,ROW($E$11:$E$200)-ROW($E$11),)),J$11:J$200,$B$11:$B$200),IF(J$1="TGA",SUMPRODUCT(SUBTOTAL(109,OFFSET($E$11,ROW($E$11:$E$200)-ROW($E$11),)),J$11:J$200,$C$11:$C$200),0)).

Unable to get weight for Material types (ABS, HDPE, PBT, PCABS, POM, PP) with the below formula.
=IF(M$1="F1",SUMPRODUCT(SUBTOTAL(109,OFFSET($E$11,ROW($E$11:$E$200)-ROW($E$11),)),J$11:J$200,$B$11:$B$200,$L$11:$L$200=$L4),IF(M$1="TGA",SUMPRODUCT(SUBTOTAL(109,OFFSET($E$11,ROW($E$11:$E$200)-ROW($E$11),)),J$11:J$200,$C$11:$C$200,$L$11:$L$200=$L4),0))

Sample excel file attached for reference.
 

Attachments

  • Sumproduct with subtotal.xlsx
    313.2 KB · Views: 6
Back
Top