Forum Discussion
Officeuser7777
Jun 16, 2024Copper Contributor
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...
- Jun 16, 2024
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.
Officeuser7777
Jun 17, 2024Copper Contributor
Thank you! What is the double hyphen in front to (TOCOL ?
dscheikey
Jun 17, 2024Bronze Contributor
This turns true or false into a 1 or a 0, from which the sum can be calculated.