#1   Report Post  
Posted to microsoft.public.excel.misc
asg2307
 
Posts: n/a
Default Refining Countif

I am using Countif as per this example =COUNTIF(Sheet2!$G$1:$G$30000,
"=redcat") . I would like to find only the redcat11 's only in one zip code
which is in column k. I have tried sumproduct and sum but they dont work.
There is on numerical value for redcat just the value redcat. Thanks.
  #2   Report Post  
Posted to microsoft.public.excel.misc
Dave Peterson
 
Posts: n/a
Default Refining Countif

=sumproduct(--(sheet2!$g$1:$g$30000="Redcat"),--(sheet2!$k$1:$k$30000=12345))

=sumproduct() likes to work with numbers.

the -- stuff converts trues and falses to 1's and 0's.

If the zip codes are text, use ="12345".

And you can't use the whole column in this kind of formula.

asg2307 wrote:

I am using Countif as per this example =COUNTIF(Sheet2!$G$1:$G$30000,
"=redcat") . I would like to find only the redcat11 's only in one zip code
which is in column k. I have tried sumproduct and sum but they dont work.
There is on numerical value for redcat just the value redcat. Thanks.


--

Dave Peterson
  #3   Report Post  
Posted to microsoft.public.excel.misc
Dave Peterson
 
Posts: n/a
Default Refining Countif

And I'm not sure how redcat11 fit in??

Dave Peterson wrote:

=sumproduct(--(sheet2!$g$1:$g$30000="Redcat"),--(sheet2!$k$1:$k$30000=12345))

=sumproduct() likes to work with numbers.

the -- stuff converts trues and falses to 1's and 0's.

If the zip codes are text, use ="12345".

And you can't use the whole column in this kind of formula.

asg2307 wrote:

I am using Countif as per this example =COUNTIF(Sheet2!$G$1:$G$30000,
"=redcat") . I would like to find only the redcat11 's only in one zip code
which is in column k. I have tried sumproduct and sum but they dont work.
There is on numerical value for redcat just the value redcat. Thanks.


--

Dave Peterson


--

Dave Peterson
  #4   Report Post  
Posted to microsoft.public.excel.misc
asg2307
 
Posts: n/a
Default Refining Countif

redcat11 was a mistake.

"Dave Peterson" wrote:

And I'm not sure how redcat11 fit in??

Dave Peterson wrote:

=sumproduct(--(sheet2!$g$1:$g$30000="Redcat"),--(sheet2!$k$1:$k$30000=12345))

=sumproduct() likes to work with numbers.

the -- stuff converts trues and falses to 1's and 0's.

If the zip codes are text, use ="12345".

And you can't use the whole column in this kind of formula.

asg2307 wrote:

I am using Countif as per this example =COUNTIF(Sheet2!$G$1:$G$30000,
"=redcat") . I would like to find only the redcat11 's only in one zip code
which is in column k. I have tried sumproduct and sum but they dont work.
There is on numerical value for redcat just the value redcat. Thanks.


--

Dave Peterson


--

Dave Peterson

  #5   Report Post  
Posted to microsoft.public.excel.misc
asg2307
 
Posts: n/a
Default Refining Countif

This worked great. I ended up with a negative number, but resolved this by
putting a minus sign before sumproduct. Maybe if you have time you can tell
me how to properly write the formula.

Thanks!!

Alan

"Dave Peterson" wrote:

=sumproduct(--(sheet2!$g$1:$g$30000="Redcat"),--(sheet2!$k$1:$k$30000=12345))

=sumproduct() likes to work with numbers.

the -- stuff converts trues and falses to 1's and 0's.

If the zip codes are text, use ="12345".

And you can't use the whole column in this kind of formula.

asg2307 wrote:

I am using Countif as per this example =COUNTIF(Sheet2!$G$1:$G$30000,
"=redcat") . I would like to find only the redcat11 's only in one zip code
which is in column k. I have tried sumproduct and sum but they dont work.
There is on numerical value for redcat just the value redcat. Thanks.


--

Dave Peterson



  #6   Report Post  
Posted to microsoft.public.excel.misc
asg2307
 
Posts: n/a
Default Refining Countif

Disregard the adding the negative sign comment. My error.

"Dave Peterson" wrote:

And I'm not sure how redcat11 fit in??

Dave Peterson wrote:

=sumproduct(--(sheet2!$g$1:$g$30000="Redcat"),--(sheet2!$k$1:$k$30000=12345))

=sumproduct() likes to work with numbers.

the -- stuff converts trues and falses to 1's and 0's.

If the zip codes are text, use ="12345".

And you can't use the whole column in this kind of formula.

asg2307 wrote:

I am using Countif as per this example =COUNTIF(Sheet2!$G$1:$G$30000,
"=redcat") . I would like to find only the redcat11 's only in one zip code
which is in column k. I have tried sumproduct and sum but they dont work.
There is on numerical value for redcat just the value redcat. Thanks.


--

Dave Peterson


--

Dave Peterson

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 Formula /Sort Bug??? orcfodder Excel Discussion (Misc queries) 2 January 12th 06 10:04 AM
COUNTIF or not to COUNTIF on a range in another sheet Ellie Excel Worksheet Functions 4 September 15th 05 10:06 PM
Combining IF and COUNTIF based on two columns maxtrixx Excel Discussion (Misc queries) 5 March 31st 05 06:21 PM
Countif - Countif maswinney Excel Worksheet Functions 3 November 15th 04 11:06 PM
countif, again Liz G Excel Worksheet Functions 2 November 1st 04 11:20 PM


All times are GMT +1. The time now is 08:28 AM.

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"