yeah, it's possible. it's explained in the file of my link below*Tips & Tutorials I Compiled, sheet 10
something along:
=SUMPRODUCT(SUBTOTAL(3,OFFSET(G6,ROW(G6:G500)-ROW(G6),))*(G6:G500="yes"))