AND function



I am trying to write a formula that would count the number of calls in the last 15 days. Below is my formula. I am first looking at my date column so that it is in between today and 15 days ago. Then I need to only count for if the Type of Dealer (Single Select Drop Down) = DAP Dealer and Merchant if they are New and Onsite. I am receiving a the following error message - #INVALID Operation. What am I missing? I have looked at this formula and I don't see what I am missing.

=COUNTIFS(Date:Date, AND(@cell <= TODAY(), @cell > TODAY(-15)), AND([Type of Dealer]:[Type of Dealer] = "DAP Dealer", [Type of Dealer]:[Type of Dealer] = "Merchant"), [New / Existing]:[New / Existing], "New", [Activity Type]:[Activity Type], "Onsite")

Best Answer

  • Andrée Starå
    Andrée Starå ✭✭✭✭✭✭
    Answer ✓

    Hi @Carol-Anne Cerbone

    I hope you're well and safe!

    Try something like this.

    =COUNTIFS(Date:Date, AND(@cell <= TODAY(), @cell > TODAY(-15)), [Type of Dealer]:[Type of Dealer], OR(@cell = "DAP Dealer", @cell = "Merchant"), [New / Existing]:[New / Existing], "New", [Activity Type]:[Activity Type], "Onsite")

    Did that work/help?

    I hope that helps!

    Be safe, and have a fantastic weekend!


    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, Awesome, or/and as the accepted answer. It will make it easier for others to find a solution or help to answer!


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

    W: | | P: +46 (0) - 72 - 510 99 35

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


Help Article Resources

Want to practice working with formulas directly in Smartsheet?

Check out the Formula Handbook template!