Formulas and Functions

Formulas and Functions

Ask for help with your formula and find examples of how others use formulas and functions to solve a similar problem.

Countifs projects starting or ending this week in sheet Summary formaulas

Hi all,


I need help on a formula to gather how many projects are due to start this week. I have this so far, but it returns 0, but one date range is within the parameters.

=COUNTIFS([Target Start Date]:[Target Start Date], WEEKNUMBER(TODAY()))


I also need to count on the [Target End date] on how many are due for completion this week.



All this has to be captured in sheet Summary formulas.


Best Answer

  • Community Champion
    Answer ✓

    Hi @David Clunie

    Try this

    =COUNTIFS([Target Start Date]:[Target Start Date], WEEKNUMBER(TODAY()) = IFERROR(WEEKNUMBER(@cell), 0))

    The piece missing from the formula above was the conversion of the [Target Start Date] into a WeekNumber so the formula could perform the comparison to WeekNumber (Today()). This is now accomplished using WEEKNUMBER(@cell).

    I added the IFERROR to take care of any blanks or non-date entries in your date columns

    cheers,

    Kelly

Answers

  • Community Champion
    Answer ✓

    Hi @David Clunie

    Try this

    =COUNTIFS([Target Start Date]:[Target Start Date], WEEKNUMBER(TODAY()) = IFERROR(WEEKNUMBER(@cell), 0))

    The piece missing from the formula above was the conversion of the [Target Start Date] into a WeekNumber so the formula could perform the comparison to WeekNumber (Today()). This is now accomplished using WEEKNUMBER(@cell).

    I added the IFERROR to take care of any blanks or non-date entries in your date columns

    cheers,

    Kelly

Help Article Resources

Want to practice working with formulas directly in Smartsheet?

Check out the Formula Handbook template!

Trending in Formulas and Functions