I have a table and would like to create a formula which would count the number of values that occur three times or more based on column B matching a criteria.
Example: If in column B value is Location1, then count how many values in column A occur more than 2 times. The answer should be 2 for Location1 -- values '4' and '7' occur more than 2 times.
could anyone help me with this formula? I would like the answer fill in another cell... for use in a larger sheet of stats.
Value Location
1 Location1
1 Location20
2 Location20
4 Location1
4 Location1
4 Location1
5 Location1
7 Location1
7 Location1
7 Location1
7 Location1
edit: Found my own solution. Used the "better" version formula found here (in the first answer).
The formula found in that link is:
=SUMPRODUCT((COUNTIF(A2:A10,A2:A10)>1)/COUNTIF(A2:A10,A2:A10&""))
I am familiar with COUNTIF and COUNTIFS, so I added another condition and used COUNTIFS.
The final solution would be
=SUMPRODUCT((COUNTIFS(A2:A12,A2:A12,B2:B12,"Location1")>2)/COUNTIF(A2:A12,A2:A12&""))
I'm not familiar with SUMPRODUCT, so the comparison of the count to ">2" feels unintuitive.

Location1? Wouldn't it be 2 because it appears more than twice for values4and7? Also where do you want the output to be? Do you have a list of allLocationssomewhere? Please edit your question to include/clarify this information. - ImaginaryHuman072889Locations, just assume that it's something likeLocation1toLocation20, and I have this list enumerated as well. - Chris