#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 19
Default COUNTIF oddity

Hi All

Im sure this must be very simple but..
I have got a column of integer numbers (formatted general), say A1:A20
I just want to count the number of cells with values greater than a certain
figure (integer stored in a different cell, say B1)
But =COUNTIF(A1:A20,"B1") incorrectly returns a value of zero.
=COUNTIF(A1:A20,6) works OK .....as does =COUNTIF(A1:A20,B1), but I want
B1.

Even Excel (Insert|Function|Countif) puts the syntax as
=COUNTIF(A1:A20,"B1").

Help appreciated

Phil

Excel 2003.



  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 11,501
Default COUNTIF oddity

Phil,

Try:-

=COUNTIF(A1:A20,""&B1)

Mike

"Phil C" wrote:

Hi All

Im sure this must be very simple but..
I have got a column of integer numbers (formatted general), say A1:A20
I just want to count the number of cells with values greater than a certain
figure (integer stored in a different cell, say B1)
But =COUNTIF(A1:A20,"B1") incorrectly returns a value of zero.
=COUNTIF(A1:A20,6) works OK .....as does =COUNTIF(A1:A20,B1), but I want
B1.

Even Excel (Insert|Function|Countif) puts the syntax as
=COUNTIF(A1:A20,"B1").

Help appreciated

Phil

Excel 2003.




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
A rounding oddity Bernard Liengme Excel Worksheet Functions 8 December 28th 06 07:07 AM
Excel oddity Dave B. Excel Discussion (Misc queries) 1 November 3rd 06 06:08 PM
An oddity if not a bug Harlan Grove Excel Worksheet Functions 21 July 17th 06 05:36 PM
Chart oddity Ron P Charts and Charting in Excel 2 February 16th 06 03:05 PM
Another Excel oddity Steve Excel Discussion (Misc queries) 5 January 5th 05 08:50 PM


All times are GMT +1. The time now is 11:54 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"