问题:我想连接5个包含用户名的字段,并用逗号分隔,但前提是它们不是空白。
我试过了:
IF(ISBLANK(Co_Signatory_Number_1__c),"", ", TEXT(Co_Signatory_Number_1__c"))&
IF(ISBLANK(Co_Signatory_Number_2__c),"", ', TEXT(Co_Signatory_Number_2__c"))&
IF(ISBLANK(Co_Signatory_Number_3__c),"", ", TEXT(Co_Signatory_Number_3__c"))&
IF(ISBLANK(Co_Signatory_Number_4__c),"", ", TEXT(Co_Signatory_Number_4__c"))&
IF(ISBLANK(Co_Signatory_Number_5__c),"", ", TEXT(Co_Signatory_Number_5__c"))
但这确实会返回"' TEXT(Co_Signatory_Number_1__c)"而不是领域",John Doe"
如何获取if函数以插入字段,而不是文字文本?
答案 0 :(得分:0)
您在函数字符串文字中包含函数TEXT()
。
IF(ISBLANK(Co_Signatory_Number_1__c),"", ", "&TEXT(Co_Signatory_Number_1__c))&
IF(ISBLANK(Co_Signatory_Number_2__c),"", ", "&TEXT(Co_Signatory_Number_2__c))&
IF(ISBLANK(Co_Signatory_Number_3__c),"", ", "&TEXT(Co_Signatory_Number_3__c))&
IF(ISBLANK(Co_Signatory_Number_4__c),"", ", "&TEXT(Co_Signatory_Number_4__c))&
IF(ISBLANK(Co_Signatory_Number_5__c),"", ", "&TEXT(Co_Signatory_Number_5__c))