Hi Everyone
OK, I want to do a count of numbers in a column that meet a certain criteria. The criteria needs to be an inequality.
(for instance count the number of values in the column whose value is greater than or equal to 25.) The threshold value of the inequality needs to be based on a cell reference. The COUNTIF worksheet function will only work with an inequality if you place a value in the formula (i.e =COUNTIF(B1:B21,">=25)") rather than a cell reference. (It works fine if you want to count values that are equal to the value of the cell reference.)
I've been able to code a counter in VBA that works OK, but is there an Excel function that will do this for me? I've been through every one of my Excel Book and the helpfiles to no avail.
Any Thoughts??
Cheers!
Steve
OK, I want to do a count of numbers in a column that meet a certain criteria. The criteria needs to be an inequality.
(for instance count the number of values in the column whose value is greater than or equal to 25.) The threshold value of the inequality needs to be based on a cell reference. The COUNTIF worksheet function will only work with an inequality if you place a value in the formula (i.e =COUNTIF(B1:B21,">=25)") rather than a cell reference. (It works fine if you want to count values that are equal to the value of the cell reference.)
I've been able to code a counter in VBA that works OK, but is there an Excel function that will do this for me? I've been through every one of my Excel Book and the helpfiles to no avail.
Any Thoughts??
Cheers!
Steve