I'm trying to get a count by month for two columns if the row matches a criteria. So if the Planning Level Indicator equals "Level 1", count the number of if the date equals January 2022 in the Screen 1 and Screen 2 columns. The answer for the first row should be 1.
But I'm summarizing for the month, so I'm using a cross sheet reference with the following formula (where the range of both columns Screen 1 and Screen 2 is named "Screens":
January Count for Screen 1 and Screen 2=
IF({Planning Level Indicator}@row= "Level 1", COUNTIF({Screens}, AND(IFERROR(MONTH(@cell), 0) = 1, IFERROR(YEAR(@cell), 0) = 2022)))
I think I'm looking at this completely wrong, but have tried several interation and can't seem to figure out where I'm going wrong. Any help is much appreciated!