Hi
I previously received help with a formula to count the number of a specific activity 'last month', which was then adjusted to take account of the change into a new year. The formula I am using is:
=COUNTIFS({Product Specialists Activity Range 4}, @cell = "Courtesy Calls - 1 hour", {Product Specialists Activity Range 5}, AND(IFERROR(MONTH(@cell), 0) = IF(MONTH(TODAY()) = 1, 12, MONTH(TODAY()) - 1), IFERROR(YEAR(@cell), 0) = IF(MONTH(TODAY()) = 1, YEAR(TODAY()) - 1, YEAR(TODAY()))))
I now have another similar requirement in another smartsheet but in this one the activity information is in two different columns 'Primary Activity' where an activity example is Break fix, and 'Time taken' where an example is 2 hours.
This is the formula I have tried which is not working:
=COUNTIFS({DRAFT - Engineers Activity Range 1}, @cell = "Break fix", AND{DRAFT - Engineers Activity Range 2}, @cell = "2 hours", AND(IFERROR(MONTH(@cell), 0) = IF(MONTH(TODAY()) = 1, 12, MONTH(TODAY()) - 1), IFERROR(YEAR(@cell), 0) = IF(MONTH(TODAY()) = 1, YEAR(TODAY()) - 1, YEAR(TODAY())))))
Hope you can help