Forum Discussion

AndreaPJ's avatar
AndreaPJ
Copper Contributor
Jan 29, 2024

Calculated column with check if column value contains a string

Good morning to all, I would like to create a calculated column where I go to check the content of an existing column (Format). The check I need to do is IF CONTAINS. If the format column contains ...
  • ganeshsanap's avatar
    Jan 29, 2024

    AndreaPJ Are you getting the syntax error while using first formula you shared in your question? Or it is not returning correct results as expected.

     

    Note:

    1. Sometimes comma( , ) does not work in formula (it is based on language or regional settings on your site). So in that case use semicolon( ; ) instead of comma( , ).
    2. Use correct display name of your SharePoint columns in above formula.
    3. Wrap column names inside [] if your column name has space in it. For example: [My Column Name].

    If it is an issue due to comma, try using formula like: 

     

    =IF(ISERROR(FIND("CD";[Format]));"XX";"CD")

    OR try using this once (with comma and with semicolon): 

    =IF(ISNUMBER(FIND("CD",[Format])),"CD","XX")

     


    Please click Mark as Best Response & Like if my post helped you to solve your issue. This will help others to find the correct solution easily. It also closes the item. If the post was useful in other ways, please consider giving it Like.

Resources