Quantcast
Channel: Hot Weekly Questions - Web Applications Stack Exchange
Viewing all articles
Browse latest Browse all 9843

How to include a formula as part of the criterion when using COUNTIF?

$
0
0

I am looking to count how many values are higher than the average of the values listed.

A
150
240
330
420
510

Total: 150
Average: 30

=COUNTIF(A1:A5,">30")         Answer: 2

How could I replace the ">30" with a formula?

I tried the following with no success:

=COUNTIF(A1:A5,""">"&AVERAGE(A1:A5)&"""")=COUNTIF(A1:A5,textjoin("",TRUE,""">",AVERAGE(A1:A5),"""")

Viewing all articles
Browse latest Browse all 9843

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>