Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how to count instances between a range in libre office calc 4

I have a range of numbers in a1:80. I want to count the total number of values in a1:a80 that fall between X and Y e.g.

Value X = 30000 value Y = 35000

cell a1 = 34000 cell a42 = 33000

Goal: The formula will tell me that there are 2(two) instances in a1:a80 that have a value between X and Y.

I've tried a variety of combos as below:

=COUNTIF(OR($A1:$A80,"<="&V4)$a1$a80,">="&V3)

and

=IF(OR(">="&V3,"<="&W3),"there are COUNT(1)","there are COUNT(0)")

Here's the video: http://www.youtube.com/watch?v=SKKmlSENNLM

and here's the spreadsheet: https://plus.google.com/116948076340592829238/posts/6dDtKuEebNm

Thank you for considering this problem worthy of your time.

like image 335
pleabargain Avatar asked Aug 11 '13 12:08

pleabargain


1 Answers

You may use COUNTIFS, the multi-range, multi-criterion alternative to COUNTIF:

=COUNTIFS(A1:A80;">="&$V$3;A1:A80;"<="&$V$4)

like image 58
DaN Avatar answered Oct 01 '22 01:10

DaN