ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   New Users to Excel (https://www.excelbanter.com/new-users-excel/)
-   -   function contif (https://www.excelbanter.com/new-users-excel/133494-function-contif.html)

Isaías.

function contif
 
I´ve a list of numbers and want to use the count how many of this is within
the ranges

Mike

function contif
 
Checks the range A2 - A10 for numbers =5 and <=20.
=COUNTIF(A2:A10,"=5")-COUNTIF(A2:A10,"20")

Mike

"IsaÃ*as." wrote:

I´ve a list of numbers and want to use the count how many of this is within
the ranges


Martin Fishlock

function contif
 
Hi:

Another way to do it is sumproduct:

=sumproduct(--(A2:A10=5),--(A2:A10<20))

--
Hope this helps
Martin Fishlock, Bangkok, Thailand
Please do not forget to rate this reply.


"Mike" wrote:

Checks the range A2 - A10 for numbers =5 and <=20.
=COUNTIF(A2:A10,"=5")-COUNTIF(A2:A10,"20")

Mike

"IsaÃ*as." wrote:

I´ve a list of numbers and want to use the count how many of this is within
the ranges



All times are GMT +1. The time now is 12:36 PM.

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