I am trying to create a formula which will count all rows (duplicates as one) based on a value in another column.
You can use array formula:
=SUM(--(FREQUENCY(IF(A2:A10=E2,MATCH(B2:B10,B2:B10,0)),ROW(B2:B10)-1)>0))
Array formula after editing is confirmed by pressing ctrl + shift + enter
ctrl
shift
enter
2.1m questions
2.1m answers
60 comments
56.8k users