Forum Discussion

Officeuser7777's avatar
Officeuser7777
Copper Contributor
Jun 16, 2024
Solved

Counting instances across three columns not just one

Hi, I am trying to figure out how to code for the resulting tables #1 and #2 in the screenshot, based on the data table. Each publication can be characterized by 1 to 3 categories of humour in domain...
  • dscheikey's avatar
    Jun 16, 2024

    Officeuser7777 

    You can count your entries with a combination of FILTER() and SUMPRODUCT().

    =SUMPRODUCT(--(TOCOL(FILTER(Publication[[Acategory1]:[Acategory3]],Publication[Type]=B$16),1)=$A17))

    COUNTIF() does not seem to work with a filtered list.