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!
Best Answer
-
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.
Answers
-
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 <>.
-
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.
-
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.
-
"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?
-
Thanks @Nic Larsen & @Paul Newcome for your response.
I re-wrote the formula (to exclude blanks) and realized I was selecting the wrong column for Team Members.
Thank you for your help!
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Smartsheet Customer Resources
- 64.3K Get Help
- 419 Global Discussions
- 221 Industry Talk
- 461 Announcements
- 4.8K Ideas & Feature Requests
- 143 Brandfolder
- 142 Just for fun
- 58 Community Job Board
- 462 Show & Tell
- 32 Member Spotlight
- 1 SmartStories
- 300 Events
- 39 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!