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
-
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
-
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
Categories
- All Categories
- 14 Welcome to the Community
- Smartsheet Customer Resources
- 62.4K Get Help
- 364 Global Discussions
- 201 Industry Talk
- 430 Announcements
- 4.4K Ideas & Feature Requests
- 137 Brandfolder
- 129 Just for fun
- 128 Community Job Board
- 446 Show & Tell
- 28 Member Spotlight
- 1 SmartStories
- 284 Events
- 35 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!