I am trying to get a count of unique identifiers based on variables from two different columns. In addition, in one of those columns, I need to add multiple additional criteria. For example:
Column A Column B Column C
NJ Joe A
NJ John B
NY Mike A
CA Dave C
NJ Dan A
NJ Joe A
NJ Joe D
NY Pete A
What I am looking for is if Column A= ”NJ” or “NY” and Column C=A, then count unique names in Column B. In my example above, the total unique count would be 4 (Joe from NJ, Mike from NY, Dan from NJ and Pete from NY). The formula that I have been experimenting is this:
{=sum(--(frequency(if((C2:C8=”A”)*(A2:A8=”NJ”),B2:B8),B2:B8)>0))}
This formula would work if I only needed to incorporate one variable from column A, but I cannot seem to figure out how to add multiple criteria from column A.
Any help is greatly appreciated.
Thanks,
Column A Column B Column C
NJ Joe A
NJ John B
NY Mike A
CA Dave C
NJ Dan A
NJ Joe A
NJ Joe D
NY Pete A
What I am looking for is if Column A= ”NJ” or “NY” and Column C=A, then count unique names in Column B. In my example above, the total unique count would be 4 (Joe from NJ, Mike from NY, Dan from NJ and Pete from NY). The formula that I have been experimenting is this:
{=sum(--(frequency(if((C2:C8=”A”)*(A2:A8=”NJ”),B2:B8),B2:B8)>0))}
This formula would work if I only needed to incorporate one variable from column A, but I cannot seem to figure out how to add multiple criteria from column A.
Any help is greatly appreciated.
Thanks,