Sharepoint Calculated Column IF Statements

John kelly 21 Reputation points
2022-05-29T03:05:54.287+00:00

Here's my formula:

=IF(Status="Completed",IF([JCN Type]="EDLM","UDLM",[Date Completed]+10),IF([JCN Type]="EA","TA",[Date Completed]+15))

I also want to have to be 10 or 15 work days but not really sure how to tie that in. Also, my third IF statement doesnt add any date in the field it add UDLM.

Microsoft 365 and Office SharePoint For business Windows
0 comments No comments
{count} votes

Accepted answer
  1. Jinwei Li-MSFT 4,736 Reputation points Microsoft External Staff
    2022-05-30T06:20:26.367+00:00

    Hi @John kelly ,

    Please try to use this:

    =IF(Status="Completed",IF(OR([JCN Type]="EDLM",[JCN Type]="UDLM"),[Date Completed]+10,IF(OR([JCN Type]="EA",[JCN Type]="TA"),[Date Completed]+15)),"")  
    

    Output:

    206528-image.png


    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments

1 additional answer

Sort by: Most helpful
  1. Sreeju Nair 12,661 Reputation points
    2022-05-29T05:37:50.39+00:00

    You may use OR Function inside your if to make sure you joins multiple statements toghether.

    https://support.microsoft.com/en-us/office/or-function-9a2a1cca-696f-4d19-a959-3943babd076f

    Similar to OR, there is And function too. Please refer

    https://support.microsoft.com/en-us/office/and-function-78956048-53c7-484a-ab0b-6e70d7f03400

    Hope this helps

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.