Hi
On the same sheet as your Thunderball results reserve 39 columns headed 1 through 39 and 14 Thunderball Columns headed 1 to 14.
Assuming the first row if your data is row 2 in the first cell in column headed 1 enter -
Enter this with Control - Shift - Enter ( it is an array formula).
(copying your data to a spreadsheet I have assumed column I)
copy across to the column headed 39 and drag down for all the draws.
Do similarly for the Thunderball with -
changing Y$1 to reference the column where the Thunderball numbers start.
copy across and down as above.
On a separate sheet created a 14 by 39 grid labelled in row 1 and Column A.
In the first cell B2 enter -
Code:
=SUMPRODUCT(--(INDEX(Sheet1!$I$2:$V$5,,$A2)=1),--(INDEX(Sheet1!$Y$2:$AF$5,,B$1)=1))
with Control - Shift - Enter
Alter Sheet1!$I$2:$V$5 to reflect the range where the 0,1s for the numbers are stored and alter Sheet1!$Y$2:$AF$5 to reflect the range where the 0,1s for the Thunderball numbers are stored.
copy across and down.
In this grid you should find the information required at the relevant intersect.
hth