获取单元格内容的唯一编号

发布于 2024-09-19 23:42:45 字数 140 浏览 3 评论 0原文

我正在寻找哈希或者更简单的东西。

我想为单元格中的每个字符串返回一个唯一的数字。

有谁知道单元格中是否有一个函数可以为另一个字符串返回唯一的数字或唯一的字符串?

问题是我想比较两个字符串是否完全相等,我需要区分大小写。

I am looking for a HASH or maybe something even simpler.

I want to return a unique number for every string in a cell.

Does anyone know if there is a function in a cell that will return a unique number or a unique string for another string?

The problem is I would like to compare whether two string are totally equal, I need to be case sensitive.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

帅冕 2024-09-26 23:42:45

要以区分大小写的方式比较 2 个字符串,忽略选项比较设置,请使用 StrComp
IF StrComp(Str1,Str2,vbBinaryCompare)=0 then

to compare 2 strings in a case sensitive way ignoring the Option Compare setting use StrComp
IF StrComp(Str1,Str2,vbBinaryCompare)=0 then

单身情人 2024-09-26 23:42:45

如果您使用 C#,那么当您有一个包含单元格内容的字符串变量时,您不能只使用标准的 GetHash 函数吗?

否则,以下堆栈溢出问题似乎已经回答了这个问题: Excel VBA 的密码哈希函数< /a>

If you're in C# then can't you just use the standard GetHash function when you have a string variable that contains the contents of the cell?

Otherwise the following stack overflow question seems to already answer this question: Password hash function for Excel VBA

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文