I'll add some details, if this does not help, you should supply some example
of your data and what results you are after.
My example assumed the filter range is A2:C9, w/headers in A1:C1 and you
want to sum the visible cells in Column C where col A = jeff and col B = abc.
If col A, B, and C have numeric data and all you want is the sumproduct for
col A, B, and C for visible rows w/o any other criteria, then you can remove
the comparison criteria I added for colA and colB and just use:
=SUMPRODUCT(A2:A9,B2:B9,SUBTOTAL(9,OFFSET(C2,ROW(C2:C9)-ROW(C2),0)))
So if you have the following data w/some rows hidden due to a filter applied
to some other column:
A B C
1 Col1 Col2 Col3
2 0 5 4
3 5 2 1 <hidden>
4 6 1 2
5 4 8 6 <hidden>
6 1 2 2 <hidden>
7 5 3 8
8 12 4 1 <hidden>
9 1 2 3
the Subtotal function returns a 0 for the hidden rows in column C, so the
array looks like:
A B C
1 Col1 Col2 Col3
2 0 5 4
3 5 2 0 <hidden>
4 6 1 2
5 4 8 0 <hidden>
6 1 2 0 <hidden>
7 5 3 8
8 12 4 0 <hidden>
9 1 2 3
Then sumproduct will do what it does and return 138. I only added the
additional constraints for example purposes as that seems to be what most
people ask for - although those constraints could be added via filters on
ColA and ColB instead of built into the formula. If there were certain items
that should always be included or excluded - I would build those constraints
into the formula so I would not have to mess w/those particular filters each
and every time I wanted to work w/ the data.
And, to give credit where it is due, kudos to Laurent Longre from whom I got
the idea (I think - it is in my notebook somewhere).