(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.
(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.
(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.
(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:
(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
(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.
(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
(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
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