我正在使用 TI-nspire 电子表格
我想找到大于 5 且小于 10 的值的个数
数字存储在名为“数据”的列中,也存储在单元格 A1 到 A5 中
数字是{7,4,25,39,9},我们可以在任何公式中使用单词data或A1:A5甚至{7,4,25,39,9}
来回忆它我知道答案是 2,但这是一个简化的例子,所以我可以找到正确的公式来解决更难的问题
(https://i.sstatic.net/7DUXlceK.png)
我尝试了所有这些命令,即使我添加或删除引号或添加此符号“≥”,它们仍然显示 0 或语法错误,是我错误地使用了此函数还是有其他函数可以满足我的需要? (https://i.sstatic.net/e8f3J2Nv.png)(https://i.sstatic.net/26pQpQZM.png)
countIf(A1:A5, ">5") - countIf(A1:A5, ">=10")
输出:0
countIf(A1:A5, >5) - countIf(A1:A5, >=10)
输出:语法错误
countIf({7,4,25,39,9}, ">5") - countIf({7,4,25,39,9}, ">=10")
输出:0
countIf({7,4,25,39,9}, >5) - countIf({7,4,25,39,9}, >=10)
输出:语法错误
countIf(data, ">5") - countIf(data, ">=10")
输出:0
countIf(data, >5) - countIf(data, >=10)
输出:语法错误
count(A1:A5, ">5") - count(A1:A5, ">=10")
输出:0
count(A1:A5, >5) - count(A1:A5, >=10)
输出:语法错误
count({7,4,25,39,9}, ">5") - count({7,4,25,39,9}, ">=10")
输出:0
count({7,4,25,39,9}, >5) - count({7,4,25,39,9}, >=10)
输出:语法错误
count(data, ">5") - count(data, ">=10")
输出:0
count(data, >5) - count(data, >=10)
输出:语法错误
countif(a1:a5,">5")-countif(a1:a5,"≥10")
输出:0
countif(a1:a5,>5)-countif(a1:a5,≥10)
输出:语法错误
我已经取得了一些进展,并使用 when 函数来获得正确的答案并做出了这个,它做了所需的事情,并给出了正确的答案,但如果样本量大得多,比如 60 或 100,那就是时候了消耗编写相同命令 100 次,如果有更好或更快的方法请纠正我
=when(a1>5 and a1<10,1,0)+when(a2>5 and a2<10,1,0)+when(a3>5 and a3<10,1,0)+when(a4>5 and a4<10,1,0)+when(a5>5 and a5<10,1,0)