我有以下数据:
22.43
6.27
8.34
0
14.28
0.81
2.31
27.23
4.46
0.3
由此我计算四分位数如下:
min 25th 50th 75th MaX
0 1.185 5.365 12.795 27.23
1st Quartile.
2nd Quartile.
3rd Quartile.
4th Quartile.
现在,对于每个值,我需要找出它所处的四分位数。 所以预期的产出。
22.43 4th Quartile
6.27 3rd Quartile
8.34 3rd Quartile
0 1st Quartile
14.28 4th Quartile
0.81 1st Quartile
2.31 2nd Quartile
27.23 4th Quartile
4.46 2nd Quartile
0.3 1st Quartile
我的Excel工作表的快照:
有人可以帮我在excel中做这件事。
答案 0 :(得分:1)
您可以使用如下所示的LOOKUP构造来完成此操作。假设您的数据在单元格A2中,以下公式应该适合您。
=LOOKUP(A2,{0,1.185,5.365,12.795},{"1st","2nd","3rd","4th"})&" Quartile"
答案 1 :(得分:0)
如果您的数组在A1中开始,在D2中并在以下位置复制:
register(user): Observable<any> {
return this.http.post('/api/user', JSON.stringify(user), this.options);
}
email(user){
var headers = new Headers();
var creds = 'emailid=' + user.email ;
var emailid = 'emailid=' + user.email;
headers.append('Content-Type', 'application/X-www-form-urlencoded');
this.http.post('http://localhost:3000/sendmail', emailid, {headers: headers}).subscribe((data) => {
if(data.json().success) {
console.log('Sent successfully');
}
})
}
然后使用没有第四个参数的HLOOKUP。