Share via

List column logic for conditional text values

lilyvalley-8419 240 Reputation points
2025-02-05T06:16:23.3033333+00:00

I want to create a column in a SharePoint list that returns the text value "External changes" if two choice columns do not contain the phrase "Supplier Services". However, if both columns do have the value "Supplier Services" the column should return "Internal changes".

I'm thinking an if condition could meet this requirement and I'm hoping someone can provide me with the help.

Microsoft 365 and Office | SharePoint | For business | Windows
0 comments No comments

Answer accepted by question author

Emily Du-MSFT 51,986 Reputation points Microsoft External Staff
2025-02-06T03:10:44.43+00:00

Here're steps:

1.Create a calculated column.

2.Use following formula in the calculated column.

=IF(AND(choicecolumn1="Supplier Services",choicecolumn2="Supplier Services"),"Internal changes",IF(AND(choicecolumn1<>"Supplier Services",choicecolumn2<>"Supplier Services"),"External changes","others"))

3.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.

Was this answer helpful?


0 additional answers

Sort by: Most helpful

Your answer

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