formula for multiple if/or
I would like to create a formula to do the following based another field:
- If the field is blank, leave this field blank.
- If the field is greater than 22 or less than 18, the field should read "fail".
- If the field is between 18 and 22, the field should read "pass".
I tried this:
=IF(ISBLANK([Strap dimensions - strap 3]@row), "", IF(OR([Strap dimensions - strap 2]@row > 36, [Strap dimensions - strap 2]@row < 32), "Fail", "Pass"))
It seems to work for the blank condition and the fail condition, but not the pass condition. Any suggestions?
Best Answer
-
Try: =IF(ISBLANK([Strap dimensions - strap 3]@row), "", IF(AND([Strap dimensions - strap 3]@row >= 18, [Strap dimensions - strap 3]@row <= 22), "Pass", "Fail"))
Answers
-
Try: =IF(ISBLANK([Strap dimensions - strap 3]@row), "", IF(AND([Strap dimensions - strap 3]@row >= 18, [Strap dimensions - strap 3]@row <= 22), "Pass", "Fail"))
-
That did it - thank you!
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 65.2K Get Help
- 445 Global Discussions
- 143 Industry Talk
- 476 Announcements
- 5K Ideas & Feature Requests
- 84 Brandfolder
- 150 Just for fun
- 71 Community Job Board
- 488 Show & Tell
- 33 Member Spotlight
- 2 SmartStories
- 301 Events
- 36 Webinars
- 7.3K Forum Archives
Want to practice working with formulas directly in Smartsheet?
Check out the Formula Handbook template!
Check out the Formula Handbook template!