PC Review


Reply
Thread Tools Rate Thread

Countif Conditions - Use of conditions that vary by cell value

 
 
JonTarg
Guest
Posts: n/a
 
      30th May 2008
I want to count the number of cells in a range that are greater than a
particular number, which I have programmed excel to calculate and display in
a fixed cell.

Unfortunately, when I use that cell's reference in a countif (or countifs)
condition statement, the countif function ignores the cell value. If I
substitute the cell reference by the fixed numerical value in the countif
condition, the countif function calculates the desired value correctly.

Any suggestions about how to use a cell reference rather than a fixed
numerical value in the countif condition syntax?
 
Reply With Quote
 
 
 
 
Mike H
Guest
Posts: n/a
 
      30th May 2008
Try

=COUNTIF(A1:A8,"="&B1)
where B1 is the value you are counting

Mike

"JonTarg" wrote:

> I want to count the number of cells in a range that are greater than a
> particular number, which I have programmed excel to calculate and display in
> a fixed cell.
>
> Unfortunately, when I use that cell's reference in a countif (or countifs)
> condition statement, the countif function ignores the cell value. If I
> substitute the cell reference by the fixed numerical value in the countif
> condition, the countif function calculates the desired value correctly.
>
> Any suggestions about how to use a cell reference rather than a fixed
> numerical value in the countif condition syntax?

 
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
countif using two conditions NWO Microsoft Excel Misc 2 20th May 2009 12:47 AM
Using CountIf with 2 conditions - help! =?Utf-8?B?U2FyYWg=?= Microsoft Excel Worksheet Functions 6 23rd May 2006 07:18 PM
Countif with conditions =?Utf-8?B?TW9zcXVp?= Microsoft Excel Worksheet Functions 2 5th Dec 2005 04:10 AM
countif two conditions =?Utf-8?B?UGVubnk=?= Microsoft Excel Misc 4 27th May 2005 01:59 AM
COUNTIF CONDITIONS jeremiah256 Microsoft Excel Worksheet Functions 4 23rd Dec 2003 08:52 PM


Features
 

Advertising
 

Newsgroups
 


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