Smartsheet Checkbox

Hi there,

I want to find a formula that works for the following conditions for a checkbox column.

If no cells are checked enter "Not Started"

If one or more cells are checked enter "In Progress"

If all cells are checked enter "Complete".

I need all three conditions to be included in a single formula.

Best Answer

  • James Keuning
    James Keuning ✭✭✭✭✭
    Answer ✓

    Create an autonumber system field named ROWID and name your checkbox field Checkbox

    =IF(COUNTIFS(Checkbox:Checkbox, true, [Row ID]:[Row ID], @cell > 0) = COUNT([Row ID]:[Row ID]), "complete", IF(COUNTIFS(Checkbox:Checkbox, false, [Row ID]:[Row ID], @cell > 0) = COUNT([Row ID]:[Row ID]), "not started", "In Progress"))

    This counts your rows. Then it counts the checked boxes. It total checked boxes equals total rows, then complete. It total unchecked boxes equals total rows, then not started. Otherwise, In Progress.

Answers

  • James Keuning
    James Keuning ✭✭✭✭✭
    Answer ✓

    Create an autonumber system field named ROWID and name your checkbox field Checkbox

    =IF(COUNTIFS(Checkbox:Checkbox, true, [Row ID]:[Row ID], @cell > 0) = COUNT([Row ID]:[Row ID]), "complete", IF(COUNTIFS(Checkbox:Checkbox, false, [Row ID]:[Row ID], @cell > 0) = COUNT([Row ID]:[Row ID]), "not started", "In Progress"))

    This counts your rows. Then it counts the checked boxes. It total checked boxes equals total rows, then complete. It total unchecked boxes equals total rows, then not started. Otherwise, In Progress.

Help Article Resources

Want to practice working with formulas directly in Smartsheet?

Check out the Formula Handbook template!