Formula If range of rows status is checked
Hi. I want to use a formula to determine the status symbol when all rows in a certain range are checked complete.
Below is what I have right now, but it is not correct. I am new to SmartSheet ;)
=IF(Status2:Status5 = "true", "Green", "Gray")
Best Answer
-
Ah! I misread your initial question, please see two options below.
If Status2 - Status5 are all child rows, an easy formula would be:
=IF(COUNTIF(CHILDREN(Status@row), 1) = COUNT(CHILDREN(Status@row)), "Green", "Gray")
If however, they aren't child rows, this would be the formula to use to get a specific range.
=IF(COUNTIF(Status2:Status5, 1) = COUNT(Status2:Status5), "Green", "Gray")
Answers
-
Try =IF(Status2:Status5 = 1, "Green", "Gray")
Also, what error are you getting when you input that formula? There could be other issues at play.
-
#INVALID OPERATION
=IF(Status2:Status5 = 1, "Green", "Gray") gave #INVALID OPERATION as well.
Status column is Checkbox
-
I am trying to get the status symbol to change to green when all rows in a designated range (the subitems) are checked off.
-
Ah! I misread your initial question, please see two options below.
If Status2 - Status5 are all child rows, an easy formula would be:
=IF(COUNTIF(CHILDREN(Status@row), 1) = COUNT(CHILDREN(Status@row)), "Green", "Gray")
If however, they aren't child rows, this would be the formula to use to get a specific range.
=IF(COUNTIF(Status2:Status5, 1) = COUNT(Status2:Status5), "Green", "Gray")
-
=IF(COUNTIF(CHILDREN(Status@row), 1) = COUNT(CHILDREN(Status@row)), "Green", "Gray")
This is perfect! Worked! Thank you so much!
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 65.9K Get Help
- 429 Global Discussions
- 147 Industry Talk
- 486 Announcements
- 5.2K Ideas & Feature Requests
- 86 Brandfolder
- 151 Just for fun
- 74 Community Job Board
- 498 Show & Tell
- 33 Member Spotlight
- 2 SmartStories
- 305 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!