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
- Smartsheet Customer Resources
- 63.5K Get Help
- 402 Global Discussions
- 213 Industry Talk
- 450 Announcements
- 4.7K Ideas & Feature Requests
- 141 Brandfolder
- 135 Just for fun
- 56 Community Job Board
- 454 Show & Tell
- 31 Member Spotlight
- 1 SmartStories
- 296 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!