For the sake of efficiency I would suggest you do something along the lines of:
Your matrix results are then very basic and fast calculations
Assume for sake of example:
-- your source values (and above calc) is on sheet called Data
-- results matrix occupies is on sheet called Results
-- results matrix range is A1:BS71 [1 to 70 in B1:BS1 and A2:A71]
The calcs for A2:BS71 are basic COUNTIF functions utilising the key column and wildcards
the above uses prior results as and when applicable (eg 1 & 10 / 10 & 1 are the same so need only conduct the slightly slower COUNTIF once)
I tested the above on a data set of 1000+ rows and matrix calculation time was approx. 0.6 second
(You may need to modify formulae above based upon your own locale delimiter - ie ; if not , )
Bookmarks