IF(AND) Statement With List of Expressions

Hello,
I'm a fairly new user to Smartsheet and trying to put together some formulas. I'm currently trying to implement a formula to summarize a column called Status if the rest of the cells in that column have a "Complete" entered in them. If there is at least one cell with anything other than "Complete", I want "Incomplete" to show in the top summarizing cell of that column. The formula I'm implementing is below:
=IF(AND(Status2:Status16 = "Complete"), "Complete", "Incomplete")
I get back a message of #INVALID OPERATION in the top summarising cell using this formula.
I see that in the Smartsheet help tab, it's suggested you list the inner AND expressions one after the other but I'd like to list them as one as they share a common desired entry ("Complete").
Any help would be appreciated!
Answers
-
Try something like this...
=IF(COUNTIFS(Status2:Status16, "Complete") = 15, "Complete", "Incomplete")
This will count how many are complete, and if that number is 15 (number of rows specified) then it will show as "Complete". Until then, it will show as "Incomplete".
If your extra rows are indented below row 1 (where I assume you are putting the formula), you can use the CHILDREN function to make things much more flexible.
=IF(COUNTIFS(CHILDREN(), "Complete") = COUNT(CHILDREN()), "Complete", "Incomplete")
-
Thanks for the response. My rows below are indeed indented. If possible, I'd like a way to not have to use the COUNTIFS function as I won't always have a fixed number of rows and want if possible to avoid having to change the formula every time a new row is added.
-
If they are indented, you can use the second formula that uses the CHILDREN function. This will automatically account for rows being added/deleted that are indented under the parent row.
-
Great thank you. I'll give it a try!
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 67.9K Get Help
- 474 Global Discussions
- 207 Use Cases
- 517 Announcements
- 5.5K Ideas & Feature Requests
- 87 Brandfolder
- 157 Just for fun
- 83 Community Job Board
- 521 Show & Tell
- 36 Member Spotlight
- 3 SmartStories
- 309 Events
- 37 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!