Health based on check box
Hi Community,
I want to automate my health column, based on whether several checkboxes (milestones) are ticked or not. Health column is indicated in heart symbols ("Empty" - "Five").
That's what I have right now, but causing an error:
=IF([Infra Team informed to remove legacy hardware]@row = 1, "One", IF(AND([Infra Team informed to remove legacy hardware]@row=1, [Back Office Printer deployed]@row=1) "Two", IF(AND([Infra Team informed to remove legacy hardware]@row=1,[Back Office Printer deployed]@row=1,[Smoke Testing completed]@row=1) "Three", IF(AND([Infra Team informed to remove legacy hardware]@row=1,[Back Office Printer deployed]@row=1,[Smoke Testing completed]@row=1,[Cutover completed]@row=1)"Four", "Empty")))))
Best Answer
-
If it is the later. I would actually reverse your order. The way the nested if statements work is if the criteria in the first statement is true then it will stop there, i.e. any that have the [Infra Team informed to remove legacy hardware] checked would show as 1 heart.
This formula should work...
=IF(AND([Infra Team informed to remove legacy hardware]@row=1,[Back Office Printer deployed]@row=1,[Smoke Testing completed]@row=1,[Cutover completed]@row=1),"Four",IF(AND([Infra Team informed to remove legacy hardware]@row=1,[Back Office Printer deployed]@row=1,[Smoke Testing completed]@row=1), "Three",IF(AND([Infra Team informed to remove legacy hardware]@row=1, [Back Office Printer deployed]@row=1), "Two", IF([Infra Team informed to remove legacy hardware]@row = 1, "One","Empty"
As I was doing that I actually noticed that you missed a couple of commas so if it is throwing an error that might have been it also.
Answers
-
Is it giving an actual error or just giving you 1 heart or empty?
-
If it is the later. I would actually reverse your order. The way the nested if statements work is if the criteria in the first statement is true then it will stop there, i.e. any that have the [Infra Team informed to remove legacy hardware] checked would show as 1 heart.
This formula should work...
=IF(AND([Infra Team informed to remove legacy hardware]@row=1,[Back Office Printer deployed]@row=1,[Smoke Testing completed]@row=1,[Cutover completed]@row=1),"Four",IF(AND([Infra Team informed to remove legacy hardware]@row=1,[Back Office Printer deployed]@row=1,[Smoke Testing completed]@row=1), "Three",IF(AND([Infra Team informed to remove legacy hardware]@row=1, [Back Office Printer deployed]@row=1), "Two", IF([Infra Team informed to remove legacy hardware]@row = 1, "One","Empty"
As I was doing that I actually noticed that you missed a couple of commas so if it is throwing an error that might have been it also.
-
Thanks! It works. Logical thinking error on my side :)
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Smartsheet Customer Resources
- 62.7K Get Help
- 371 Global Discussions
- 205 Industry Talk
- 436 Announcements
- 4.5K Ideas & Feature Requests
- 137 Brandfolder
- 129 Just for fun
- 129 Community Job Board
- 448 Show & Tell
- 30 Member Spotlight
- 1 SmartStories
- 282 Events
- 32 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!