Nested IF/AND

Michelle Kallam
Michelle Kallam ✭✭
edited 12/09/19 in Formulas and Functions

When I check Declined Date, it is not changing to "Declined". Can someone help?

=IF(AND(NOT(ISBLANK([Submit to Design Agency]8)), ISBLANK([Submit for Approval]8), ISBLANK([Approval Date]8), [Declined Date]8 = 0), "Submitted to Design Agency",Β 

IF(AND(NOT(ISBLANK([Submit to Design Agency]8)), NOT(ISBLANK([Submit for Approval]8)), ISBLANK([Approval Date]8), [Declined Date]8 = 0), "Submitted for Approval",Β 

IF(AND(NOT(ISBLANK([Submit to Design Agency]8)), NOT(ISBLANK([Submit for Approval]8)), NOT(ISBLANK([Approval Date]8)), [Declined Date]8 = 0), "Approved",Β 

IF(AND(NOT(ISBLANK([Submit to Design Agency]8)), NOT(ISBLANK([Submit for Approval]8)), ISBLANK([Approval Date]8), [Declined Date]8 = 1), "Declined", ""))))

Β 

Β 

Β 

Tags:

Comments

  • AndrΓ©e StarΓ₯
    AndrΓ©e StarΓ₯ Community Champion

    Hi Michelle,

    Can you describe your process in more detail and maybe share the sheet(s) or some screenshots? That would make it easier to help.Β 

    Have a fantastic day!

    Best,

    AndrΓ©e StarΓ₯

    Workflow Consultant @ Get Done Consulting

    SMARTSHEET EXPERT CONSULTANT & PARTNER

    AndrΓ©e StarΓ₯ | Workflow Consultant / CEO @ WORK BOLD

    W: www.workbold.com | E: andree@workbold.com | P: +46 (0) - 72 - 510 99 35

    Feel free to contact me for help with Smartsheet, integrations, general workflow advice, or anything else.

  • Michelle Kallam
    Michelle Kallam ✭✭

    1. if Submit to Design Agency has a date, submit for approval is blank, approval date is blank and declined date is not checked, then I want to change Artwork Approval to "Submitted to Design Agency"

    Β 

    2. if Submit to Design Agency has a date and submit for approval has a date but approval date is blank and declined date is not checked, then I want to change Artwork Approval to "Submitted for Approval"

    Β 

    3. If submit to design agency has a date, submit for approval has a date and Approval date has a date but declined date is not checked, then I want to change Artwork Approval to "Approved"

    Β 

    4.If Submit to Design Agency has a date and submit for approval has a date but approval date is blank and declined date IS checked, then I want to change Artwork Approval to "Declined"

    Β 

    Everything is working except #4. I cannot get the status to change to "Declined".

    Β 

    **I just realized I should have renamed "DeclineΒ Date" to "Decline" when I changed it from a date to a checkbox

    Smartsheet.PNG

  • Michelle Kallam
    Michelle Kallam ✭✭

    And thank you for getting back to me. :)

  • Sterling
    Sterling ✭✭
    Hi Michelle, I reworked the formula because for some reason I was getting an error when I copied it over. It produces the same results, but instead of checking if a cell is blank it checks if there is a date in the cell.

    =IF(AND(ISDATE([Submit to Design Agency]@row), NOT(ISDATE([Submit for Approval]@row)), NOT(ISDATE([Approval Date]@row)), [Declined Date]@row = 0), "Submitted to Design Agency", IF(AND(ISDATE([Submit to Design Agency]@row), ISDATE([Submit for Approval]@row), NOT(ISDATE([Approval Date]@row)), [Declined Date]@row = 0), "Submitted for Approval", IF(AND(ISDATE([Submit to Design Agency]@row), ISDATE([Submit for Approval]@row), ISDATE([Approval Date]@row), [Declined Date]@row = 0), "Approved", IF(AND(ISDATE([Submit to Design Agency]@row), ISDATE([Submit for Approval]@row), NOT(ISDATE([Approval Date]@row)), [Declined Date]@row = 1), "Declined", ""))))
  • AndrΓ©e StarΓ₯
    AndrΓ©e StarΓ₯ Community Champion

    Happy to help!

    I saw that Sterling answered below.

    Best,

    AndrΓ©e

    SMARTSHEET EXPERT CONSULTANT & PARTNER

    AndrΓ©e StarΓ₯ | Workflow Consultant / CEO @ WORK BOLD

    W: www.workbold.com | E: andree@workbold.com | P: +46 (0) - 72 - 510 99 35

    Feel free to contact me for help with Smartsheet, integrations, general workflow advice, or anything else.

  • Michelle Kallam
    Michelle Kallam ✭✭

    Thank you!!!!!!

Help Article Resources

Want to practice working with formulas directly in Smartsheet?

Check out the Formula Handbook template!