Reputation: 557
How to count text in Google sheet based on other cell value, I want to count Column B if Column C indicates that Column B have Duplicate Value in Column E like bellow. How I can count text.
Upvotes: 0
Views: 2737
Reputation: 1
D3 cell:
=COUNTIF(C2:C, D2)
E3 cell:
=COUNTIF(C2:C, E2)
=ARRAYFORMULA(SUM(N(COUNTIFS(B2:B, B2:B, ROW(B2:B), "<="&ROW(B2:B))>1)))
Upvotes: 1
Reputation: 27302
In F2 try
=query(B2:C, "Select count(B) where B <> '' pivot(C)")
or if you want to count unique values for 'Done' and 'Duplicate' , in D3 try
=countunique(filter($B$2:$B, $C$2:$C=E$2))
and drag to the right for the duplicates count.
I hope that helps?
Upvotes: 3