Conditional count of parents rows only with now children on a date column.

Options

Help!

I have this formula on a different sheet that works when I am counting the dates in the column. However, I want to count only the parent deliverables, not the children’s tasks. Can someone please help me?

=COUNTIFS({CC Label Activities}, AND(@cell >= DATE(year@row, [Month1]@row, 1), @cell <= DATE(year@row, [Month1]@row, 31)))

Sample Data Sheet

Sample Formula sheet

Thank you!

Best Answers

  • Genevieve P.
    Genevieve P. Employee Admin
    edited 12/05/23 Answer ✓
    Options

    Hi @Kingskid

    Ah my apologies! I skipped over the AND in your COUNTIFS. You don't need this as the COUNTIFS is already an AND statement.

    Try:

    =COUNTIFS({Date Logged}, <> "", {CC Label Activities}, >= DATE(year@row, [Month1]@row, 1), {CC Label Activities}, <= DATE(year@row, [Month1]@row, 31))

    Let me know if this gives you an error or incorrect result.

  • Genevieve P.
    Genevieve P. Employee Admin
    Answer ✓
    Options

    Hi @Kingskid

    Since we removed the AND(), you only need 2 )) at the end of the formula. Try removing out one of the ) and see if that helps. 🙂

Answers

Help Article Resources

Want to practice working with formulas directly in Smartsheet?

Check out the Formula Handbook template!