Subtotal and Countif

D

Don Niall

Hi,

I have a s/s with multiple columns of data.
In columna A I have a subtotal(3,DATARANGE) formula, and
in column B a countif(DATARANGE,"Y").
Is there any variation on the countif formula that will
work in synch with the subtotal formula?
For example if I filter a specific piece of data the
subtotal will return the revised count. The countif
formula howevere will continue to report on the entire
datarange - not the subtotal?

Any ideas?

Don-
 
F

Frank Kabel

Hi
use:
=SUMPRODUCT(--(SUBTOTAL(3,OFFSET(INDEX(DATARANGE,1,1),ROW
(DATARANGE)-ROW(INDEX(DATARANGE,1,1)),0))=1),--
(DATARANGE="Y"))
 

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