count filtered rows based on condition greater than forty

G

Guest

i need to count the number of filtered rows greater than 40 for a particular
column of data. i know we hav subtotal function, but donno how to giv a
condion?
 
T

T. Valko

Try this:

Row 1 are column headers with filter
Data in the range A2:C10
You want to count based on column C

=SUMPRODUCT(SUBTOTAL(3,OFFSET(C2:C10,ROW(C2:C10)-MIN(ROW(C2:C10)),,1)),--(C2:C10>40))

Assume column C contains *only* numeric values, no text entries.
 

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