excel如何利用公式统计单元格中字符的出现次数
时间:2022-11-25 20:04:14
如果某单元格中存在一些文字,我们可以用下面的公式来统计其中某个字或词的出现次数,假设在A1单元格包含一段文字,A2单元格中是要统计的文字,可以在B1单元格中输入公式:
=IF(LEN(A2)=0,0,(LEN(A1)-LEN(SUBSTITUTE(A1,A2,"")))/LEN(A2))
如果A2单元格中为空或A2中的文字在A1单元格中没有出现,公式返回0。另外如果要统计的是英文字符,公式将不区分大小写。
标签:公式,单元格,文字,统计,Excel函数
![](/images/zang.png)
![](/images/jiucuo.png)
猜你喜欢
win10系统易升详细介绍
2023-11-04 12:40:42
![](https://img.aspxhome.com/file/2023/1/a276316_0s.png)
Win10系统怎么退出安全模式?
2023-08-12 05:31:19
![](https://img.aspxhome.com/file/2023/5/a314503_0s.png)
在word图片上怎么添加文字
2023-02-27 16:52:55
Win10电脑怎么查看配置情况?Win10电脑查看配置情况的方法
2023-09-06 12:16:35
![](https://img.aspxhome.com/file/2023/2/a284020_0s.png)
mathtype公式编辑器怎么修改设置快捷键?
2023-08-14 21:23:09
![](https://img.aspxhome.com/file/2023/5/a316440_0s.png)
word合并单元格怎么弄
2023-09-12 01:36:06
![](https://img.aspxhome.com/file/2023/7/34537_0s.gif)
Win7图片查看器打印不了图片怎么办?
2023-10-31 05:39:25
![](https://img.aspxhome.com/file/2023/26/a228886_0s.jpg)
无法访问Steam官网怎么办?Steam打不开网络错误如何解决?
2023-09-07 03:10:33
![](https://img.aspxhome.com/file/2023/8/a339487_0s.jpg)
Win10用自带工具打开文件的方法
2022-01-29 18:53:55
![](https://img.aspxhome.com/file/2023/26/a227196_0s.jpg)
excel照相机的作用,excel照相机功能在2003、2007、2010三个版本的位置,以及如何使用excel照相机
2023-09-25 16:07:04
![](https://img.aspxhome.com/file/2023/8/a155168_0s.gif)
win10如何禁止快速切换用户?
2023-02-05 07:38:00
![](https://img.aspxhome.com/file/2023/3/a294020_0s.png)
如何在微软Word中添加指数幂
2023-05-09 15:25:07
![](https://img.aspxhome.com/file/2023/6/23656_0s.jpg)
网易云音乐怎么查看播放记录?网易云音乐播放记录在哪里看?
2023-09-17 09:37:02
![](https://img.aspxhome.com/file/2023/8/a339802_0s.jpg)
电脑QQ浏览器剪切板功能怎么关闭
2023-01-12 14:33:08
![](https://img.aspxhome.com/file/2023/7/a328279_0s.png)
Win10怎么清理磁盘碎片?
2023-10-29 14:43:17
![](https://img.aspxhome.com/file/2023/25/a217783_0s.png)
win7系统本地连接不见了怎么恢复?
2023-02-02 01:33:17
![](https://img.aspxhome.com/file/2023/1/a276281_0s.jpg)
Win7关闭主板集成声卡的技巧
2023-06-07 23:56:30
![](https://img.aspxhome.com/file/2023/27/a232853_0s.jpg)
Excel2007教程之设置数据精度
2023-02-14 03:26:41
![](https://img.aspxhome.com/file/2023/6/a143536_0s.jpg)
Word文本框如何设置透明?Word设置透明文本框的方法
2022-05-29 07:39:20
![](https://img.aspxhome.com/file/2023/6/30906_0s.jpg)
苹果的MAC操作系统大战微软windows的十个优势介绍
2023-08-29 18:28:02