Forum Discussion
Akshadaks
Jul 18, 2023Copper Contributor
Sharepoint column value (status) based on other multiple column values
Dear Team, I have a very basic knowledge of SharePoint and therefore requesting for help for the below scenario. I want to create a column on a sharepoint list to show the status (Approved, Rejecte...
- Jul 19, 2023
Hi Akshadaks,
you can use a calculated column for that.
In this example I have a list with three Yes/No columns: YNField1, YNField2 and YNField3Now press "+Add Column", select "See all column types" and press "Next"
Name your new column "Status" and select "Calculated (calculation based on other columns)"
Now enter this formula into the Formula field and press the "OK" Button on the lower left side.=IF( AND( [YNField1]=TRUE, [YNField2]=TRUE, [YNField3]=TRUE ), "Approved", "Rejected" )
Now your list should look like thisThe new status column will display "Rejected" unless all of the "YNFields" are true.
Best Regards,
Sven
Akshadaks
Jul 21, 2023Copper Contributor
Also with the code that I used, I am only able to use 2 types of statuses, but wondering if more than 2 status (results) could be achieved based on different combinations of selects.
e.g.
When
Column1 = Yes
Column2 = No
Column3 = Yes
Column4 = Yes
Status (Result) = Approved (Conditionally)
AND
When
Column1 = Yes
Column2 = No
Column3 = Yes
Column4 = No
Status (Result) = Rewrok required
Hope that clarifies.
e.g.
When
Column1 = Yes
Column2 = No
Column3 = Yes
Column4 = Yes
Status (Result) = Approved (Conditionally)
AND
When
Column1 = Yes
Column2 = No
Column3 = Yes
Column4 = No
Status (Result) = Rewrok required
Hope that clarifies.
Akshadaks
Jul 21, 2023Copper Contributor