每人报名项目多少不一,到底有多少人报名?
时间:2023-11-21 12:03:14
今天是我们学校一位学生,统计班级有多少人报名参加运动会比赛。有的学生报了一个项目,有的报了两个,还有报了三个,这么多学生这么多项目,他数也数不过来,于是问有没有公式?
把数据简化如下:
其实,这就是统计有多少个不重复值的问题。
公式实现
在D2中输入公式:
=SUMPRODUCT(1/COUNTIF($A$2:$A$16,$A$2:$A$16))
即可统计出报名人数:
公式解析
COUNTIF($A$2:$A$16,$A$2:$A$16)
在区域A2:A16依次查找A2—A16各个单元格出现的次数,组成一数组:
{3;4;3;2;2;4;1;3;3;4;2;4;3;2;3};
1/COUNTIF($A$2:$A$16,$A$2:$A$16)
用1除以数组中的每一值,组成新的数组:{1/3;1/4;1/3;1/2;1/2;1/4;1;1/3;1/3;1/4;1/2;1/4;1/3;1/2;1/3};
SUMPRODUCT(1/COUNTIF($A$2:$A$16,$A$2:$A$16))
将上述数组内的值相加,即得总人数。
标签:Excel函数,excel函数公式,excel表格制作,Excel教程
![](/images/zang.png)
![](/images/jiucuo.png)
猜你喜欢
央视频怎么投屏电视看2022世界杯直播视频?
2023-12-06 03:12:36
![](https://img.aspxhome.com/file/2023/7/a327278_0s.png)
AE入门教程-ae制作加载动画
2023-01-15 09:36:51
![](https://img.aspxhome.com/file/2023/3/a211843_0s.gif)
百度网盘如何转存文件?百度网盘转存文件的方法
2022-08-02 01:33:32
![](https://img.aspxhome.com/file/2023/7/a327080_0s.png)
笔记本电脑一直卡在重新启动界面怎么解决?
2022-07-22 12:56:16
![](https://img.aspxhome.com/file/2023/26/a220350_0s.png)
Win10屏幕截图成功后去哪里找? 修改截图保存位置的详细教程
2023-03-19 23:02:53
Win11不会弹出外置硬盘怎么办?看看以下修复方法
2022-05-29 13:40:19
![](https://img.aspxhome.com/file/2023/27/a235738_0s.png)
网站处于联机状态,但未对连接尝试做出响应
2022-04-11 13:47:24
![](https://img.aspxhome.com/file/2023/9/a342516_0s.png)
微软发布神秘Win8.1补丁 修复OneDrive/时区
2022-01-15 04:33:26
![](https://img.aspxhome.com/file/2023/29/a253677_0s.jpg)
Windows 10要杀死盗版:杜绝相关内容传输
2022-07-20 00:29:15
![](https://img.aspxhome.com/file/2023/3/a300433_0s.jpg)
Win10更新遇到问题提示"你需要关注的事项"怎么解决?
2022-07-27 09:04:38
![](https://img.aspxhome.com/file/2023/26/a221407_0s.png)
Win7旗舰版如何解决当前页面的脚本发生错误的问题?
2022-11-07 12:56:53
![](https://img.aspxhome.com/file/2023/26/a229011_0s.jpg)
如何查询Win10电脑DNS地址?Win10电脑查询DNS地址的两种方法
2023-10-20 07:36:11
![](https://img.aspxhome.com/file/2023/28/a247421_0s.jpg)
Windows系统虚拟内存太低的解决措施
2023-02-04 14:34:38
![](https://img.aspxhome.com/file/2023/3/a294291_0s.png)
win7怎么修改开机密码(最快) win7修改开机密码最便捷的方法
2023-07-30 03:10:12
![](https://img.aspxhome.com/file/2023/28/a242757_0s.jpg)
os x10.10.3beta5官网下载 yosemite10.10.3beta5下载地址
2023-10-30 17:53:48
![](https://img.aspxhome.com/file/2023/4/a215144_0s.png)
方正笔记本安装系统win11教程
2022-02-15 06:57:41
![](https://img.aspxhome.com/file/2023/30/a268233_0s.png)
Win7一直反复重启怎么办?Win7系统反复重启怎么解决?
2022-08-18 15:24:16
![](https://img.aspxhome.com/file/2023/1/a276118_0s.jpg)
怎样在Excel中插入LEFT函数?
2023-04-17 07:01:34
![](https://img.aspxhome.com/file/2023/2/42752_0s.jpg)
Win10如何打造个性化的Dock栏?
2022-09-20 00:35:08
![](https://img.aspxhome.com/file/2023/26/a225356_0s.jpg)
WinXP系统explorer.exe出错的原因及解决方法
2022-06-12 12:32:06