Forum Discussion
Calculated column from 7 Yes/No
Hi everybody,
I recently tried to use the calculated columns from SharePoint (first time trying) and I can't pull off what I need. Basically, I have 7 Yes/No controls and I simply want to create a column that return a string like "Ok" if all seven are "Yes" and "Not Ok" if not. I can make it work with one but I tried every IF/AND coding that I knew and I always displays the same thing : every column displays "Not Ok"
Can someone enlighten me please 😄 ?
Devildez_1994 Use the + operator to add up each column, and if the total is 7 then set your text. Here is a post I made last week where someone had the same issue:
5 Replies
- Robin NilssonBronze Contributor
Devildez_1994 Use the + operator to add up each column, and if the total is 7 then set your text. Here is a post I made last week where someone had the same issue:
- Rachel_DavisIron ContributorExcellent idea! I never thought of using simple addition. I like it!
- Rachel_DavisIron Contributor
I assume you've tried building this out one field at a time rather than all 7 at once, right? Do one, make sure that works. Add another. Make sure that works, etc.
Also, note that in SharePoint, while the Yes/No column reads text, the values stored are actually numbers. So when you do the calc, make sure you use numbers. I think Yes =1 and No = 0.
- Should just be a bunch of IF's. Like so.
=IF([Column1]=Yes,IF([Column2]=Yes,IF([Column3]=Yes,IF([Column4]=Yes,IF([Column5]=Yes,IF([Column6]=Yes,IF([Column7]=Yes, "OK")))))), "Not OK")- Devildez_1994Copper Contributor
ChrisWebbTechI tried it, does not seem to work. It's too bad SP does not show you where it comes from like in PowerApps^^