IF AND statement
I am attempting to build out a system which checks a box based on a hidden checkbox and a drop down field.
If the hidden checkbox is checked, and the dropdown field shows either "In Progress" or "Not Started" the visible checkbox is checked.
If the hidden checkbox is checked, and the dropdown field shows "Complete" the visible checkbox is unchecked.
If the hidden checkbox is unchecked, no matter the dropdown field, the visible checkbox is unchecked.
Here is the code I have, any help or input is very much appreciated.
=IF(AND([Hidden Checkbox]@row = 1, Status@row = "In Progress" "Not Started"), 1, IF(AND([Hidden Checkbox]@row = 1, Status@row = "Complete", 0)))
Best Answer
-
I think all you have to solve for is checked as all other conditions will result in unchecked. Something like this should do the trick:
=IF(AND([Hidden Checkbox]@row = 1, OR(Status@row = "In Progress", Status@row ="Not Started")), 1, 0)
Answers
-
I think all you have to solve for is checked as all other conditions will result in unchecked. Something like this should do the trick:
=IF(AND([Hidden Checkbox]@row = 1, OR(Status@row = "In Progress", Status@row ="Not Started")), 1, 0)
-
Thanks, that worked. I was moving that direction but this clears things up.
-
Awesome, glad it works.
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 65.5K Get Help
- 448 Global Discussions
- 145 Industry Talk
- 481 Announcements
- 5.1K Ideas & Feature Requests
- 85 Brandfolder
- 152 Just for fun
- 73 Community Job Board
- 492 Show & Tell
- 33 Member Spotlight
- 2 SmartStories
- 304 Events
- 37 Webinars
- 7.3K Forum Archives