excel统计指定数字在区域中的出现次数
时间:2023-09-29 23:15:14
大家知道,Excel中的COUNTIF函数只能对区域中满足单个指定条件的单元格进行计数。如果要在一列包含文本格式数值的区域中统计某个数字出现的次数,就无法使用COUNTIF函数。这时可用下面的公式,假如数据在A2:A11区域中,要统计的数字在B2单元格。本例统计数字“0”在A2:A11区域中出现的次数。
要统计的数字在C2,在D2中输入公式:
=SUMPRODUCT(LEN(A2:A11)-LEN(SUBSTITUTE(A2:A11,C2,"")))
或数组公式:
=SUM(LEN(A2:A11)-LEN(SUBSTITUTE(A2:A11,C2,"")))
公式输入完毕后按Ctrl+Shift+Enter结束。
说明:先用SUBSTITUTE函数将区域各单元格中的指定数字“0”去掉,然后比较各单元格中文本数据的长度,最后将比较后的结果求和,即得到数字在区域中的出现次数
标签:公式,区域,数字,次数,Excel函数
![](/images/zang.png)
![](/images/jiucuo.png)
猜你喜欢
iOS9新技能 :怎么用Apple Music调戏Siri
2022-09-01 02:40:23
![](https://img.aspxhome.com/file/2023/2/a201232_0s.png)
切换到垂直误差线面板
2022-07-25 22:46:01
朴槿惠被坑!因闺蜜不会彻底删除硬盘数据
2022-06-06 19:15:52
![](https://img.aspxhome.com/file/2023/3/a296588_0s.jpg)
Word如何插入表格啊?Word插入表格方法介绍
2022-03-11 13:42:13
![](https://img.aspxhome.com/file/2023/9/23919_0s.jpg)
Mac系统清理软件哪款好用?MacClean 3系统要求是什么?
2023-03-01 23:52:24
![](https://img.aspxhome.com/file/2023/8/a212488_0s.jpeg)
word如何对文档设置大纲
2023-11-11 18:27:41
![](https://img.aspxhome.com/file/2023/4/17664_0s.png)
Win11小组件打不开怎么办?Win11小组件打不开的解决方法
2022-05-31 17:07:49
![](https://img.aspxhome.com/file/2023/27/a238636_0s.jpg)
在Word2003文档窗口中改变显示比例
2023-12-09 04:21:22
![](https://img.aspxhome.com/file/2023/1/20591_0s.jpg)
KB5006670安装失败解决方法
2023-02-22 13:54:16
![](https://img.aspxhome.com/file/2023/6/a321785_0s.jpg)
Win10应用商店无法弹出登录界面怎么办?
2023-01-07 18:02:19
![](https://img.aspxhome.com/file/2023/26/a225149_0s.jpg)
网易云阅读怎么购买书籍?网易云阅读购买书籍的方法
2022-07-28 14:49:46
![](https://img.aspxhome.com/file/2023/7/a332539_0s.jpg)
Win11怎么卸载有问题的更新补丁
2023-07-08 23:45:59
![](https://img.aspxhome.com/file/2023/27/a235377_0s.jpg)
好看的海景壁纸合集
2022-10-11 14:50:11
![](https://img.aspxhome.com/file/2023/6/a207856_0s.jpeg)
excel表格打印不全如何解决
2022-11-13 01:50:52
fts.exe是什么进程 有什么作用 fts进程查询
2023-11-27 13:16:48
360安全卫士重装Windows 7旗舰版系统的注意事项
2022-12-15 00:12:27
![](https://img.aspxhome.com/file/2023/4/a305829_0s.jpg)
使用Ghost恢复时无法选择C盘的原因及解决方法
2022-12-02 01:52:18
excel 如何利组合图表做出高难度的封面?
2022-12-23 08:06:39
![](https://img.aspxhome.com/file/2023/3/a154443_0s.jpg)
Edraw Project将甘特图导出为Excel的详细操作步骤
2022-04-04 10:38:04
![](https://img.aspxhome.com/file/2023/7/a331789_0s.jpg)
PDF文档怎么修改文字和图片? Acrobat编辑器的使用教程
2023-08-04 02:08:09
![](https://img.aspxhome.com/file/2023/2/a287694_0s.jpg)