ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   count filtered rows based on condition greater than forty (https://www.excelbanter.com/excel-worksheet-functions/156885-count-filtered-rows-based-condition-greater-than-forty.html)

PLVKC

count filtered rows based on condition greater than forty
 
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. Valko

count filtered rows based on condition greater than forty
 
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:C1040))

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

--
Biff
Microsoft Excel MVP


"PLVKC" wrote in message
...
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?





All times are GMT +1. The time now is 10:57 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com