Is there a command like subtotal but with a conditional?

H

Hiughs

I want to perform several calculations but using something like subtotal()
but taking consideration of certain conditions like sumif(), in others words,
sumif() works but doesn´t change when i manipulte the filters and subtotal()
works with the filters but not with the diferent conditions... What can i do?
 
P

Peo Sjoblom

One solution


=SUMPRODUCT(--($B$2:$B$200>5),--($A$2:$A$200),--(SUBTOTAL(3,OFFSET($B$2,ROW(
$B$2:$B$200)-MIN(ROW($B$2:$B$200)),,))))

will sum values in a filtered list where B2:B200 > 5 and sum the
corresponding cells in A



--

Regards,

Peo Sjoblom



Hiughs said:
I want to perform several calculations but using something like subtotal()
but taking consideration of certain conditions like sumif(), in others words,
sumif() works but doesn´t change when i manipulte the filters and subtotal()
works with the filters but not with the diferent conditions... What can i
do?
 

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