只计算唯一的字符串 [英] Count only unique strings

查看:96
本文介绍了只计算唯一的字符串的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个字符串列。我只想计算这些唯一的字符串。



我知道我可以派生所有不同的字符串(粘贴它们),然后用 =计数(...)。但是我不想破坏我的数据集。因此,是否只有唯一的字符串计数公式?



我非常感谢您的答案!

解决方案

尝试这个:

  = SUMPRODUCT(1 *(COUNTIF(A1:A10,A1: A10)= 1))

在下面的图片中,以蓝色突出显示的唯一值:




I have a column with strings. I only want to count the strings which are unique.

I know that I could just derive all distinct strings(by pasting them) and then count them with =Count(...). However I do not want to destroy my dataset. Therefore, is there a formula for counting only unique strings?

I really appreciate your answer!

解决方案

Try this one:

=SUMPRODUCT(1*(COUNTIF(A1:A10,A1:A10)=1))

In picture below unique values highlighted with blue:

这篇关于只计算唯一的字符串的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