ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   How can I count cells that meet two criteria within a filtered co. (https://www.excelbanter.com/excel-worksheet-functions/9612-how-can-i-count-cells-meet-two-criteria-within-filtered-co.html)

lizzzy

How can I count cells that meet two criteria within a filtered co.
 
Having trouble counting cells that meet two or more criteria such as "greater
than or equal to zero" and "less than or equal to 2" in a filtered column.
Only want visible cells to be counted.

Bob Phillips

This does it for data that has been filtered

=SUMPRODUCT(SUBTOTAL(3,OFFSET(A1:A10,ROW(A1:A10)-MIN(ROW(A1:A10)),,1)), --(A
1:A10=0),--(A1:A10<=2))

--

HTH

RP
(remove nothere from the email address if mailing direct)


"lizzzy" wrote in message
...
Having trouble counting cells that meet two or more criteria such as

"greater
than or equal to zero" and "less than or equal to 2" in a filtered column.
Only want visible cells to be counted.





All times are GMT +1. The time now is 02:57 AM.

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