ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   count if (https://www.excelbanter.com/excel-worksheet-functions/138663-count-if.html)

[email protected]

count if
 
how do i get the count if function to count based on certain concrete
conditions...if cell a1 = condition a and <= condition b then add 1
to count...


Bob Phillips

count if
 
single cell

=IF(AND(A1=condition_a,A1<=condition_2),1,0)

range of cells

=SUMPRODUCT(--(A1:A10=condition_1),--(A1:A10<=condition_2))

--
---
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)



wrote in message
oups.com...
how do i get the count if function to count based on certain concrete
conditions...if cell a1 = condition a and <= condition b then add 1
to count...





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

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