Count if function on dates

Options

Hi,

Can someone help me how to use count if to calculate the no of days that an event happens in a month and create a monthly report based on that? 

Best Answer

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

    @Praz

    Try something like this. (change the last number, so it represents the corresponding month that you want to count) I'd also recommend adding a so-called helper column with the month numbers already added, and then you could use my second formula instead.)

    =
    COUNTIFS([Project Completion Date]:[Project Completion Date], 
    IFERROR(MONTH(@cell), 0) = 1)
    


    =
    COUNTIFS([Project Completion Date]:[Project Completion Date], 
    IFERROR(MONTH(@cell), 0) = [Month Numbers]@row)
    


    Did that work?

    Remember! 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.

Answers

Help Article Resources

Want to practice working with formulas directly in Smartsheet?

Check out the Formula Handbook template!