COUNTIFS failing to accurately count

I'm trying to show how many projects are requested in the next 30 days by department:


I’ve gone through the videos and I believe I have set up my formulas correctly; however, the counts are incorrect.


I'm using the formula =COUNTIFS({Department}, Department@row, {Due date}, <=TODAY(+30))

It's probably something minor that I've overlooked but I cannot seem to get this formula correct. Please help.

Thank you,

Laura

Best Answer

  • Genevieve P.
    Genevieve P. Employee
    edited 05/12/22 Answer ✓

    Hi @Laura2022

    Instead of changing the formula to only = TODAY(), Paul was meaning to add in an additional criteria so you have a range of dates to look through.

    Ex:

    =COUNTIFS({Department}, Department@row, {Due date}, <=TODAY(+30), {Due date}, >=TODAY())

    This will look for any dates that are less than or equal to 30 days from now, but only if they are also greater than or equal to Today.


    I also notice that your Department is a multi-select column. In this instance you'll want to use the HAS Function when you're looking for your Department, to see if the cell has this value along with other selections.

    Try:

    =COUNTIFS({Department}, HAS(@cell, Department@row), {Due date}, <=TODAY(+30), {Due date}, >=TODAY())


    Cheers,

    Genevieve

    Need more information? 👀 | Help and Learning Center

    こんにちは (Konnichiwa), Hallo, Hola, Bonjour, Olá, Ciao!👋 | Global Discussions

Answers

Help Article Resources

Want to practice working with formulas directly in Smartsheet?

Check out the Formula Handbook template!