If formula with several criteria

Kirsteen Leckie
Kirsteen Leckie ✭✭✭✭
edited 06/19/23 in Formulas and Functions

Hi,

I was working on a formula last week, but I am still struggling with a second criteria on this.

the way its set up, updating the field depending on dates being input into others. this works well as follows;

=IFERROR(IF([Client review Required]@row = "Yes", IF([Actual Submit Date]@row = "", "Pending", (IF([Actual Compete date]@row = "", "Internal Review", (IF([Actual Date to Client]@row = "", "Send To Client", (IF([Actual Client comments]@row = "", "Client Review", (IF([Actual Piramal Response]@row = "", "Addressing Comments", (IF([Actual Final Client Approval]@row = "", "Client Approval", (IF([Actual submission to QA]@row = "", "QA Review", (IF([Actual Final or QA Approval]@row = "", "QA Review", "Approved"))))))))))))))), ""), "")

However this is only if the Client review required cell is 'Yes' I am trying to resolve when the cell is 'No' - where 'No' is selected the status must miss the middle Status sections and jump right to 'QA Review and then 'Approved' As per this latter section - "(IF([Actual Final or QA Approval]@row = "", "QA Review", "Approved"))"

I am really struggling on how I get this section into the above formula - or if this is even possible?

Tags:

Best Answer

  • Amit Wadhwani
    Amit Wadhwani ✭✭✭✭✭✭
    Answer ✓

    @Kirsteen Leckie

    I made some tweaks to the formula, please try below

    =IF([Client review Required]@row = "Yes", IF([Actual Submit Date]@row = "", "Pending", (IF([Actual Compete date]@row = "", "Internal Review", (IF([Actual Date to Client]@row = "", "Send To Client", (IF([Actual Client comments]@row = "", "Client Review", (IF([Actual Piramal Response]@row = "", "Addressing Comments", (IF([Actual Final Client Approval]@row = "", "Client Approval", (IF([Actual submission to QA]@row = "", "QA Review", (IF([Actual Final or QA Approval]@row = "", "QA Review", "Approved"))))))))))))))), IF([Client review Required]@row = "No", IF([Actual Final or QA Approval]@row = "", "QA Review", "Approved")))
    

    Best Regards
    Amit Wadhwani
    , Smartsheet Community Champion
    Smartsheet CoE, Ignatiuz, Inc., Exton, PA

    Did this answer help you? Show some love by marking this answer as "Insightful
    💡" or "Awesome ❤️" and "Vote Up ⬆️"https://www.linkedin.com/in/amitinddr/

Answers

  • Amit Wadhwani
    Amit Wadhwani ✭✭✭✭✭✭

    Hi @Kirsteen Leckie

    You may want to try below variation

    =IFERROR(IF([Client review Required]@row = "Yes", IF([Actual Submit Date]@row = "", "Pending", (IF([Actual Compete date]@row = "", "Internal Review", (IF([Actual Date to Client]@row = "", "Send To Client", (IF([Actual Client comments]@row = "", "Client Review", (IF([Actual Piramal Response]@row = "", "Addressing Comments", (IF([Actual Final Client Approval]@row = "", "Client Approval", (IF([Actual submission to QA]@row = "", "QA Review", (IF([Actual Final or QA Approval]@row = "", "QA Review", "Approved"))))))))))))))), "",IF([Client review Required]@row = "No",IF([Actual Final or QA Approval]@row = "", "QA Review", "Approved"))),"")
    

    Best Regards
    Amit Wadhwani
    , Smartsheet Community Champion
    Smartsheet CoE, Ignatiuz, Inc., Exton, PA

    Did this answer help you? Show some love by marking this answer as "Insightful
    💡" or "Awesome ❤️" and "Vote Up ⬆️"https://www.linkedin.com/in/amitinddr/

  • Kirsteen Leckie
    Kirsteen Leckie ✭✭✭✭

    Hi @Amit Wadhwani,

    Thank you for your help, however this is generating a #INCORRECT ARGUMENT SET error. apologies, I am really struggling with getting my head around this one!

  • Hollie Green
    Hollie Green ✭✭✭✭✭✭
    edited 06/19/23

    If the Client review required will always be filled in with either a yes or a no you can put it where the false value would go for the Client review required = "yes" would be in your formula.

    When I have an extremely long formula like that I usually click after each , to find where it tells me my first value if false goes.

  • Amit Wadhwani
    Amit Wadhwani ✭✭✭✭✭✭
    Answer ✓

    @Kirsteen Leckie

    I made some tweaks to the formula, please try below

    =IF([Client review Required]@row = "Yes", IF([Actual Submit Date]@row = "", "Pending", (IF([Actual Compete date]@row = "", "Internal Review", (IF([Actual Date to Client]@row = "", "Send To Client", (IF([Actual Client comments]@row = "", "Client Review", (IF([Actual Piramal Response]@row = "", "Addressing Comments", (IF([Actual Final Client Approval]@row = "", "Client Approval", (IF([Actual submission to QA]@row = "", "QA Review", (IF([Actual Final or QA Approval]@row = "", "QA Review", "Approved"))))))))))))))), IF([Client review Required]@row = "No", IF([Actual Final or QA Approval]@row = "", "QA Review", "Approved")))
    

    Best Regards
    Amit Wadhwani
    , Smartsheet Community Champion
    Smartsheet CoE, Ignatiuz, Inc., Exton, PA

    Did this answer help you? Show some love by marking this answer as "Insightful
    💡" or "Awesome ❤️" and "Vote Up ⬆️"https://www.linkedin.com/in/amitinddr/

Help Article Resources

Want to practice working with formulas directly in Smartsheet?

Check out the Formula Handbook template!