仅输出出现次数 > 2 的值
output only values with occurence > 2
我想在 B 列中放入 A 列中出现次数 > 2 的所有值。
例如:如果 "john doe" 在 A 列中出现超过 2 次,则在 B 列中打印 "John Doe"。
有什么想法吗?我想在索引函数中嵌套一个 countif,但我正在努力解决它。
谢谢!
在(google 电子表格的单元格 B1 中)尝试:
=query(query(if({1,1}, A2:A), "select Col1, count(Col2) where Col1 <>'' group by Col1"), "select Col1 where Col2 >= 2")
或取决于您的语言环境:
=query(query(if({1}; A2:A); "select Col1, count(Col2) where Col1 <>'' group by Col1"); "select Col1 where Col2 >= 2")
看看是否有效?
我想在 B 列中放入 A 列中出现次数 > 2 的所有值。
例如:如果 "john doe" 在 A 列中出现超过 2 次,则在 B 列中打印 "John Doe"。
有什么想法吗?我想在索引函数中嵌套一个 countif,但我正在努力解决它。
谢谢!
在(google 电子表格的单元格 B1 中)尝试:
=query(query(if({1,1}, A2:A), "select Col1, count(Col2) where Col1 <>'' group by Col1"), "select Col1 where Col2 >= 2")
或取决于您的语言环境:
=query(query(if({1}; A2:A); "select Col1, count(Col2) where Col1 <>'' group by Col1"); "select Col1 where Col2 >= 2")
看看是否有效?