Reputation: 85
Is it possible to achieve the result from Column C using Google Sheets formula?
I was able to count using Query and Unique, but the result is grouped by item. I need the result in a separate column for every item in the list.
Upvotes: 0
Views: 144
Reputation: 3207
Given your example, use the following in C2:
=map(B2:B9,lambda(each,countuniqueifs(A2:A9,B2:B9,each)))
Upvotes: 1