WUGNET, the Windows User Group Network
Your Complete Resource Center for "The Best" in Shareware, Computing Tips and Support, Windows Industry News... and much more!
Home Forums Shareware Windows Tips Hot Offers FREE Newsletters Arcade Contact Us About Partners
Search WUGNET: RSS Feeds RSS Feeds Advertise with WUGNET    |    Shareware eBooks
HomeHome FAQFAQ      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

COUNTIF STOPS COUNTING

 
Goto page 1, 2
   Home -> Office -> Worksheet Functions RSS
Next:  XIRR problem  
Author Message
bashtherat

External


Since: Nov 03, 2008
Posts: 4



(Msg. 1) Posted: Mon Nov 03, 2008 7:07 am
Post subject: COUNTIF STOPS COUNTING
Archived from groups: microsoft>public>excel>worksheet>functions (more info?)

I used the following formula to count the number of times "NPRP served"
appears in a worksheet column: =COUNTIF(H3:H38,"*NPRP served*"); but it stops
counting if there is too much text before the target text appears.

Why does this happen and how do I get round it?

Please help.
Back to top
Login to vote
Glenn

External


Since: Jun 26, 2008
Posts: 304



(Msg. 2) Posted: Mon Nov 03, 2008 9:31 am
Post subject: Re: COUNTIF STOPS COUNTING [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

bashtherat wrote:
> I used the following formula to count the number of times "NPRP served"
> appears in a worksheet column: =COUNTIF(H3:H38,"*NPRP served*"); but it stops
> counting if there is too much text before the target text appears.
>
> Why does this happen and how do I get round it?
>
> Please help.


Try this array formula (use CTRL+SHIFT+ENTER):

=COUNT(--(FIND("NPRP served",H3:H38)>0))
Back to top
Login to vote
Glenn

External


Since: Jun 26, 2008
Posts: 304



(Msg. 3) Posted: Mon Nov 03, 2008 9:34 am
Post subject: Re: COUNTIF STOPS COUNTING [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Glenn wrote:
> bashtherat wrote:
>> I used the following formula to count the number of times "NPRP
>> served" appears in a worksheet column: =COUNTIF(H3:H38,"*NPRP
>> served*"); but it stops counting if there is too much text before the
>> target text appears.
>>
>> Why does this happen and how do I get round it?
>>
>> Please help.
>
>
> Try this array formula (use CTRL+SHIFT+ENTER):
>
> =COUNT(--(FIND("NPRP served",H3:H38)>0))


For what it's worth, the ">0" seems not to be necessary.
Back to top
Login to vote
Glenn

External


Since: Jun 26, 2008
Posts: 304



(Msg. 4) Posted: Mon Nov 03, 2008 9:36 am
Post subject: Re: COUNTIF STOPS COUNTING [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Glenn wrote:
> bashtherat wrote:
>> I used the following formula to count the number of times "NPRP
>> served" appears in a worksheet column: =COUNTIF(H3:H38,"*NPRP
>> served*"); but it stops counting if there is too much text before the
>> target text appears.
>>
>> Why does this happen and how do I get round it?
>>
>> Please help.
>
>
> Try this array formula (use CTRL+SHIFT+ENTER):
>
> =COUNT(--(FIND("NPRP served",H3:H38)>0))

And without the ">0", the "--" also can be dropped, leaving you with this:

=COUNT(FIND("NPRP served",H3:H38))
Back to top
Login to vote
Ron Rosenfeld

External


Since: Aug 26, 2003
Posts: 2167



(Msg. 5) Posted: Mon Nov 03, 2008 10:42 am
Post subject: Re: COUNTIF STOPS COUNTING [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

On Mon, 3 Nov 2008 07:07:01 -0800, bashtherat
<bashtherat.DeleteThis@discussions.microsoft.com> wrote:

>I used the following formula to count the number of times "NPRP served"
>appears in a worksheet column: =COUNTIF(H3:H38,"*NPRP served*"); but it stops
>counting if there is too much text before the target text appears.
>
>Why does this happen and how do I get round it?
>
>Please help.


Shouldn't happen, unless you're running into a limit on the number of
characters in the cell, in which case the value wouldn't be there.

Please give example of an instance how this fails.
--ron
Back to top
Login to vote
Glenn

External


Since: Jun 26, 2008
Posts: 304



(Msg. 6) Posted: Mon Nov 03, 2008 10:42 am
Post subject: Re: COUNTIF STOPS COUNTING [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Ron Rosenfeld wrote:
> On Mon, 3 Nov 2008 07:07:01 -0800, bashtherat
> <bashtherat DeleteThis @discussions.microsoft.com> wrote:
>
>> I used the following formula to count the number of times "NPRP served"
>> appears in a worksheet column: =COUNTIF(H3:H38,"*NPRP served*"); but it stops
>> counting if there is too much text before the target text appears.
>>
>> Why does this happen and how do I get round it?
>>
>> Please help.
>
>
> Shouldn't happen, unless you're running into a limit on the number of
> characters in the cell, in which case the value wouldn't be there.
>
> Please give example of an instance how this fails.
> --ron


Anything over 255 characters is not found by COUNTIF.
Back to top
Login to vote
Ron Rosenfeld

External


Since: Aug 26, 2003
Posts: 2167



(Msg. 7) Posted: Mon Nov 03, 2008 12:21 pm
Post subject: Re: COUNTIF STOPS COUNTING [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

On Mon, 03 Nov 2008 10:24:17 -0600, Glenn <address DeleteThis @not.valid> wrote:

>Ron Rosenfeld wrote:
>> On Mon, 3 Nov 2008 07:07:01 -0800, bashtherat
>> <bashtherat DeleteThis @discussions.microsoft.com> wrote:
>>
>>> I used the following formula to count the number of times "NPRP served"
>>> appears in a worksheet column: =COUNTIF(H3:H38,"*NPRP served*"); but it stops
>>> counting if there is too much text before the target text appears.
>>>
>>> Why does this happen and how do I get round it?
>>>
>>> Please help.
>>
>>
>> Shouldn't happen, unless you're running into a limit on the number of
>> characters in the cell, in which case the value wouldn't be there.
>>
>> Please give example of an instance how this fails.
>> --ron
>
>
>Anything over 255 characters is not found by COUNTIF.


It works fine in Excel 2007.

It must have been a limitation in earlier versions.
--ron
Back to top
Login to vote
Glenn

External


Since: Jun 26, 2008
Posts: 304



(Msg. 8) Posted: Mon Nov 03, 2008 12:21 pm
Post subject: Re: COUNTIF STOPS COUNTING [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Ron Rosenfeld wrote:
> On Mon, 03 Nov 2008 10:24:17 -0600, Glenn <address.DeleteThis@not.valid> wrote:
>
>> Ron Rosenfeld wrote:
>>> On Mon, 3 Nov 2008 07:07:01 -0800, bashtherat
>>> <bashtherat.DeleteThis@discussions.microsoft.com> wrote:
>>>
>>>> I used the following formula to count the number of times "NPRP served"
>>>> appears in a worksheet column: =COUNTIF(H3:H38,"*NPRP served*"); but it stops
>>>> counting if there is too much text before the target text appears.
>>>>
>>>> Why does this happen and how do I get round it?
>>>>
>>>> Please help.
>>>
>>> Shouldn't happen, unless you're running into a limit on the number of
>>> characters in the cell, in which case the value wouldn't be there.
>>>
>>> Please give example of an instance how this fails.
>>> --ron
>>
>> Anything over 255 characters is not found by COUNTIF.
>
>
> It works fine in Excel 2007.
>
> It must have been a limitation in earlier versions.
> --ron

Could be...I'm using 2003.
Back to top
Login to vote
Display posts from previous:   
       Home -> Office -> Worksheet Functions All times are: Eastern Time (US & Canada) (change)
Goto page 1, 2
Page 1 of 2

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Categories:
 Windows XP
 Windows Vista
 Windows Other
  Office
 Office Other
 Security
 WinRAR
  • Home |
  • Shareware |
  • Windows Tips |
  • Hot Offers |
  • FREE Newsletters |
  • Arcade |
  • Forums |
  • eBooks |
  • About WUGNET |
  • Partners |
  • Contact

  • WUGNET Privacy Policy |
  • Link to WUGNET