excel - Excel counting seperate values in the same cell
问题描述
I have a excel sheet in which I need to count diffrent values from one cell.
The ones and zeros vary as well as the amount of <br>
that seperated them. I need to count the ones and zeros seperatly. 10000010011<br>10101010101<br>01100111000<br>101101010110
In this example I need four values indicating the amount of ones and zeros. Here it would be: zeros1:7 ones1:4, zeros2: 5 ones2:6, zeros3: 6 ones3: 5, zeros4: 5 ones4: 7. I really would appreciate any suggestions!
解决方案
假设每个二进制总是 11 位:
将数据文本解析为列/固定宽度,尖括号周围有中断,然后跳过<br>
列并应用公式,例如:
=LEN(A1)-LEN(SUBSTITUTE(A1,1,""))
复制过来以适应并重复使用,0,
代替,1,
或只是从 中减去上述结果11
。
推荐阅读
- ios - 记录 UI 测试运行但不添加交互时自动生成的代码
- assembly - ASSEMBLY EMU8086 - 我的程序在得到一些输入后有点混乱?
- chart.js - 调整 ChartJS 中额外的 fillText 标签的字体大小和系列
- neo4j - 如何删除 Neo4j csv 数据中的 0xa0?
- python - 如何使用openpyxl创建条件格式规则,将单元格的背景更改为大于20%的值
- c++ - C++20 概念应该只适用于数字而不是字符
- firebase - 请解决此运行时错误,当我向下滚动或选择其他类别时,我的应用程序崩溃了
- laravel-5 - Laravel excel 库(Maatwebsite):如何为导出创建具有多项选择的下拉列表
- android - 无法通过 Android Studio 安装 Intel HAXM
- azure - 禁用“托管虚拟网络”的 Azure Synapse VNet 集成