如何提取值,然后从数据集中提取平均值

时间:2014-01-31 19:44:11

标签: excel shell

您好我在文本文件中设置了以下数据:

#1|30|1390683923|3000|5|00:1a:1e:87:04:d0|Nexus 4, 4.4, MAKOZ30d
$1|1390683926
?[24.32846, 1.1096518, 7.2424746]
%eaglenet|00:1a:1e:87:04:d0|-66|5785
%eduroam|00:1a:1e:87:04:42|-59|2412
%UNT|00:1a:1e:87:04:d1|-68|5785
%eduroam|00:1a:1e:87:04:d2|-66|5785
%UNT|00:1a:1e:85:a4:11|-71|5200
%eduroam|00:1a:1e:85:a4:12|-70|5200
%eduroam|00:1a:1e:87:04:c2|-70|2462
%eduroam|00:1a:1e:85:a4:02|-68|2462
%UNT|00:1a:1e:87:04:51|-71|5745
%eduroam|00:1a:1e:87:04:52|-69|5745
%eduroam|00:24:6c:c1:c1:82|-70|2437
%eduroam|00:1a:1e:8e:e9:a2|-77|2437
%UNT|00:1a:1e:8e:e9:b1|-79|5180
%UNT|00:24:6c:c1:c1:81|-70|2437
%eduroam|00:1a:1e:8e:e9:b2|-80|5180
%eduroam|00:1a:1e:84:92:02|-72|2437
%UNT|00:24:6c:c1:c1:91|-82|5220
%eduroam|00:1a:1e:8d:f7:b2|-86|5240
%eduroam|00:24:6c:c1:c1:92|-83|5220
%UNT|00:1a:1e:8d:f7:b1|-88|5240
%eduroam|00:1a:1e:87:03:e2|-86|2437
%eaglenet|00:1a:1e:85:a4:10|-70|5200
%|00:1a:1e:85:a4:13|-76|5200
%eaglenet|00:1a:1e:87:04:50|-69|5745
%eaglenet|00:24:6c:c1:c1:80|-69|2437
%eaglenet|00:1a:1e:8e:e9:b0|-78|5180
%|00:24:6c:c1:c1:93|-81|5220
%eaglenet|00:24:6c:c1:c1:90|-81|5220

我需要做的是提取mac地址,并为每一行提供相应的信号强度。 mac地址在数据集中重复,所以除了提取Mac地址和信号强度之外,还需要重复每个mac地址的信号强度平均值。

可以使用任何程序

关于如何实现这一目标的任何想法?

谢谢

1 个答案:

答案 0 :(得分:1)

将数据粘贴到Excel中并使用“|”对粘贴的数据执行“文本到列”操作字符作为分隔符将为您分离数据。然后,您可以使用AVERAGEIF公式来确定每个MAC地址的平均信号强度。这应该让你至少开始。

以下是您的一些文档:

文字到列:http://support.microsoft.com/kb/214261

AVERAGEIF函数:http://office.microsoft.com/en-us/excel-help/averageif-function-HA010047433.aspx

修改的 或者,您可以使用数据透视表,而不是执行AVERAGEIF,并按平均值汇总值字段中的信号强度数据。