我应该在 google sheet 到 select 数据中使用什么查询
what query should I use in my google sheet to select data
我有以下格式的数据。
我想select2018年有多少event_type
"Battles"。我试过这个查询=QUERY(Sheet1!A1:C3122;"select A, count(B) group by A")
但结果不是我所期望的
这是 sheet.
我应该在 Google sheet 中使用什么查询?
试试下面的公式
=QUERY(A1:C10,"Select Count(A) Where A = 2018 AND B='Battles' label count(A) 'Total Event - Battles'")
根据您的要求更改标签文本和数据范围
我有以下格式的数据。
我想select2018年有多少event_type
"Battles"。我试过这个查询=QUERY(Sheet1!A1:C3122;"select A, count(B) group by A")
但结果不是我所期望的
这是 sheet.
我应该在 Google sheet 中使用什么查询?
试试下面的公式
=QUERY(A1:C10,"Select Count(A) Where A = 2018 AND B='Battles' label count(A) 'Total Event - Battles'")
根据您的要求更改标签文本和数据范围