PC Review


Reply
Thread Tools Rate Thread

COUNTIF PROBLEM

 
 
manfred3
Guest
Posts: n/a
 
      19th Apr 2010
Hi,

I am using the countif formula in my spreadsheet to count the number
of times "DPRS" appears in say column G. for some reason it keeps
givong me the wrong answer i.e. instead of 29 I get 9 as the
answer.When I filter for "DPRS" I get 29. There are no blank cells in
between.

Thanks,

Manir

 
Reply With Quote
 
 
 
 
Mike H
Guest
Posts: n/a
 
      19th Apr 2010
Hi,

the answer may be spaces, try this

=SUMPRODUCT(--(TRIM(G1:G13)="DPRS"))

--
Mike

When competing hypotheses are otherwise equal, adopt the hypothesis that
introduces the fewest assumptions while still sufficiently answering the
question.


"manfred3" wrote:

> Hi,
>
> I am using the countif formula in my spreadsheet to count the number
> of times "DPRS" appears in say column G. for some reason it keeps
> givong me the wrong answer i.e. instead of 29 I get 9 as the
> answer.When I filter for "DPRS" I get 29. There are no blank cells in
> between.
>
> Thanks,
>
> Manir
>
> .
>

 
Reply With Quote
 
manfred3
Guest
Posts: n/a
 
      19th Apr 2010
On Apr 19, 9:28*am, manfred3 <manir.far...@googlemail.com> wrote:
> Hi,
>
> I am using the countif formula in my spreadsheet to count the number
> of times "DPRS" appears in say column G. for some reason it keeps
> givong me the wrong answer i.e. instead of 29 I get 9 as the
> answer.When I filter for "DPRS" I get 29. There are no blank cells in
> between.
>
> Thanks,
>
> Manir


i would appreciate aeply.
 
Reply With Quote
 
Pete_UK
Guest
Posts: n/a
 
      19th Apr 2010
Post the formula that you are using. Does it cover the correct range
of column G? Could you have spaces before or after some of those DPRS
values? You might like to try this:

=COUNTIF(G:G,"*DPRS*")

Hope this helps.

Pete

On Apr 19, 9:28*am, manfred3 <manir.far...@googlemail.com> wrote:
> Hi,
>
> I am using the countif formula in my spreadsheet to count the number
> of times "DPRS" appears in say column G. for some reason it keeps
> givong me the wrong answer i.e. instead of 29 I get 9 as the
> answer.When I filter for "DPRS" I get 29. There are no blank cells in
> between.
>
> Thanks,
>
> Manir


 
Reply With Quote
 
manfred3
Guest
Posts: n/a
 
      19th Apr 2010
On Apr 19, 12:43*pm, Pete_UK <pashu...@auditel.net> wrote:
> Post the formula that you are using. Does it cover the correct range
> of column G? Could you have spaces before or after some of those DPRS
> values? You might like to try this:
>
> =COUNTIF(G:G,"*DPRS*")
>
> Hope this helps.
>
> Pete
>
> On Apr 19, 9:28*am, manfred3 <manir.far...@googlemail.com> wrote:
>
>
>
> > Hi,

>
> > I am using the countif formula in my spreadsheet to count the number
> > of times "DPRS" appears in say column G. for some reason it keeps
> > givong me the wrong answer i.e. instead of 29 I get 9 as the
> > answer.When I filter for "DPRS" I get 29. There are no blank cells in
> > between.

>
> > Thanks,

>
> > Manir- Hide quoted text -

>
> - Show quoted text -


Hi Pete,

Thanks for your reply.

This is just what was needed.

Regards,

Manir
 
Reply With Quote
 
Pete_UK
Guest
Posts: n/a
 
      19th Apr 2010
You're welcome, Manir - thanks for feeding back.

Pete

On Apr 19, 12:54*pm, manfred3 <manir.far...@googlemail.com> wrote:
>
> Hi Pete,
>
> Thanks for your reply.
>
> This is just what was needed.
>
> Regards,
>
>

 
Reply With Quote
 
manfred3
Guest
Posts: n/a
 
      19th Apr 2010
Hi Pete,

No problem.

Manir



On Apr 19, 1:00*pm, Pete_UK <pashu...@auditel.net> wrote:
> You're welcome, Manir - thanks for feeding back.
>
> Pete
>
> On Apr 19, 12:54*pm, manfred3 <manir.far...@googlemail.com> wrote:
>
>
>
>
>
> > Hi Pete,

>
> > Thanks for your reply.

>
> > This is just what was needed.

>
> > Regards,- Hide quoted text -

>
> - Show quoted text -


 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Countif Problem Rob Microsoft Excel Misc 4 16th Feb 2010 03:31 PM
Countif Problem Mark W Microsoft Excel Worksheet Functions 2 21st Apr 2006 08:39 PM
Re: PROBLEM WITH COUNTIF TO REF. ANOTHER WK SHT Arvi Laanemets Microsoft Excel Misc 0 27th Jul 2004 06:36 PM
COUNTIF problem SUPAFLY Microsoft Excel Misc 7 28th Feb 2004 01:47 AM
countif problem ims Microsoft Excel Worksheet Functions 2 27th Oct 2003 03:55 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 12:02 PM.