Count employee (resource) tasks from second smartsheet if the tasks fall in a date range

I am trying to count the how many tasks a resource is assigned in a project schedule (sheet 1) if they are in a date range (sheet 1). The calculations is being done in second sheet (sheet 2).

Example: Peter (resource field is sheet 1) has 10 tasks in a Planned Start date ( Planned start date field in sheet 1). I'd like to see the tasks from 3/18/24 through 3/23/24.

I tried the following formulas.


Attempt 1:

=COUNTIFS({Assign To}, Teammates@row, True([Planned Start Date]@row >= DATE(2024, 3, 18), [Planned Finished Date]@row <= DATE(2024, 3, 23))) - Error unparsehable.

Attempt 2:

I simply and add two fields to the current sheet to eliminate using two sheets until I figure this out.

=COUNTIFS({Assign To}, Teammates@row, ([Planned Start Date]@row β€œ>=DATE(2024, 3, 18)” AND β€œ<= DATE(2024, 3, 23)”) = Error unparsehable.

Attempt:

=COUNTIFS({Assign To}, Teammates@row, AND([Planned Start Date]@row >= DATE(2024, 3, 18), [Planned Finished Date]@row <= DATE(2024, 3, 23))) - Invalid Operator

I know the count for teammates work. I just can't figure out the date range piece.

Any help would be appreciated!

Thank you.

Best Answer

Answers

Help Article Resources

Want to practice working with formulas directly in Smartsheet?

Check out the Formula Handbook template!