MULTIPLE IF STATEMENT
Hi - Could anyone help me again please?
I got help with the formula above and it worked fine but then i've tried to adapt it to cover another scenario in a different date column - so it first looks at the start date column and if that date is not yet due then the column says not yet valid - if the date is today or past due then the formula above kicks in.
I have formulas for bothn working but when i stick them together (as i would have worked them out in Excel) then i get an error message again
Below is both fomulas and how i have tried to join them.
=IF([VALID FROM DATE]@row > TODAY(), "NOT YET VALID", "ADD NEXT PART OF FORMULA HERE")
=IF(AND([VALID TO DATE]@row < TODAY(30), [VALID TO DATE]@row > TODAY()), "EXPIRING", IF([VALID TO DATE]@row >= TODAY(), "CURRENT", "EXPIRED"))
=IF([VALID FROM DATE]@row > TODAY(), "NOT YET VALID”, IF(AND([VALID TO DATE]@row < TODAY(30), [VALID TO DATE]@row > TODAY()), "EXPIRING", IF([VALID TO DATE]@row >= TODAY(), "CURRENT", "EXPIRED")))
Best Answer
-
The error looks to be caused by the ” at the end of the NOT YET VALID portion, if you change this over to " it should work:
=IF([VALID FROM DATE]@row > TODAY(), "NOT YET VALID", IF(AND([VALID TO DATE]@row < TODAY(30), [VALID TO DATE]@row > TODAY()), "EXPIRING", IF([VALID TO DATE]@row >= TODAY(), "CURRENT", "EXPIRED")))
Answers
-
The error looks to be caused by the ” at the end of the NOT YET VALID portion, if you change this over to " it should work:
=IF([VALID FROM DATE]@row > TODAY(), "NOT YET VALID", IF(AND([VALID TO DATE]@row < TODAY(30), [VALID TO DATE]@row > TODAY()), "EXPIRING", IF([VALID TO DATE]@row >= TODAY(), "CURRENT", "EXPIRED")))
-
Hi Nick
Apologies for the late reply - i went on annual leave a couple of days after posting so just got around to checking this. I have tried this and once again your help has worked and solved the problem for me. Thank you so much and apologies again for the late thanks
-
No problem, glad the problem is sorted for you now and hope you had some nice time off! 😊
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Smartsheet Customer Resources
- 63.9K Get Help
- 410 Global Discussions
- 219 Industry Talk
- 457 Announcements
- 4.8K Ideas & Feature Requests
- 143 Brandfolder
- 136 Just for fun
- 57 Community Job Board
- 459 Show & Tell
- 31 Member Spotlight
- 1 SmartStories
- 298 Events
- 37 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!