Forum Discussion

ksyrz's avatar
ksyrz
Copper Contributor
Feb 07, 2024

Assign a value based on another column

Hi!    I am looking to create a new column in a Microsoft List. I need the column to assign a value based on the team name.   For context: If Team is A then value is 100, If team is B then value ...
  • ganeshsanap's avatar
    Feb 07, 2024

    ksyrz If you are trying to create a calculated column, use formula like this: 

     

    =IF([Team]="A","100",IF([Team]="B","200",IF([Team]="C","300","")))

    Or (with numbers): 

    =IF([Team]="A",100,IF([Team]="B",200,IF([Team]="C",300,"")))

     

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

    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