Hello,
I want a formula for counting paired values (numeric or non-numeric) within a single row or column, irrespective of order. Searching for an answer has only given me COUNTIF formulae for counting pairs between two or more columns, but I feel there should be some kind of an array solution...?
In the example below, each Pair (A, B, or C) in the first row corresponds to one of two values in the Choice row (A = 2 or 3, B = 4 or 5, C = 6 or 7).
Within the Choice row, I want to count the total number of times, for each value pair, both "choices" were selected. Another way of putting this, in terms of this example, would be "How many instances of the value 2 have a corresponding value 3 within the same row?".
Finally, I want to sum these totals.
Excel count question.png
Hence, the answer to the above example is:
Pair A = 2 (the value 2 appears 6 times, but has a corresponding value 3 only twice).
Pair B = 2 (the value 4 appears 5 times, but has a corresponding value 5 only twice).
Pair C = 4 (the value 6 appears 4 times and each instance has a corresponding value 7).
Total = 8.
Hope that all makes sense and someone can help. Thanks very much!
Bookmarks