Hi,
I'm trying to count the number of entries based on two columns. In column A is the year, in column B are study numbers (eg AB-1, TH-2, etc) but some study numbers are repeated (eg TH-2, TH-2). I'm trying to count the number of unique entries in column B that contain TH that occur in a given year. I've tried this: =COUNTIFS([Column A]:[Column A], "2021", DISTINCT([Column B]:[Column B]), CONTAINS("TH", @cell)) but it's not working. I know I can do this by creating a helper column to only include rows in given year but ideally I'd like a single function to do this.
Thanks,
RLum