简体   繁体   English

LEN(cell)> 255时Excel公式错误

[英]Error in excel formula when LEN(cell) > 255

I just found out that when you're doing a COUNTIF() formula on a cell with more than 255 characters, it retun a #VALUE error. 我刚刚发现,当您在一个包含超过255个字符的单元格上执行COUNTIF()公式时,它将重新调整#VALUE错误。

Do you know how to deal with that? 你知道如何处理吗?

Thanks in advance. 提前致谢。

According to Excel documentation: 根据Excel文档:

The COUNTIF function returns incorrect results when you use it to match strings longer than 255 characters. 当您使用COUNTIF函数匹配超过255个字符的字符串时,返回错误结果。

To match strings longer than 255 characters, use the CONCATENATE function or the concatenate operator &. 要匹配超过255个字符的字符串,请使用CONCATENATE函数或串联运算符&。 For example, =COUNTIF(A2:A5,"long string"&"another long string"). 例如,= COUNTIF(A2:A5,“长字符串”&“另一个长字符串”)。

COUNTIF Function COUNTIF函数

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM