Autofilter and FREQUENCY

  • Thread starter Thread starter Jan Kronsell
  • Start date Start date
J

Jan Kronsell

Hi!

I have this FREQUENCY formula in my srpeadsheet:

=FREQUENCY(P1:P40000;S1:S10)

If I autofilter the list, the formular will still display the results of all
rows. Is there away to get FREQUENCY only to count Filtered Rows? Or can the
same result be achieved any other way.

I thought of combining with the SUMPRODUCT() function, but as the arrays are
not identical in siz, this will not work.

Jan
 
jAN,

tRY THIS

=FREQUENCY(IF(SUBTOTAL(3,OFFSET(P1,ROW(INDIRECT("1:4000")),0)),P1:P4000),S1:S10)

--
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)
 
Sorry, correction

=FREQUENCY(IF(SUBTOTAL(3,OFFSET(P1,ROW(INDIRECT("1:40"))-1,0)),P1:P40),S1:S10)

--
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)
 
Thank You. That did it :-)

Jan


Bob Phillips said:
Sorry, correction

=FREQUENCY(IF(SUBTOTAL(3,OFFSET(P1,ROW(INDIRECT("1:40"))-1,0)),P1:P40),S1:S10)

--
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my
addy)
 
Back
Top