Formulas and Functions

Formulas and Functions

Ask for help with your formula and find examples of how others use formulas and functions to solve a similar problem.

If/And/ISDate/OR

Hi All


I am trying to set up a status message based on a few variables. I can get them to work indidually, but when I bring them all together I get an InvalidData error.


The parameters are If FWA Required= YES and FWA attestation is Date and Date Attestation Form Signed is Date and Education Completion Date is Date. If all are true this is Completed


OR

If FWA Required is NO, Date Attestation Form Signed is Date and Education Completion Date is Date= If all are true this is Completed


If both either are False, "Not Completed"

image.png


Here is my Formula

=IF(AND([FWA Required?]@row = "yes", ISDATE([FWA Attestation Form Signed?]@row) = "true", ISDATE([Education Completion Date]@row) = "true", ISDATE([Date Attestation Form Signed?]@row) = "true"), "Complete", OR(IF(AND([FWA Required?]@row = "No", ISDATE([Education Completion Date]@row) = true), "Complete", "Not Complete")))


Let me know what I am doing wrong.

Tags:

Best Answer

  • Community Champion
    Answer ✓

    @Laura Bartlett

    2 Things:

    1. whenever you are using the ISDATE function you don't need to add ="true"
    2. You can combine the 2 options for 'complete' into 1 using the OR function.

    See below formula:

    =IF(OR(AND([FWA Required?]@row = "Yes", ISDATE([FWA Attestation Form Signed?]@row), ISDATE([Education Completion Date]@row), ISDATE([Date Attestation Form Signed?]@row)),AND([FWA Required?]@row = "No", ISDATE([Date Attestation Form Signed?]@row),ISDATE([Education Completion Date]@row))), "Complete", "Not Complete")

Answers

  • Community Champion
    Answer ✓

    @Laura Bartlett

    2 Things:

    1. whenever you are using the ISDATE function you don't need to add ="true"
    2. You can combine the 2 options for 'complete' into 1 using the OR function.

    See below formula:

    =IF(OR(AND([FWA Required?]@row = "Yes", ISDATE([FWA Attestation Form Signed?]@row), ISDATE([Education Completion Date]@row), ISDATE([Date Attestation Form Signed?]@row)),AND([FWA Required?]@row = "No", ISDATE([Date Attestation Form Signed?]@row),ISDATE([Education Completion Date]@row))), "Complete", "Not Complete")

  • ✭✭✭✭

    OMG! This is great! Thank you so much!

    I might reply again as I think i have some additional questions as to the order and a couple of 'whys'.


    But for now, I'm stoked that you fixed it.

  • ✭✭✭✭

    Hi Leibel!

    It has been a while, but the users are now starting to use the sheet. And unfortunately, if they mark FWA required as "yes" the formula shows as incomplete.

    Can you help?

  • ✭✭✭✭

    OH jezz. Never mind. The FWA signed field was not a date field :(

    I don't know how/when that was changed. But as soon as I narrowed down that field, I noticed it was a text field.

Help Article Resources

Want to practice working with formulas directly in Smartsheet?

Check out the Formula Handbook template!

Trending in Formulas and Functions