PC Review


Reply
Thread Tools Rate Thread

Counting problem

 
 
Portocar
Guest
Posts: n/a
 
      20th Mar 2008
I am trying to count all the numbers in a column that equal or exceed a
number that is entered manually in an individual cell (A1). But the countif
function does not work unless I enter the number directly into the formula.
For example:

Assume there is the number 5 in cell A1. I want to count how many cells in
range A4:A20 contain a number equal to or greater than the number in cell A1.
When I enter the following formula in Cell A21 it returns "0" even though
there are some cells in the column A4:A20 that contain a number equal to or
greater than 5.

The formula I enter in cell A21 is:

countif(A4:a20,">=A1")

This formula does not work unless I replace the cell reference "A1" with the
number I am using as the hurdle number - in this case the number is 5.

Is there some way to count the numbers in a column by making the count
function use a number in a defined cell as the hurdle number?

 
Reply With Quote
 
 
 
 
Jim Cone
Guest
Posts: n/a
 
      20th Mar 2008

=COUNTIF(A4:A20,">=" &A1)
--
Jim Cone
San Francisco, USA
http://www.realezsites.com/bus/primitivesoftware
(Excel Add-ins / Excel Programming)



"Portocar"
wrote in message
I am trying to count all the numbers in a column that equal or exceed a
number that is entered manually in an individual cell (A1). But the countif
function does not work unless I enter the number directly into the formula.
For example:

Assume there is the number 5 in cell A1. I want to count how many cells in
range A4:A20 contain a number equal to or greater than the number in cell A1.
When I enter the following formula in Cell A21 it returns "0" even though
there are some cells in the column A4:A20 that contain a number equal to or
greater than 5.

The formula I enter in cell A21 is:

countif(A4:a20,">=A1")

This formula does not work unless I replace the cell reference "A1" with the
number I am using as the hurdle number - in this case the number is 5.
Is there some way to count the numbers in a column by making the count
function use a number in a defined cell as the hurdle number?

 
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
Problem with counting MikeA Microsoft Access Reports 5 10th Mar 2008 03:29 PM
Counting Problem peter_rivera Microsoft Excel Misc 1 16th Sep 2005 09:19 PM
counting problem LucasBuck Microsoft Excel Misc 4 13th Sep 2005 05:18 PM
a counting problem, please help!! p3project Microsoft Excel Misc 3 27th Mar 2004 03:00 PM
Counting problem vwchurch1955 Microsoft Excel Misc 2 28th Nov 2003 12:09 PM


Features
 

Advertising
 

Newsgroups
 


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