In this example, as I understand, the formula is using a fuzzy search both for the count in D column and for the array in E onwards.
Am I right in thinking, that if I wanted a strict match I could replace column D with this?:
=COUNTIF(B:B,A)
Does anyone know how to adapt the second array...