Subtracting Dates between 2 cells - #INVALID OPERATION

Options

I am using the below formula to subtract 2 cells that contain dates. I have determined that the error is the the operation on the subtraction of the row date from a fixed / start date.

=IF(AND([Column18]8 = "Day 1", $[Column22]$6 - [Column14]8 > 0), 1, 0)

see pic


Answers

  • Bassam Khalil
    Bassam Khalil ✭✭✭✭✭✭
    edited 03/31/21
    Options

    Hi @Jeff Gordon 

    Hope you are fine, please try the following

    =IF(AND([Column18]8 = "Day 1", ($[Column22]$6 - [Column14]8 > 0), 1, 0))

    PMP Certified

    bassam.khalil2009@gmail.com

    ☑️ Are you satisfied with my answer to your question? Please help the Community by marking it as an ( Accepted Answer), and I will be grateful for your "Vote Up" or "Insightful"

  • Jeff Gordon
    Options

    Hi @Bassam.M Khalil


    Thank you for responding so quickly. I copied this into the field and I get the following error.

    Thanks again for your help,

    Jeff.

  • Bassam Khalil
    Bassam Khalil ✭✭✭✭✭✭
    Options

    @Jeff Gordon 

    Please add a copy of your sheet or a screenshot (after removing or replacing any sensitive information). This will make it easier for me to provide the appropriate answer to your question.

    PMP Certified

    bassam.khalil2009@gmail.com

    ☑️ Are you satisfied with my answer to your question? Please help the Community by marking it as an ( Accepted Answer), and I will be grateful for your "Vote Up" or "Insightful"

Help Article Resources

Want to practice working with formulas directly in Smartsheet?

Check out the Formula Handbook template!