ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   COUNT IF + using 2 sets of data (https://www.excelbanter.com/excel-programming/393491-count-if-using-2-sets-data.html)

[email protected]

COUNT IF + using 2 sets of data
 
A B C

1 BB 6
2 BB
3 a 5
4 a 5
5 BB 5


ok, still a beginner so i need simple answers.

what i want to do is count the number of non blank entrys in colum C
based on only those that are labled BB in B.

I feel like this should be very simple COUNT option similar to
SUMIF(B1:B5,"BB",C1:C5)


Mike H

COUNT IF + using 2 sets of data
 
Maybe,

=SUMPRODUCT((B1:B5="BB")*(C1:C5<""))

Mike

" wrote:

A B C

1 BB 6
2 BB
3 a 5
4 a 5
5 BB 5


ok, still a beginner so i need simple answers.

what i want to do is count the number of non blank entrys in colum C
based on only those that are labled BB in B.

I feel like this should be very simple COUNT option similar to
SUMIF(B1:B5,"BB",C1:C5)



[email protected]

COUNT IF + using 2 sets of data
 


yes great !! thank you very much!!!


Jim May

COUNT IF + using 2 sets of data
 
=sumproduct((left(B1:B5,2)="BB")*(C1:C50))


wrote in message
oups.com...
A B C

1 BB 6
2 BB
3 a 5
4 a 5
5 BB 5


ok, still a beginner so i need simple answers.

what i want to do is count the number of non blank entrys in colum C
based on only those that are labled BB in B.

I feel like this should be very simple COUNT option similar to
SUMIF(B1:B5,"BB",C1:C5)




Jim May

COUNT IF + using 2 sets of data
 
Make that:
=sumproduct((left(B1:B5,2)="BB")*((C1:C5<"")))


"Jim May" wrote in message
...
=sumproduct((left(B1:B5,2)="BB")*(C1:C50))


wrote in message
oups.com...
A B C

1 BB 6
2 BB
3 a 5
4 a 5
5 BB 5


ok, still a beginner so i need simple answers.

what i want to do is count the number of non blank entrys in colum C
based on only those that are labled BB in B.

I feel like this should be very simple COUNT option similar to
SUMIF(B1:B5,"BB",C1:C5)







All times are GMT +1. The time now is 05:23 PM.

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