#1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 42
Default 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


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 32
Default 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?
  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 10,593
Default 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




  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 42
Default 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?


Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
COUntif AND... NWO Excel Worksheet Functions 10 May 20th 09 04:05 PM
How do I use a countif function according to two other countif fu. Kirsty Excel Worksheet Functions 2 February 20th 06 11:44 AM
edit this =COUNTIF(A1:F16,"*1-2*")+COUNTIF(A1:F16,"*2-1*") sctroy Excel Discussion (Misc queries) 2 September 25th 05 04:13 AM
COUNTIF or not to COUNTIF on a range in another sheet Ellie Excel Worksheet Functions 4 September 15th 05 10:06 PM
COUNTIF in one colum then COUNTIF in another...??? JonnieP Excel Worksheet Functions 3 February 22nd 05 02:55 PM


All times are GMT +1. The time now is 08:47 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"