Hi, I have been struggling with this problem for days, and I can't find a solution. I would really appreciate it, if someone could give a suggestion.
By using the auto-filter option in Excel, I have the answer straight away, but automatically calculating this is a pain (or at least for me).
I have attached a spreadsheet with example data to illustrate.
The problem
Column A has a text string (3 variations to choose from)
Column B has a text string (7 different options)
[B]-> [/B]For all values in column A matching the criteria, I need to count the unique instances in the relative column B
I can calculate the number of different instances in a row, based with the following formula: {=SUM(IF(LEN(B1:B24),1/COUNTIF(B1:B24,B1:B24)))} The If(LEN) part is to ensure empty cells are not causing an error.
Now I need to built in the factor to only count the unique instances for those cells for which cell A matches the criteria.
I would really appreciate some suggestions.
Best,
Wouter.
Bookmarks