sumif but additionally there maybe filtering

C

CousinExcel

Hi,

Column A | Column B | Column C
.... | 100 | $
.... | 50 | €
.... | 60 | $

=sumif(C1:C3;"$";B1:B3)
No problem until this point.

But, when I appply some filtration in column A, I need the sum to change.
When I write the formula as above, the sum does not change after filtration.

Thanks and regards,

Cousin Excel
 
M

Mike H

Hi,

Try this

=SUMPRODUCT(--(C1:C10="$"),SUBTOTAL(9,OFFSET(B1:B10,ROW(B1:B10)-MIN(ROW(B1:B10)),0,1)))


--
Mike

When competing hypotheses are otherwise equal, adopt the hypothesis that
introduces the fewest assumptions while still sufficiently answering the
question.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top