简体   繁体   English

如何使用公式计算文本字段中的字符数?

[英]How do I use a formula to count the number of characters in a text field?

I would like to use an IF() statement if the number of characters in the field is greater than 4. If so, apply another if statement, if not, then null . 如果字段中的字符数大于4,我想使用IF()语句。如果是,请应用另一个if语句,如果不是,则为null

i have already tried LEN() and FIND() . 我已经尝试过LEN()FIND()

my theory: 我的理论:

If(company_website__c)>4),company_website__c,null))

but i need to convert the company website into a number value first based on the number of characters. 但我需要先根据字符数将公司网站转换为数字值。

Like that? 像那样?

IF(LEN(company_website__c) > 4,
    IF(your other if, goes, here),
    null
)

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

相关问题 如何不计算文本文件中的控制字符 - How to NOT count control characters in a text file 如何计算段落中特定单词的实例数? - How do I count the number of instances of particular words in a paragraph? 如何将一段中文文本拆分成单个字符? - How do I split a piece of Chinese text into individual characters? 如何在Java文本文件中扫描某些字符? - How do I scan a text file for certain characters in java? 如何在 C++ 中反转文本文件中的字符顺序? - How do I reverse the order of characters in a text file in C++? 活动记录(mysql db)文本字段中的字符数是否有限制 - is there a limit for number of characters in active record (mysql db) text field 如何使用Python计算文本文档中的非字母数字? - How do I count non alphanumerics in a text document with Python? 如何在excel中创建if-then公式以生成书面答案? - How do I create an if-then formula in excel that produces a written text answer? 如何在Excel中使用公式过滤器范围输入包含文本和数字 - how to in excel with formula filter range input containg text and number 如何将字符串的内容分配给Unity 4.6中的文本字段? - How do I assign contents of a string to a text field in Unity 4.6?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM