Multiple IF functions

Hello,

I would like to Nest two If functions in one cell. Below is what I have, but I am receiving an error #unparseable.

=IF([ENM INITIATED]@row = 0; "Red"; "Yellow", IF([JOB STATUS]@row = "COMPLETED"; "Green"))

I would greatly appreciate your help.

Thank you

Answers

  • James Keuning
    James Keuning ✭✭✭✭

    Put this:

    如果(作业状态@row =“完成”;“绿色”、“黄色”))

    where you currently have "Yellow"

  • I've tried it, but it's still giving me the error. I'm not exactly sure if I structured it correctly. Could you possibly type out the entire function please?

  • Genevieve P.
    Genevieve P. Employee Admin
    edited 05/20/22

    Hi@Yusuf Safudien

    I believe James was pointing out that the "Yellow" instruction would need to be at the very end, instead of in the middle.

    This would be the full structure:

    =IF([ENM INITIATED]@row = 0; "Red"; IF([JOB STATUS]@row = "COMPLETED"; "Green"; "Yellow"))


    If this hasn't helped, it would be useful to see a screen capture of your sheet and a detailed instruction of when you want each colour to appear, but please block out sensitive data.

    Cheers,

    Genevieve

Help Article Resources

@swirt009<\/a> <\/p>

=IF(NOT(ISBLANK([Initial Certification Completion Date]@row)), DATE(YEAR([Initial Certification Completion Date]@row) + 2, MONTH([Initial Certification Completion Date]@row), DAY([Initial Certification Completion Date]@row)))<\/p>"}]}},"status":{"statusID":3,"name":"Accepted","state":"closed","recordType":"discussion","recordSubType":"question","log":{"dateUpdated":"2022-10-24 19:58:56","updateUser":{"userID":149990,"name":"swirt009","url":"https:\/\/community.smartsheet.com\/profile\/swirt009","photoUrl":"https:\/\/aws.smartsheet.com\/storageProxy\/image\/images\/u!1!3zkpv7fygLs!AlcoB0cBObs!PlBJW-ZiAkt","dateLastActive":"2022-10-24T19:58:58+00:00","banned":0,"punished":0,"private":false,"label":"✭"}}},"bookmarked":false,"unread":false,"category":{"categoryID":322,"name":"Formulas and Functions","url":"https:\/\/community.smartsheet.com\/categories\/formulas-and-functions","allowedDiscussionTypes":[]},"reactions":[{"tagID":3,"urlcode":"Promote","name":"Promote","class":"Positive","hasReacted":false,"reactionValue":5,"count":0},{"tagID":5,"urlcode":"Insightful","name":"Insightful","class":"Positive","hasReacted":false,"reactionValue":1,"count":0},{"tagID":11,"urlcode":"Up","name":"Vote Up","class":"Positive","hasReacted":false,"reactionValue":1,"count":0},{"tagID":13,"urlcode":"Awesome","name":"Awesome","class":"Positive","hasReacted":false,"reactionValue":1,"count":0}],"tags":[]},{"discussionID":96935,"type":"question","name":"IFERROR Formula getting an error","excerpt":"This formula is giving me an \"Incorrect Argument\" error. =IFERROR(NETDAYS([Date of Verbal Agreement]@row, TODAY(), \"//www.santa-greenland.com/community/discussion/91305/\")) What am I missing? Thanks!","categoryID":322,"dateInserted":"2022-10-24T19:10:43+00:00","dateUpdated":null,"dateLastComment":"2022-10-24T19:16:29+00:00","insertUserID":141331,"insertUser":{"userID":141331,"name":"deb_63_hydracor","url":"https:\/\/community.smartsheet.com\/profile\/deb_63_hydracor","photoUrl":"https:\/\/lh3.googleusercontent.com\/a\/AATXAJzYn23TqUOGU8A4PW0HalCwzLK5YNQsVxHwYcgL=s96-c","dateLastActive":"2022-10-24T21:35:22+00:00","banned":0,"punished":0,"private":false,"label":"✭✭✭✭✭"},"updateUserID":null,"lastUserID":145151,"lastUser":{"userID":145151,"name":"Mike TV","title":"","url":"https:\/\/community.smartsheet.com\/profile\/Mike%20TV","photoUrl":"https:\/\/lh3.googleusercontent.com\/a\/ALm5wu2swDSBf8UVqLz0TNb7O4SvBO4L_SdaeBQp4xqD=s96-c","dateLastActive":"2022-10-24T21:49:29+00:00","banned":0,"punished":0,"private":false,"label":"✭✭✭✭✭"},"pinned":false,"pinLocation":null,"closed":false,"sink":false,"countComments":1,"countViews":16,"score":null,"hot":3333278232,"url":"https:\/\/community.smartsheet.com\/discussion\/96935\/iferror-formula-getting-an-error","canonicalUrl":"https:\/\/community.smartsheet.com\/discussion\/96935\/iferror-formula-getting-an-error","format":"Rich","tagIDs":[254],"lastPost":{"discussionID":96935,"commentID":348481,"name":"Re: IFERROR Formula getting an error","url":"https:\/\/community.smartsheet.com\/discussion\/comment\/348481#Comment_348481","dateInserted":"2022-10-24T19:16:29+00:00","insertUserID":145151,"insertUser":{"userID":145151,"name":"Mike TV","title":"","url":"https:\/\/community.smartsheet.com\/profile\/Mike%20TV","photoUrl":"https:\/\/lh3.googleusercontent.com\/a\/ALm5wu2swDSBf8UVqLz0TNb7O4SvBO4L_SdaeBQp4xqD=s96-c","dateLastActive":"2022-10-24T21:49:29+00:00","banned":0,"punished":0,"private":false,"label":"✭✭✭✭✭"}},"breadcrumbs":[{"name":"Home","url":"https:\/\/community.smartsheet.com\/"},{"name":"Formulas and Functions","url":"https:\/\/community.smartsheet.com\/categories\/formulas-and-functions"}],"groupID":null,"statusID":3,"attributes":{"question":{"status":"accepted","dateAccepted":"2022-10-24T19:46:39+00:00","dateAnswered":"2022-10-24T19:16:29+00:00","acceptedAnswers":[{"commentID":348481,"body":"

@deb_63_hydracor<\/a> <\/p>

You've got a parenthesis out of position. Here's the corrected formula:<\/p>

=IFERROR(NETDAYS([Date of Verbal Agreement]@row, TODAY()), \"//www.santa-greenland.com/community/discussion/91305/\")<\/p>"}]}},"status":{"statusID":3,"name":"Accepted","state":"closed","recordType":"discussion","recordSubType":"question","log":{"dateUpdated":"2022-10-24 19:46:39","updateUser":{"userID":141331,"name":"deb_63_hydracor","url":"https:\/\/community.smartsheet.com\/profile\/deb_63_hydracor","photoUrl":"https:\/\/lh3.googleusercontent.com\/a\/AATXAJzYn23TqUOGU8A4PW0HalCwzLK5YNQsVxHwYcgL=s96-c","dateLastActive":"2022-10-24T21:35:22+00:00","banned":0,"punished":0,"private":false,"label":"✭✭✭✭✭"}}},"bookmarked":false,"unread":false,"category":{"categoryID":322,"name":"Formulas and Functions","url":"https:\/\/community.smartsheet.com\/categories\/formulas-and-functions","allowedDiscussionTypes":[]},"reactions":[{"tagID":3,"urlcode":"Promote","name":"Promote","class":"Positive","hasReacted":false,"reactionValue":5,"count":0},{"tagID":5,"urlcode":"Insightful","name":"Insightful","class":"Positive","hasReacted":false,"reactionValue":1,"count":0},{"tagID":11,"urlcode":"Up","name":"Vote Up","class":"Positive","hasReacted":false,"reactionValue":1,"count":0},{"tagID":13,"urlcode":"Awesome","name":"Awesome","class":"Positive","hasReacted":false,"reactionValue":1,"count":0}],"tags":[{"tagID":254,"urlcode":"Formulas","name":"Formulas"}]},{"discussionID":96907,"type":"question","name":"Returning Partial String","excerpt":"Hello - Is there a function that can return only the number values in the below example? Kelsey Comeau (204938) Thanks! Ron","categoryID":322,"dateInserted":"2022-10-24T00:19:54+00:00","dateUpdated":null,"dateLastComment":"2022-10-24T20:45:31+00:00","insertUserID":120097,"insertUser":{"userID":120097,"name":"Ronald Anderson","url":"https:\/\/community.smartsheet.com\/profile\/Ronald%20Anderson","photoUrl":"https:\/\/us.v-cdn.net\/6031209\/uploads\/defaultavatar\/nWRMFRX6I99I6.jpg","dateLastActive":"2022-10-24T20:45:56+00:00","banned":0,"punished":0,"private":false,"label":"✭"},"updateUserID":null,"lastUserID":120097,"lastUser":{"userID":120097,"name":"Ronald Anderson","url":"https:\/\/community.smartsheet.com\/profile\/Ronald%20Anderson","photoUrl":"https:\/\/us.v-cdn.net\/6031209\/uploads\/defaultavatar\/nWRMFRX6I99I6.jpg","dateLastActive":"2022-10-24T20:45:56+00:00","banned":0,"punished":0,"private":false,"label":"✭"},"pinned":false,"pinLocation":null,"closed":false,"sink":false,"countComments":2,"countViews":22,"score":null,"hot":3333216325,"url":"https:\/\/community.smartsheet.com\/discussion\/96907\/returning-partial-string","canonicalUrl":"https:\/\/community.smartsheet.com\/discussion\/96907\/returning-partial-string","format":"Rich","lastPost":{"discussionID":96907,"commentID":348504,"name":"Re: Returning Partial String","url":"https:\/\/community.smartsheet.com\/discussion\/comment\/348504#Comment_348504","dateInserted":"2022-10-24T20:45:31+00:00","insertUserID":120097,"insertUser":{"userID":120097,"name":"Ronald Anderson","url":"https:\/\/community.smartsheet.com\/profile\/Ronald%20Anderson","photoUrl":"https:\/\/us.v-cdn.net\/6031209\/uploads\/defaultavatar\/nWRMFRX6I99I6.jpg","dateLastActive":"2022-10-24T20:45:56+00:00","banned":0,"punished":0,"private":false,"label":"✭"}},"breadcrumbs":[{"name":"Home","url":"https:\/\/community.smartsheet.com\/"},{"name":"Formulas and Functions","url":"https:\/\/community.smartsheet.com\/categories\/formulas-and-functions"}],"groupID":null,"statusID":3,"attributes":{"question":{"status":"accepted","dateAccepted":"2022-10-24T20:45:54+00:00","dateAnswered":"2022-10-24T13:56:23+00:00","acceptedAnswers":[{"commentID":348422,"body":"

You would use something along the lines of...<\/p>

=MID([Column Name]@row, FIND(\"(\", [Column Name]@row) + 1, FIND(\")\", [Column Name]@row) - (FIND(\"(\", [Column Name]@row) + 1))<\/p>"}]}},"status":{"statusID":3,"name":"Accepted","state":"closed","recordType":"discussion","recordSubType":"question","log":{"dateUpdated":"2022-10-24 20:45:54","updateUser":{"userID":120097,"name":"Ronald Anderson","url":"https:\/\/community.smartsheet.com\/profile\/Ronald%20Anderson","photoUrl":"https:\/\/us.v-cdn.net\/6031209\/uploads\/defaultavatar\/nWRMFRX6I99I6.jpg","dateLastActive":"2022-10-24T20:45:56+00:00","banned":0,"punished":0,"private":false,"label":"✭"}}},"bookmarked":false,"unread":false,"category":{"categoryID":322,"name":"Formulas and Functions","url":"https:\/\/community.smartsheet.com\/categories\/formulas-and-functions","allowedDiscussionTypes":[]},"reactions":[{"tagID":3,"urlcode":"Promote","name":"Promote","class":"Positive","hasReacted":false,"reactionValue":5,"count":0},{"tagID":5,"urlcode":"Insightful","name":"Insightful","class":"Positive","hasReacted":false,"reactionValue":1,"count":0},{"tagID":11,"urlcode":"Up","name":"Vote Up","class":"Positive","hasReacted":false,"reactionValue":1,"count":0},{"tagID":13,"urlcode":"Awesome","name":"Awesome","class":"Positive","hasReacted":false,"reactionValue":1,"count":0}],"tags":[]}],"title":"Trending in Formulas and Functions ","subtitle":null,"description":null,"noCheckboxes":true,"containerOptions":[],"discussionOptions":[]}">