在 openrefine 或 libre office 中汇总和平均数据

问题描述

我有这种格式的数据:

数字 姓名 日期
10 约翰 2020-01-01
12 2020-01-01
9 约翰 2020-01-02
10 2020-01-02

如何对具有特定名称的所有行的 Number 单元格的值求和,以及如何为每个名称求平均值?

谢谢!

解决方法

在 LibreOffice Calc 中,例如,如果 10 在单元格 A2 中:

=SUMIF(B2:B5;"=John";A2:A5)
=AVERAGEIF(B2:B5;"=John";A2:A5)

结果:

19
9.5

相关问答

错误1:Request method ‘DELETE‘ not supported 错误还原:...
错误1:启动docker镜像时报错:Error response from daemon:...
错误1:private field ‘xxx‘ is never assigned 按Alt...
报错如下,通过源不能下载,最后警告pip需升级版本 Requirem...