SharePoint Online Code

Tom N 21 Reputation points
2022-10-01T19:42:35.937+00:00

Looking to create a code that looks at one column, and depending the value , sets a value in a second column.

Bascially when the District column location is entered , the Tech column will auto populate with the Tech name that covers that location

I used an If Statement that works with just one location added, but cannot figure out how to add all of them to the IF statement.

246701-image.png

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

Accepted answer
  1. Emily Du-MSFT 51,836 Reputation points Microsoft External Staff
    2022-10-03T03:29:30.297+00:00

    @Tom N

    You could create a calculated column, then use following formula in the calculated column.

    if(District="QHQ","Tom", if(OR(District="District3",District="District5",District="District6"),"Sue", if(District="District1", "Bill", if(District="District2", "Peter", "Liz"))))

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