Hello everybody,
I'm pounding my head on the following problem.
Suppose I have a sequence of 7 random numbers in a row, each number in the next column.
(I do know how to randomly generate numbers so this is not the problem).
On the next row I have another sequence of 7 random numbers.
For instance:
1 - 12 - 24 - 31 - 37 - 44
3 - 15 - 27 - 37 - 43 - 45
I'm looking for a formula that would give me as a result 1, because in this case when compared row 1 with row 2, the number 37 was generated twice.
If there would be 2 numbers that would be the same, the formula should give as a result 2, and so on.
I'm thinking about the formula 'compare' or 'search' but how do I construct the formula for the above problem
Thanks a bunch in advance.
I'm pounding my head on the following problem.
Suppose I have a sequence of 7 random numbers in a row, each number in the next column.
(I do know how to randomly generate numbers so this is not the problem).
On the next row I have another sequence of 7 random numbers.
For instance:
1 - 12 - 24 - 31 - 37 - 44
3 - 15 - 27 - 37 - 43 - 45
I'm looking for a formula that would give me as a result 1, because in this case when compared row 1 with row 2, the number 37 was generated twice.
If there would be 2 numbers that would be the same, the formula should give as a result 2, and so on.
I'm thinking about the formula 'compare' or 'search' but how do I construct the formula for the above problem

Thanks a bunch in advance.