# How to add the cell info if the box is checked

Options

What would be the proper function to use where i want the number of hours worked is added to the total hours worked if and only if the box is checked as complete

• ✭✭✭✭✭
Options

@ECD Auto Design this formula will only sum values when the checkbox is checked

• ✭✭✭✭✭
Options

=IF([check box]@row = 1, SUM("insert cells you want to sum"), 0)

• ✭✭✭✭✭✭
edited 06/11/21
Options

Try something like this.

```=SUMIF(Checkbox:Checkbox, 1, Value:Value)
```

Did that work/help?

I hope that helps!

Be safe and have a fantastic weekend!

Best,

Andrée Starå | Workflow Consultant / CEO @ WORK BOLD

Did my post(s) help or answer your question or solve your problem? Please support the Community by marking it Insightful/Vote Up or/and as the accepted answer. It will make it easier for others to find a solution or help to answer!

SMARTSHEET EXPERT CONSULTANT & PARTNER

Andrée Starå | Workflow Consultant / CEO @ WORK BOLD

W: www.workbold.com | E:andree@workbold.com | P: +46 (0) - 72 - 510 99 35

Feel free to contact me for help with Smartsheet, integrations, general workflow advice, or anything else.

• edited 06/11/21
Options

@Garrett Henke Thank you for that I guess i was a little too vague on the task i want to accomplish. WHat you suggested worked perfectly for that 1 specific row. How would i take that formula to apply to the specified range? Ultimately i am looking to calculate the total hours worked when each box is checked. So lets say my techs only completed the two tasks i would like it to count as its checked

This is what i tried to implement but didnt work

"=IF(([Complete]21:[Complete]24, = 1) SUM([Hours to Complete]21:[Hours to Complete]24), 0)"

• Options

@Andrée Starå Sorry this doesnt help much... Do you think you can help me with the snapshot i sent in the previous comment?

• ✭✭✭✭✭
Options

@ECD Auto Design this formula will only sum values when the checkbox is checked

• Options

@Garrett Henke That was the one! Thank you!

• ✭✭✭✭✭✭
Options

Happy to help!

I misunderstood and thought you wanted to check the whole column.

```=SUMIF(Completed:Completed, 1, Hours:Hours)
```

SMARTSHEET EXPERT CONSULTANT & PARTNER

Andrée Starå | Workflow Consultant / CEO @ WORK BOLD

W: www.workbold.com | E:andree@workbold.com | P: +46 (0) - 72 - 510 99 35

Feel free to contact me for help with Smartsheet, integrations, general workflow advice, or anything else.

## Help Article Resources

Want to practice working with formulas directly in Smartsheet?

Check out the Formula Handbook template!