Nik,
Assume that you table starts in column A, row 2, and is 5 columns wide. In cell F2, use the formula
=" " & A2&" " &B2&" " &C2&" " &D2&" " &E2 & " "
and copy down to match your table.
Then, on the other sheet, with your numbers in row 1 and in column A, in cell B2, use this formula
=COUNTIF('Sheet with table'!$F$2:$F$19,"* " & B$1 & " * " & $A2 & " *") + COUNTIF('Sheet with
table'!$F$2:$F$19,"* " & B$1 & " " & $A2 & " *")
Change the 19 to match the row of the last formula from above.
Then copy this formula to match your table.
You may want to use
=COUNTIF('Sheet with table'!$F$2:$F$19,"* " & B$1 & " * " & $A2 & " *") + COUNTIF('Sheet with
table'!$F$2:$F$19,"* " & B$1 & " " & $A2 & " *") + COUNTIF('Sheet with table'!$F$2:$F$19,"* " & $A2
& " * " & B$1 & " *") + COUNTIF('Sheet with table'!$F$2:$F$19,"* " & $A2 & " " & B$1 & " *")
which will count without regard to order.
HTH,
Bernie
MS Excel MVP
> Hello,
> my question is:
[quoted text clipped - 21 lines]
> appear in the same row in the first table. for example: how many time the numbers 2 and 3 appear
> together in the same row on the first table