ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   formula for countIf with two conditions (https://www.excelbanter.com/excel-discussion-misc-queries/177662-formula-countif-two-conditions.html)

Bob Flanagan[_2_]

formula for countIf with two conditions
 
I need to count the number of cells in a range that are

less than 100 (some values may be negative)
Not empty (ie, exclude blanks)
Not zero

The last requirement is what is causing me the headache. A CountIF ignores
the blanks, but I can't figureout how to add a second condition for the not
zero requirement.

thanks

Bob



Gary''s Student

formula for countIf with two conditions
 
=COUNTIF(A1:A100,"<100")-COUNTIF(A1:A100,0)
--
Gary''s Student - gsnu2007d

Teethless mama

formula for countIf with two conditions
 
=SUMPRODUCT((A1:A100<100)*(A1:A100<0))


"Bob Flanagan" wrote:

I need to count the number of cells in a range that are

less than 100 (some values may be negative)
Not empty (ie, exclude blanks)
Not zero

The last requirement is what is causing me the headache. A CountIF ignores
the blanks, but I can't figureout how to add a second condition for the not
zero requirement.

thanks

Bob





All times are GMT +1. The time now is 03:31 AM.

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