#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
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   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 11,501
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   Report Post  
Posted to microsoft.public.excel.worksheet.functions
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   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,856
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   Report Post  
Posted to microsoft.public.excel.worksheet.functions
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   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,856
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   Report Post  
Posted to microsoft.public.excel.worksheet.functions
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 -


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 Problem Rob Excel Discussion (Misc queries) 4 February 16th 10 03:31 PM
Problem with COUNTIF ... Mac Excel Worksheet Functions 1 November 6th 07 09:50 AM
countif problem Scott@CW Excel Discussion (Misc queries) 6 October 4th 07 02:41 PM
Problem w countif ingeman Excel Discussion (Misc queries) 2 July 17th 06 08:05 AM
Countif Problem Mark W Excel Worksheet Functions 2 April 21st 06 08:39 PM


All times are GMT +1. The time now is 08:56 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"