countif with formula results

msampson

Board Regular
Joined
Mar 9, 2004
Messages
129
Office Version
  1. 365
Platform
  1. MacOS
I'm trying to countif any number in a column 10,000 rows deep is greater than, say 120. But, the 120 is generated by a formula, AND, the numbers are randomly generated. This means that the numbers in the columns are actually formulas. I can see numbers greater than 120 but my countif returns zero. What do I need to do to make it interpret the result of the formula without pasting the actual values since I want to keep the form dynamic?
Thinking about it, I do actually want to know how many total are above the cutoff so maybe something is better than a single countif at the top of the column.
 

Excel Facts

Get help while writing formula
Click the italics "fx" icon to the left of the formula bar to open the Functions Arguments dialog. Help is displayed for each argument.
msampson,

This should be relatively easy based on my interpretation. Would you mind posting the formula of how the '120' is calculated.

Thanks,

Bill
 
Upvote 0
msampson,

This should be relatively easy based on my interpretation. Would you mind posting the formula of how the '120' is calculated.

Thanks,

Bill

There are a bunch of formulas cascading one to another but the one in this column is

=IF($A9<=$F$2,IF($E9<0,"",IF(I9<$D$4,$D$4,IF(I9>$E$4,$E$4,I9))),"")

I'm creating a histogram and I need to count how many values are above a cutoff value. For purposes of this example it's 120 but I'll be changing error amounts and generating different cutoff values. So that formula I just posted is checking to be sure the value isn't above or below the max or min of the expected range. The original data is a set of random numbers constrained into a normal distribution with a given mean and standard deviation.
So, I don't want to sum the values, just count the number greater than the cutoff.
 
Upvote 0
I figured it out.

I put the formula generating the cutoff into G2 and in the cell at the top of the column I want to count I have this syntax: =COUNTIF(J9:J10008,">"&$G$2)

The combination of the quotes and the ampersand makes it work.
 
Upvote 0

Forum statistics

Threads
1,223,227
Messages
6,170,848
Members
452,361
Latest member
d3ad3y3

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top