Domanda

I've tried to create a calculated column in a SharePoint list that looks for a word in the title of the list entry and then returns yes or no based on if that word is included in the title or not.

=IF((FIND("word",Title)),"Yes","No")

All of the items that have the word in the title return "yes" as expected, however the items that should return "no", actually return as "#VALUE!" and I am not sure how to solve this.

È stato utile?

Soluzione

Adding ISERROR let's you display something else than the error message. "SEARCH" is better than "FIND" as "FIND" is case sensitive and doesn't allow wildcard characters.

=IF(ISERROR(SEARCH("Word",Title)),"Yes","No")

SharePoint: ISERROR Function

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a sharepoint.stackexchange
scroll top