Multiple "IF"s in a Function?
Hi,
I am trying to create a column which will say "YES", when another column, "Expiry Date", is expired (past today), and when a third column is " NOT GLP".
However, I want it to say "NO", when the third column "IS GLP", and the expiry date is expired by less than 1 year.
(If it is expired by more than a year, then it should say "YES", even though it is GLP).
I thought of this formula (and a lot of other variations), but I just cannot seem to make it work:
=IF(AND(TODAY() > [Expiration Date]1, GLP1 = "NO"), "YES", IF(AND(TODAY(365) > [Expiration Date]1, [GLP]1 = “YES”), "NO"))
Could someone please help me?
Best Answer
-
Try this...
=IF(GLP@row <> "NOT GLP", IF([Expiration Date]@row < TODAY(), "YES", "NO"), IF([Expiration Date]@row < TODAY(-365), "Yes", "NO"))
Answers
-
Try this...
=IF(GLP@row <> "NOT GLP", IF([Expiration Date]@row < TODAY(), "YES", "NO"), IF([Expiration Date]@row < TODAY(-365), "Yes", "NO"))
-
Wow, it works great! :D
Thank you so much for your help! I really appreciate it!
I used your exact formula (just replacing the "NOT GLP" by "YES", as I needed the opposite: that's my fault though, its hard to explain exactly what you need in words), and I tested it a few times, and it works perfectly!
Thanks again, you really saved me a lot of hours of confusion :)
-
Happy to help. 👍️
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Smartsheet Customer Resources
- 64.1K Get Help
- 414 Global Discussions
- 221 Industry Talk
- 460 Announcements
- 4.8K Ideas & Feature Requests
- 143 Brandfolder
- 141 Just for fun
- 58 Community Job Board
- 462 Show & Tell
- 32 Member Spotlight
- 1 SmartStories
- 299 Events
- 38 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!