SharePoint List-Calculated column to return values of 5 different scenarios from 2 columns in a text value

Harry N Nomikos 1,336 Reputation points
2023-06-05T03:43:13.9066667+00:00

Hi Team

I require a calculated column formula to return the below values when they are met. I've provided a screenshot of my expected results and the two column names the formula needs to refer to.

User's image

I tried putting in the below formula and it didn't seem to work.

=IF(AND([Type of WFP Request]="Awareness Only"),"Awareness Only",IF(AND([Type of WFP Request]="Mailout/Marketing Campaign”),"Mailout/Marketing Campaign”,IF(AND([Type of WFP Request]="Off-Phone Training",[Type of Training]="Organisation e-learn"),“Organisation-elearn Training”,IF(AND([Type of WFP Request]="Off-Phone Training",[Type of Training]="Remediation Briefing"),“Remediation Training & Mailout”,IF(AND([Type of WFP Request]="Off-Phone Training", [Type of Training]="Mailout/Marketing Briefing"),“Mailout/Marketing Training & Marketing Mailout”,"")))))

Any help here will be greatly appreciated

Regards,
Harry

SharePoint Server
SharePoint Server
A family of Microsoft on-premises document management and storage systems.
2,422 questions
SharePoint
SharePoint
A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.
11,229 questions
0 comments No comments
{count} votes

Accepted answer
  1. Emily Du-MSFT 51,831 Reputation points Microsoft External Staff
    2023-06-05T08:34:34.2566667+00:00

    Please use following formula in the calculated column.

    =IF([Type of WFP Request]="Awareness Only","Awareness Only",IF([Type of WFP Request]="Mailout/Marketing Campaign","Mailout/Marketing Campaign",IF(AND([Type of WFP Request]="Off-Phone Training",[Type of Training]="Organisation e-learn"),"Organisation-elearn Training",IF(AND([Type of WFP Request]="Off-Phone Training",[Type of Training]="Remediation Briefing"),"Remediation Training & Mailout",IF(AND([Type of WFP Request]="Off-Phone Training",[Type of Training]="Mailout/Marketing Briefing"),"Mailout/Marketing Training & Marketing Mailout","")))))

    Result:

    User's image


    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

0 additional answers

Sort by: Most helpful

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.