ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Countif and (https://www.excelbanter.com/excel-programming/414471-countif.html)

HH[_4_]

Countif and
 
I can't seem to come up with the right code to say the following:

Count if $H&1:$H199 = "5th" and if B2 = "Active"

H1:199 will always be the same reference. B2 will change to c3, etc.

Help please
Hank



[email protected]

Countif and
 
On Jul 23, 11:16*am, "HH" wrote:
I can't seem to come up with the right code to say the following:

Count if $H&1:$H199 = "5th" and if B2 = "Active"

H1:199 will always be the same reference. * B2 will change to c3, etc.

Help please
Hank


What about this...

=COUNTIF(A:A, A1)

A:A will never change
A1 will change when you paste down...

If that's not the answer could you tell me what exactly you want as
the end result?

Bob Phillips

Countif and
 
AND(COUNTIF($H$1:$H$99,"5th")=99,B2="Active")

--
HTH

Bob

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

"HH" wrote in message
...
I can't seem to come up with the right code to say the following:

Count if $H&1:$H199 = "5th" and if B2 = "Active"

H1:199 will always be the same reference. B2 will change to c3, etc.

Help please
Hank





HH[_4_]

Countif and
 
From your answer I assume I did not ask the question to suit you.

Sorry if I offended you with my ignorance.

What I want is if Column H1:H199 has the word "5th" in it AND Cell b2 has
the word "Active" in it, I want a count of 1. IF cell B2 has anything
beside "5th" it would not be counted. If Column H1:H199 has anthing beside
the word "Active" it would not be counted.



wrote in message
...
On Jul 23, 11:16 am, "HH" wrote:
I can't seem to come up with the right code to say the following:

Count if $H&1:$H199 = "5th" and if B2 = "Active"

H1:199 will always be the same reference. B2 will change to c3, etc.

Help please
Hank


What about this...

=COUNTIF(A:A, A1)

A:A will never change
A1 will change when you paste down...

If that's not the answer could you tell me what exactly you want as
the end result?




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

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