A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » Worksheet Functions
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

COUNTIF PROBLEM



 
 
Thread Tools Display Modes
  #1  
Old April 19th, 2010, 09:28 AM posted to microsoft.public.excel.worksheet.functions
manfred3
external usenet poster
 
Posts: 5
Default COUNTIF PROBLEM

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

  #2  
Old April 19th, 2010, 10:37 AM posted to microsoft.public.excel.worksheet.functions
Mike H
external usenet poster
 
Posts: 8,419
Default COUNTIF PROBLEM

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

.

  #3  
Old April 19th, 2010, 12:41 PM posted to microsoft.public.excel.worksheet.functions
manfred3
external usenet poster
 
Posts: 5
Default COUNTIF PROBLEM

On Apr 19, 9:28*am, 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


i would appreciate aeply.
  #4  
Old April 19th, 2010, 12:43 PM posted to microsoft.public.excel.worksheet.functions
Pete_UK
external usenet poster
 
Posts: 8,780
Default COUNTIF PROBLEM

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 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


  #5  
Old April 19th, 2010, 12:54 PM posted to microsoft.public.excel.worksheet.functions
manfred3
external usenet poster
 
Posts: 5
Default COUNTIF PROBLEM

On Apr 19, 12:43*pm, Pete_UK 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 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
  #6  
Old April 19th, 2010, 01:00 PM posted to microsoft.public.excel.worksheet.functions
Pete_UK
external usenet poster
 
Posts: 8,780
Default COUNTIF PROBLEM

You're welcome, Manir - thanks for feeding back.

Pete

On Apr 19, 12:54*pm, manfred3 wrote:

Hi Pete,

Thanks for your reply.

This is just what was needed.

Regards,


  #7  
Old April 19th, 2010, 02:10 PM posted to microsoft.public.excel.worksheet.functions
manfred3
external usenet poster
 
Posts: 5
Default COUNTIF PROBLEM

Hi Pete,

No problem.

Manir



On Apr 19, 1:00*pm, Pete_UK wrote:
You're welcome, Manir - thanks for feeding back.

Pete

On Apr 19, 12:54*pm, manfred3 wrote:





Hi Pete,


Thanks for your reply.


This is just what was needed.


Regards,- Hide quoted text -


- Show quoted text -


 




Thread Tools
Display Modes

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

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 03:17 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.