Help with 5 nested IF statement
@Genevieve P. I read your excellent explanation of multiple If statements but only managed to get "Incorrect argument set" instead of "unparseable" Grateful for your review of the following:
=IF(Status@row = "Delayed", "1", IF(OR(Status@row = "Yet to commence", "2", IF(OR(Status@row = "Underway", "3", IF(OR(Status@row = "Ongoing", "4", "5")))))))
The point is to assign a numeric value to each Status so that I can then apply a custom sort order. If there is a better way to do this, I'd love to know.
There is also a COMPLETED status but I figured that would be the default "5" at the end of the equation.
Best Answer

Hi @22Wordsmith,
You don't need the OR statements in your formula as you only have 1 criteria for each number so you can exclude them:
=IF(Status@row = "Delayed", "1", IF(Status@row = "Yet to commence", "2", IF(Status@row = "Underway", "3", IF(Status@row = "Ongoing", "4", "5"))))
This is what is causing your "Incorrect argument set" issues; you would use OR if you have 2+ possibilities for an outcome.
Hope this helps, if you've any questions or comments then just post! 😊
Answers

Hi @22Wordsmith,
You don't need the OR statements in your formula as you only have 1 criteria for each number so you can exclude them:
=IF(Status@row = "Delayed", "1", IF(Status@row = "Yet to commence", "2", IF(Status@row = "Underway", "3", IF(Status@row = "Ongoing", "4", "5"))))
This is what is causing your "Incorrect argument set" issues; you would use OR if you have 2+ possibilities for an outcome.
Hope this helps, if you've any questions or comments then just post! 😊
Help Article Resources
Categories
 All Categories
 14 Welcome to the Community
 Smartsheet Customer Resources
 62.3K Get Help
 364 Global Discussions
 199 Industry Talk
 428 Announcements
 4.4K Ideas & Feature Requests
 136 Brandfolder
 127 Just for fun
 128 Community Job Board
 445 Show & Tell
 28 Member Spotlight
 1 SmartStories
 283 Events
 35 Webinars
 7.3K Forum Archives
Check out the Formula Handbook template!