Add a helper column in Data sheet:
So in J1, enter:
and copy down
Then in B1 of Code sheet enter:
to count number of matches.
Copy B1 and paste to D1, F1, H1
It is assumed that the codes in column G can be derived from the left 3 characters of the countries in row 2 of the Code sheet
Then in B3 enter:
and copy down as far as you wish.
Copy this column of column of formulas to D3, F3, and H3.
Note: It would be easier if you did not have blank columns between... then you would need to enter formula once and copy across the columns and down the rows.
Bookmarks