Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我希望将多个计数从具有多个值的列中提取到一个迷你图表中。我正在尝试用一个公式来做到这一点。它最终看起来像这样:
有没有办法用一个公式来做这个?谢谢您的帮助!
为了完整起见,您可以在语句中使用count()运算符和group by谓词QUERY来计算列的出现次数。
count()
group by
QUERY
样本:
使用=QUERY(A1:B6,"select A,count(B) group by A",1)
=QUERY(A1:B6,"select A,count(B) group by A",1)
参考:
询问()
查询语言参考