Count based on Multiple Criteria & Dates

Hi,

I am attempting to create a formula that would =

Count the number of training items completed per team member and between two dates.

I created this formula, it is giving me all Zeros:

=COUNTIFS([Actual End Date]:[Actual End Date], <=DATE(2024, 1, 1), [Actual End Date]:[Actual End Date], >=DATE(2024, 12, 30), Status:Status, "Training Completed - 100%", [Team Members]:[Team Members], [Team Members]@row)

Can someone provide guidance on what I am doing wrong?

Also, how can i use the output of this formula to produce a status - so if the output of the formula above is less than 5 = output would be "Needs more training". Or do I need to create a seperate column for that?

Thank you!

Tags:

Answers

  • Nic Larsen
    Nic Larsen ✭✭✭✭✭✭

    The only thing that jumps out is the Dates. The way it reads is less than 1/1/24 and greater than 12/30/24… I'd swap the direction of the <>.

  • PerDeSi
    PerDeSi ✭✭✭

    Thanks Nic!

    That helped a bit, it now showing a number instead of an error.

    Unfortuantly, it is now 0 on all the rows but showing a 1 on the ROWS where there is an date in the [Actual End Date] column.

  • Nic Larsen
    Nic Larsen ✭✭✭✭✭✭

    If there are blanks in the date column that will impact what it can count based on the criteria you have listed. Would it be more accurate to remove the 2nd Date constraint so it's only looking to count for training that has happened since >= 1/1/24?

    I didn't see your 2nd question, but you could add a column that takes the result of this column and returns a status. So, if this column is <5, it returns "need more training", for example.

  • Paul Newcome
    Paul Newcome ✭✭✭✭✭✭

    "Unfortuantly, it is now 0 on all the rows but showing a 1 on the ROWS where there is an date in the [Actual End Date] column."

    Are you able to provide a screenshot?

Help Article Resources

Want to practice working with formulas directly in Smartsheet?

Check out the Formula Handbook template!