【问题标题】:Calculate average in excel for different items在excel中计算不同项目的平均值
【发布时间】:2018-01-15 18:02:47
【问题描述】:

我有关于我从数据库中提取的网络性能测量的信息,该表真的很长,我不允许我按每个测试类别分组然后计算每个测试的平均值,所以我提取了每个测量的优秀信息,现在我需要通过测试取平均值,我可以使用哪个公式?

18707   Ping - Average - VALVE:dsl  196
18651   Ping - Average - Internacional (www.terremark.com):dsl  150
18689   Ping - Average - League of Legends (prod.euw1.lol.riotgames.com):dsl    22
3914    Ping - Average - Internacional (www.terremark.com)  156
14737   Ping - Average - Internacional (neutralidad-internacional.movistarplay.cl):fija 106
15213   Ping - Average - Internacional (www.terremark.com):fija 137
15283   Ping - Average - League of Legends (prod.euw1.lol.riotgames.com):fija   218
27445   Ping - Average - Internacional (www.terremark.com):movil    157
27483   Ping - Average - League of Legends (prod.euw1.lol.riotgames.com):movil  248
6109    Ping - Average - Internacional (www.terremark.com)  143
6144    Ping - Average - League of Legends (prod.euw1.lol.riotgames.com)    244
22259   Ping - Average - DNS Resolution ( 200.175.89.139 )  48
22250   Ping - Average - DNS Resolution ( 200.175.5.139 )   37
14167   Ping - Average - DNS - GVT  39
2710    Ping - Average - Internacional (www.terremark.com)  210
21047   Ping - Average Latency - Blizzard (HeartStone)  50
7250    Ping - Average Latency - Internacional (www.terremark.com)  147
7286    Ping - Average Latency - League of Legends (prod.euw1.lol.riotgames.com)    39
3061    Ping - Average - Internacional (neutralidad-internacional.movistarplay.cl)  130
3061    Ping - Average - Internacional (neutralidad-internacional.movistarplay.cl)  120
15213   Ping - Average - Internacional (www.terremark.com):fija 132
15283   Ping - Average - League of Legends (prod.euw1.lol.riotgames.com):fija   229
12237   Ping - Average - VALVE  184
5182    Ping - Average - Internacional (www.terremark.com)  132
5201    Ping - Average - League of Legends (prod.euw1.lol.riotgames.com)    15
3304    Ping - Average - Internacional (www.terremark.com)  124
6424    Ping - Average - Internacional (www.terremark.com)  116
30047   Ping - Average - Netflix 1080:sin NF    42
27037   Ping - Average - YouTube 1080p:sin NF   68
27027   Ping - Average - YouTube 4K:sin NF  69
27017   Ping - Average - YouTube 720p:sin NF    70
27007   Ping - Average - YouTube Automatic Quality:sin NF   68
26997   Ping - Average - Internacional (www.terremark.com):sin NF   169
22259   Ping - Average - DNS Resolution ( 200.175.89.139 )  21
22250   Ping - Average - DNS Resolution ( 200.175.5.139 )   21
14167   Ping - Average - DNS - GVT  79
2710    Ping - Average - Internacional (www.terremark.com)  192
6109    Ping - Average - Internacional (www.terremark.com)  194
6144    Ping - Average - League of Legends (prod.euw1.lol.riotgames.com)    441
22259   Ping - Average - DNS Resolution ( 200.175.89.139 )  19
22250   Ping - Average - DNS Resolution ( 200.175.5.139 )   8
14167   Ping - Average - DNS - GVT  8
2710    Ping - Average - Internacional (www.terremark.com)  172
6109    Ping - Average - Internacional (www.terremark.com)  307
6144    Ping - Average - League of Legends (prod.euw1.lol.riotgames.com)    348
15213   Ping - Average - Internacional (www.terremark.com):fija 194
15283   Ping - Average - League of Legends (prod.euw1.lol.riotgames.com):fija   292
14737   Ping - Average - Internacional (neutralidad-internacional.movistarplay.cl):fija 117
27445   Ping - Average - Internacional (www.terremark.com):movil    157
27483   Ping - Average - League of Legends (prod.euw1.lol.riotgames.com):movil  251
18707   Ping - Average - VALVE:dsl  204

请注意,第一列是标识该测试的主键,第二列是测试的名称,第三列是该测试的值。

我需要计算平均值,但不是整张纸而是每个测试的平均值。

【问题讨论】:

  • 我希望对最右边的数字进行平均,并将其与监视器匹配,而忽略所有其他,例如,第一行包括监视器 ID 18707,最后一行也是监视器 ID 18707,我想平均 196 和 204 并忽略其他的,以及每个测试的平均值。
  • 您可以添加一个额外的列,使用AVERAGEIF,然后选择整个表并使用监控列的“删除重复项”
  • @pnuts:是的,每个监视器的结果。
  • @GalAbra:在我选择整个表格后,删除重复项选项不可用
  • @DavidSalasBoscan 不可用或未按预期工作?

标签: excel excel-formula


【解决方案1】:

您可以添加一个额外的列,然后放入每个单元格:

=AVERAGEIF(A:A, A1, B:B)
  • A:A - 监控专栏
  • A1 - 添加到平均值的单元格(数字代表行)
  • B:B - 要平均的列

然后选择整个表并使用监控列的“删除重复项”。

【讨论】:

  • @DavidSalasBoscan 你调整了列吗?也许您的监控列单元格之一是空的?
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2019-12-23
  • 1970-01-01
  • 2022-11-15
相关资源
最近更新 更多