#1   Report Post  
Ajit Munj
 
Posts: n/a
Default countif - ajit

In Excel 2000, I have used formula :
=countif(Muster!$M5:$M283,D5)
where Muster is a sheet and range M5:M283 contains newspaper
name like TOI, FE, ECO, LS etc.(abbreviations for newspaper full
name). But this formula is showing wrong result for TOI as 20
whereas when manually checked total TOI are more than 50 in
the said range. Surprisingly, when I delete any TOI string in the
said range from M5:M283, immediately the result shows 19.
Where am I going wrong?
--
Knowldege is Power
  #2   Report Post  
Max
 
Posts: n/a
Default

=countif(Muster!$M5:$M283,D5)

Try instead: =SUMPRODUCT(--(TRIM(Muster!$M$5:$M$283)=D5))

The TRIM() should help remove any extraneous white spaces within the source
range: Muster!$M$5:$M$283, which are probably the culprits fouling up the
correct matching / count
--
Rgds
Max
xl 97
---
GMT+8, 1° 22' N 103° 45' E
xdemechanik <atyahoo<dotcom
----
"Ajit Munj" wrote in message
...
In Excel 2000, I have used formula :
=countif(Muster!$M5:$M283,D5)
where Muster is a sheet and range M5:M283 contains newspaper
name like TOI, FE, ECO, LS etc.(abbreviations for newspaper full
name). But this formula is showing wrong result for TOI as 20
whereas when manually checked total TOI are more than 50 in
the said range. Surprisingly, when I delete any TOI string in the
said range from M5:M283, immediately the result shows 19.
Where am I going wrong?
--
Knowldege is Power



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 COMBINATION?? Heather Excel Worksheet Functions 1 April 26th 05 02:44 AM
Combining IF and COUNTIF based on two columns maxtrixx Excel Discussion (Misc queries) 5 March 31st 05 06:21 PM
COUNTIF in one colum then COUNTIF in another...??? JonnieP Excel Worksheet Functions 3 February 22nd 05 02:55 PM
Countif - Countif maswinney Excel Worksheet Functions 3 November 15th 04 11:06 PM
countif, again Liz G Excel Worksheet Functions 2 November 1st 04 11:20 PM


All times are GMT +1. The time now is 01:06 AM.

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

About Us

"It's about Microsoft Excel"