Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11
Default countif help

I need help with a countif that will:
Count the number of times that: data in column A 2000 and the text in
column B ="*best*"

Thanks,
Rog
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 812
Default countif help

I need help with a countif that will:
Count the number of times that: data in column A 2000 and the text in
column B ="*best*"


=SUMPRODUCT((A:A2000)*(B:B="*best*"))

HTH,
Merjet


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default countif help

Clint Wagner wrote in news:#Ti$JEMdEHA.2908
@TK2MSFTNGP10.phx.gbl:

I need help with a countif that will:
Count the number of times that: data in column A 2000 and the

text in
column B ="*best*"

Thanks,
Rog


If I understand your needs correctly as counting only the number of
intersect points between column A and column B this should work for
you.

Enter this as the formula
=SUM((A1:A252000)*(B1:B25="best"))
adjusting A25 and B25 to suit your needs then press
CTRL+SHIFT+ENTER simultaneously to establish it as an array
formula.

You will know you have correctly entered it as an array formula
when you see
{=SUM((A1:A252000)*(B1:B25="*best*"))}
in the edit bar. Excel adds to braces for you.

HTH
Dave
  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 227
Default countif help

Hi merjet

AFAIK SUMPRODUCT does not work on entire columns - need something like.....

=SUMPRODUCT((A1:A1002000)*(B1:B100="*best*"))


--
XL2002
Regards

William



"merjet" wrote in message
...
| I need help with a countif that will:
| Count the number of times that: data in column A 2000 and the text in
| column B ="*best*"
|
| =SUMPRODUCT((A:A2000)*(B:B="*best*"))
|
| HTH,
| Merjet
|
|


  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11
Default countif help

merjet wrote:

I need help with a countif that will:
Count the number of times that: data in column A 2000 and the text in
column B ="*best*"



=SUMPRODUCT((A:A2000)*(B:B="*best*"))

HTH,
Merjet


That's not helping. Im getting N/A everytime. Cant I use a COUNTIF?


  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11
Default countif help

merjet wrote:

I need help with a countif that will:
Count the number of times that: data in column A 2000 and the text in
column B ="*best*"



=SUMPRODUCT((A:A2000)*(B:B="*best*"))

HTH,
Merjet


That's not helping. Im getting N/A everytime. Cant I use a COUNTIF?
  #7   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default countif help

Clint Wagner wrote in news:4107E174.3000403
@indiana.edu:

merjet wrote:

I need help with a countif that will:
Count the number of times that: data in column A 2000 and the

text in
column B ="*best*"



=SUMPRODUCT((A:A2000)*(B:B="*best*"))

HTH,
Merjet


That's not helping. Im getting N/A everytime. Cant I use a

COUNTIF?

If you adjust Merjet's values of A:A and B:B to reflect your range
(A1:A500 and B1:B500) it will work.

Dave
  #8   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11
Default countif help

merjet wrote:

I need help with a countif that will:
Count the number of times that: data in column A 2000 and the text in
column B ="*best*"



=SUMPRODUCT((A:A2000)*(B:B="*best*"))

HTH,
Merjet


That's not helping. Im getting N/A everytime. Cant I use a COUNTIF?
  #9   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11
Default countif help

merjet wrote:

I need help with a countif that will:
Count the number of times that: data in column A 2000 and the text in
column B ="*best*"



=SUMPRODUCT((A:A2000)*(B:B="*best*"))

HTH,
Merjet


That's not helping. Im getting N/A everytime. Cant I use a COUNTIF?
  #10   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 863
Default countif help

COUNTIF supports only one criterion. You have 2, so no, you can't use COUNTIF
here. You need SUMPRODUCT or an array formula.

On Wed, 28 Jul 2004 13:30:52 -0400, Clint Wagner wrote:

merjet wrote:

I need help with a countif that will:
Count the number of times that: data in column A 2000 and the text in
column B ="*best*"



=SUMPRODUCT((A:A2000)*(B:B="*best*"))

HTH,
Merjet


That's not helping. Im getting N/A everytime. Cant I use a COUNTIF?




  #11   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11
Default countif help

I am using the following formula:
=SUMPRODUCT((B28:B392000)*(D28:D40="*Best*"))
and it gives me #N/A

Is there something wrong with this? I have #'s that range from 2-4000
in column B and Words that do contain "Best"

Any help? I will email file if it helps....

Myrna Larson wrote:

COUNTIF supports only one criterion. You have 2, so no, you can't use COUNTIF
here. You need SUMPRODUCT or an array formula.

On Wed, 28 Jul 2004 13:30:52 -0400, Clint Wagner wrote:


merjet wrote:


I need help with a countif that will:
Count the number of times that: data in column A 2000 and the text in
column B ="*best*"


=SUMPRODUCT((A:A2000)*(B:B="*best*"))

HTH,
Merjet



That's not helping. Im getting N/A everytime. Cant I use a COUNTIF?



  #12   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,885
Default countif help

Hi
SUMPRODUCT does not support this kind of wildcards. Try instead

=SUMPRODUCT((B28:B392000)*(ISNUMBER(SEARCH("Best" ,D28:D40))))


