ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Countif issue (https://www.excelbanter.com/excel-worksheet-functions/234782-countif-issue.html)

Stuck

Countif issue
 
Here's what I have:

=COUNTIF(OFFSET($P$9,0,0,(COUNTA($A:$A))-2,1),$P3)

column A is a number
cell P9 is a formula that produces text "G"
cell P3 contains the text "G"
Column C has multiple text strings "John Doe" "Jane Doe"

Here's what I need:

In addition to the formula above, I would like filter column C for a
specific name, thus giving me the total number of "G" items per "John Doe."

Any assistance would be appreciated. Thank you.

Teethless mama

Countif issue
 
=sumproduct(($P$9:$P$100="G")*($C$9:$C$100="John Doe"))

Adjust your range to suit


"Stuck" wrote:

Here's what I have:

=COUNTIF(OFFSET($P$9,0,0,(COUNTA($A:$A))-2,1),$P3)

column A is a number
cell P9 is a formula that produces text "G"
cell P3 contains the text "G"
Column C has multiple text strings "John Doe" "Jane Doe"

Here's what I need:

In addition to the formula above, I would like filter column C for a
specific name, thus giving me the total number of "G" items per "John Doe."

Any assistance would be appreciated. Thank you.


Macrofinder

Countif issue
 
So simple!

Thank you.

"Teethless mama" wrote:

=sumproduct(($P$9:$P$100="G")*($C$9:$C$100="John Doe"))

Adjust your range to suit


"Stuck" wrote:

Here's what I have:

=COUNTIF(OFFSET($P$9,0,0,(COUNTA($A:$A))-2,1),$P3)

column A is a number
cell P9 is a formula that produces text "G"
cell P3 contains the text "G"
Column C has multiple text strings "John Doe" "Jane Doe"

Here's what I need:

In addition to the formula above, I would like filter column C for a
specific name, thus giving me the total number of "G" items per "John Doe."

Any assistance would be appreciated. Thank you.


Stuck

Countif issue
 
If there are no matches, how do I get it to return a zero instead of blank?

"Stuck" wrote:

Here's what I have:

=COUNTIF(OFFSET($P$9,0,0,(COUNTA($A:$A))-2,1),$P3)

column A is a number
cell P9 is a formula that produces text "G"
cell P3 contains the text "G"
Column C has multiple text strings "John Doe" "Jane Doe"

Here's what I need:

In addition to the formula above, I would like filter column C for a
specific name, thus giving me the total number of "G" items per "John Doe."

Any assistance would be appreciated. Thank you.



All times are GMT +1. The time now is 07:04 PM.

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