Countifs by year and month with nested countifs for other values

I am trying to count up survey responses by month and year on another sheet. I took this in bite size pieces so this first formula is the whole formula currently working on.

=(COUNTIFS({Survey Range 2},YEAR{Survey Range 2}=2020,MONTH{Survey Range 2}=9),((COUNTIFS({Product}, "Buildings", {Survey Range 1}, "4-Meets Needs")) + (COUNTIFS({Product}, "Buildings", {Survey Range 1}, "5-Exceeds Needs"))) / COUNTIF({Product}, "Buildings"))

This is the portion that isn't working =(COUNTIFS({Survey Range 2},YEAR{Survey Range 2}=2020,MONTH{Survey Range 2}=9),

This portion is working as expected ((COUNTIFS({Product}, "Buildings", {Survey Range 1}, "4-Meets Needs")) + (COUNTIFS({Product}, "Buildings", {Survey Range 1}, "5-Exceeds Needs"))) / COUNTIF({Product}, "Buildings"))

Currently returning #Unparseable


The Survey Range 2 is referencing a date-formated column in another sheet. (image below)


Best Answer

  • Athar
    Athar ✭✭
    Answer ✓

    @abargholz create two columns "Year" and "Month" next to this auto date column.

    Put column formula YEAR ([Created]@row) and MONTH([Created]@row) in above columns. Then reference these columns in your formula as per your requirement. I hope it'll solve your problem.


    _____________________________________________________________________________________________________________________

    datalime.net

Answers

Help Article Resources

Want to practice working with formulas directly in Smartsheet?

Check out the Formula Handbook template!