--
Regards
Frank Kabel
Frankfurt, Germany


Clint Wagner wrote:
I am using the following formula:
=SUMPRODUCT((B28:B392000)*(D28:D40="*Best*"))
and it gives me #N/A

Is there something wrong with this? I have #'s that range from

2-4000
in column B and Words that do contain "Best"

Any help? I will email file if it helps....

Myrna Larson wrote:

COUNTIF supports only one criterion. You have 2, so no, you can't
use COUNTIF here. You need SUMPRODUCT or an array formula.

On Wed, 28 Jul 2004 13:30:52 -0400, Clint Wagner
wrote:


merjet wrote:


I need help with a countif that will:
Count the number of times that: data in column A 2000 and the
text in column B ="*best*"


=SUMPRODUCT((A:A2000)*(B:B="*best*"))

HTH,
Merjet



That's not helping. Im getting N/A everytime. Cant I use a
COUNTIF?


  #13   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11
Default countif help

I am using the following formula:
=SUMPRODUCT((B28:B392000)*(D28:D40="*Best*"))
and it gives me #N/A

Is there something wrong with this? I have #'s that range from 2-4000
in column B and Words that do contain "Best"

Any help? I will email file if it helps....

Myrna Larson wrote:

COUNTIF supports only one criterion. You have 2, so no, you can't use COUNTIF
here. You need SUMPRODUCT or an array formula.

On Wed, 28 Jul 2004 13:30:52 -0400, Clint Wagner wrote:


merjet wrote:


I need help with a countif that will:
Count the number of times that: data in column A 2000 and the text in
column B ="*best*"


=SUMPRODUCT((A:A2000)*(B:B="*best*"))

HTH,
Merjet



That's not helping. Im getting N/A everytime. Cant I use a COUNTIF?



  #14   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11
Default countif help

I am using the following formula:
=SUMPRODUCT((B28:B392000)*(D28:D40="*Best*"))
and it gives me #N/A

Is there something wrong with this? I have #'s that range from 2-4000
in column B and Words that do contain "Best"

Any help? I will email file if it helps....

Myrna Larson wrote:

COUNTIF supports only one criterion. You have 2, so no, you can't use COUNTIF
here. You need SUMPRODUCT or an array formula.

On Wed, 28 Jul 2004 13:30:52 -0400, Clint Wagner wrote:


merjet wrote:


I need help with a countif that will:
Count the number of times that: data in column A 2000 and the text in
column B ="*best*"


=SUMPRODUCT((A:A2000)*(B:B="*best*"))

HTH,
Merjet



That's not helping. Im getting N/A everytime. Cant I use a COUNTIF?



  #15   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,885
Default countif help

Hi
see your other resposne. Please try to avoid this kind of multiposting!

--
Regards
Frank Kabel
Frankfurt, Germany


Clint Wagner wrote:
I am using the following formula:
=SUMPRODUCT((B28:B392000)*(D28:D40="*Best*"))
and it gives me #N/A

Is there something wrong with this? I have #'s that range from

2-4000
in column B and Words that do contain "Best"

Any help? I will email file if it helps....

Myrna Larson wrote:

COUNTIF supports only one criterion. You have 2, so no, you can't
use COUNTIF here. You need SUMPRODUCT or an array formula.

On Wed, 28 Jul 2004 13:30:52 -0400, Clint Wagner
wrote:


merjet wrote:


I need help with a countif that will:
Count the number of times that: data in column A 2000 and the
text in column B ="*best*"


=SUMPRODUCT((A:A2000)*(B:B="*best*"))

HTH,
Merjet



That's not helping. Im getting N/A everytime. Cant I use a
COUNTIF?




  #16   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default countif help

Hi

Replace D28:D40 with D28:D39 so that the range in Column B is matched.
--

Regards

Pete

"Clint Wagner" wrote in message
...
| I am using the following formula:
| =SUMPRODUCT((B28:B392000)*(D28:D40="*Best*"))
| and it gives me #N/A
|
| Is there something wrong with this? I have #'s that range from 2-4000
| in column B and Words that do contain "Best"
|
| Any help? I will email file if it helps....
|
| Myrna Larson wrote:
|
| COUNTIF supports only one criterion. You have 2, so no, you can't use
COUNTIF
| here. You need SUMPRODUCT or an array formula.
|
| On Wed, 28 Jul 2004 13:30:52 -0400, Clint Wagner
wrote:
|
|
| merjet wrote:
|
|
| I need help with a countif that will:
| Count the number of times that: data in column A 2000 and the text
in
| column B ="*best*"
|
|
| =SUMPRODUCT((A:A2000)*(B:B="*best*"))
|
| HTH,
| Merjet
|
|
|
| That's not helping. Im getting N/A everytime. Cant I use a COUNTIF?
|
|


  #17   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11
Default countif help

Pete,
That worked!! I have adjusted all of my formulas. Thanks for the help
everyone!

Pete wrote:
Hi

Replace D28:D40 with D28:D39 so that the range in Column B is matched.

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? Helen Excel Worksheet Functions 1 March 7th 07 09:33 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 01:21 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"