【问题标题】:Count data entries per day per person每人每天统计数据条目
【发布时间】:2020-01-12 13:01:59
【问题描述】:

我的员工将样本输入到我们的数据库中。这是由论坛完成的。我可以访问包含他们提供的所有信息的 Google 表格。他们每天输入多个条目。我试图找出谁是表现最好的人,谁在一天内进入了最多的条目。

如何让它搜索我的数据以告诉我此人的姓名以及他们每天输入的样本数量?

例如。

Tim= 15 entries on Sept 10 

John= 5 entries on Sept 10

Brian= 2 entries on sept 10 

Tim= 5 entries on sept 9

John= 20 entries sept 9

Brian= 1 entrie on sept 9 

我希望它查看列表并找出 9 日的 Johns 条目是最高的,它会输出我 johns 的姓名和 20 个条目。直到有一天有人输入超过 20 个条目时,它才会认为 john 是我的最佳表现者

【问题讨论】:

标签: sorting google-sheets filter google-sheets-formula google-sheets-query


【解决方案1】:

您可以使用QUERY 喜欢:

=QUERY(A:C, "order by C desc limit 1", 0)


=QUERY(B2:E, "select B,count(B) where B is not null group by B label count(B)''", 0)

=QUERY(B2:E, "select B,count(B) where B is not null group by B pivot E", 0)


=ARRAYFORMULA(QUERY(SPLIT(TRANSPOSE(QUERY(TRANSPOSE(QUERY(
 {B2:B&"♦"&TEXT(E2:E, "m/d/yyyy")}, 
 "select Col1,count(Col1) 
  where Col1 is not null 
  group by Col1 
  order by count(Col1) desc 
  label count(Col1)''", 0))&"♦",,999^99)), "♦"), 
 "limit 1 
  offset 1", 0))

【讨论】:

  • 不确定这对我有用。需要计算该名称在特定日期内出现的次数。我尝试重新加载我的示例
  • 确定:=ARRAYFORMULA(QUERY(SPLIT(TRANSPOSE(QUERY(TRANSPOSE(QUERY( {B2:B&"♦"&TEXT(E2:E, "m/d/yyyy")}, "select Col1,count(Col1) where Col1 is not null group by Col1 order by count(Col1) desc label count(Col1)''", 0))&"♦",,999^99)), "♦"), "limit 3 offset 1", 0))
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2018-08-28
  • 2018-09-10
  • 2018-11-15
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多