[英]How can I count how many cells are the same in both rows?
I'm currently struggling with something that seems to me like it should be quite simple.我目前正在努力解决在我看来应该很简单的事情。 I have the following two rows in a spreadsheet, say A and B from 1 to 5:我在电子表格中有以下两行,比如从 1 到 5 的 A 和 B:
Strategic, Input, Restorative, Learner, Individualization战略性、投入性、恢复性、学习者、个性化
Connectedness, Strategic, Intellection, Learner, Achiever连通性、战略性、智力、学习者、成就者
How can I count how many words are the same in both rows?如何计算两行中有多少相同的单词? The answer in the above case should be 2.上述情况的答案应该是 2。
You could use =SUMPRODUCT(--(COUNTIF(A1:A5,B1:B5)>0))
.您可以使用=SUMPRODUCT(--(COUNTIF(A1:A5,B1:B5)>0))
。 Sumproduct does not require ctrl+shift+enter
also not in older Excel versions. Sumproduct 不需要ctrl+shift+enter
在旧版 Excel 中也不需要。
PS This solution is not case sensitive. PS 此解决方案不区分大小写。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.