We help IT Professionals succeed at work.
Get Started

SharePoint calculations based on check boxes.

298 Views
Last Modified: 2020-01-12
SharePoint column, type=calculation, formula to assign values based on a column with check boxes.
While in the formula box, I do not see the column name to be inserted.  Is that because the column has checkboxes?  So I can add the column name manually, but how do I add the column name & checkbox name.
All I am trying to do is get a sum based on how many checkboxes are checked.  one of the check boxes is worth 9 points, the others are worth 3 points.  The column name is Risk.  I was trying to have it max out at 9 points.  so the first if was going to sum just the first checkbox if true, or sum the other 3 for a total of 0-9.

=if(checkbox1=true,9,sum(if(checkbox2=true,3,0),if(checkbox3=true,3,0),if(checkbox4=true,3,0)))
or 
=if([checkbox1],9,if([checkbox2,3,if(checkbox3,3,0)),0)
or
=sumif([checkbox1],9,sumif([checkbox2],3,....

Open in new window


Using info-path with a SharePoint list.  It does not allow you to set a name to each checkbox.  Looks like it defaults to "value"?
So i tried using the title of the check box, and tried using checkbox1 ....
Here is what the question looks like
Thanks in advance,
Jim
Comment
Watch Question
SharePoint AED
CERTIFIED EXPERT
Distinguished Expert 2020
Commented:
This problem has been solved!
Unlock 1 Answer and 3 Comments.
See Answer
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE