Formula's between 2 dates, with blank entry for averages

I am relatively new to SS. I am trying to recreate a formula that combines if statement and the # of days between to dates. The issue, If the end date is blank I need the formula to produce no result so that the average works.

In excel the formula would be: =IF(B3=""," ",B3-A3)

Any ideas?

Answers

  • Andrée Starå
    Andrée Starå ✭✭✭✭✭✭
    edited 07/17/21

    Hi @Heather Staples

    I hope you're well and safe!

    Try something like this.

    You probably don't need to check for the blank cell, so I've added the one without the check and two others.

    =[Accepted Date]@row - Approved@row
    


    =IF([Accepted Date]@row = "", "", [Accepted Date]@row - Approved@row)
    


    =IFERROR([Accepted Date]@row - Approved@row, "")
    

    Did that work/help?

    I hope that helps!

    Be safe and have a fantastic weekend!

    Best,

    Andrée Starå | Workflow Consultant / CEO @ WORK BOLD

    Did my post(s) help or answer your question or solve your problem? Please support the Community by marking it Insightful/Vote Up or/and as the accepted answer. It will make it easier for others to find a solution or help to answer!

    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.