this modified version, Cell C11 works out if the numbers were not assigned correctly when its greater than 0.
you can just hit F9 for a new set until C11 = 0
<colgroup><col style="width: 25pxpx"><col><col><col></colgroup><thead>
</thead><tbody>
[TD="align: center"]1[/TD]
[TD="align: right"]1[/TD]
[TD="align: right"]0.006574[/TD]
[TD="align: right"]10[/TD]
[TD="align: center"]2[/TD]
[TD="align: right"]2[/TD]
[TD="align: right"]0.556973[/TD]
[TD="align: right"]7[/TD]
[TD="align: center"]3[/TD]
[TD="align: right"]3[/TD]
[TD="align: right"]0.813525[/TD]
[TD="align: right"]2[/TD]
[TD="align: center"]4[/TD]
[TD="align: right"]4[/TD]
[TD="align: right"]0.434986[/TD]
[TD="align: right"]8[/TD]
[TD="align: center"]5[/TD]
[TD="align: right"]5[/TD]
[TD="align: right"]0.58297[/TD]
[TD="align: right"]6[/TD]
[TD="align: center"]6[/TD]
[TD="align: right"]6[/TD]
[TD="align: right"]0.041771[/TD]
[TD="align: right"]9[/TD]
[TD="align: center"]7[/TD]
[TD="align: right"]7[/TD]
[TD="align: right"]0.767418[/TD]
[TD="align: right"]3[/TD]
[TD="align: center"]8[/TD]
[TD="align: right"]8[/TD]
[TD="align: right"]0.681314[/TD]
[TD="align: right"]4[/TD]
[TD="align: center"]9[/TD]
[TD="align: right"]9[/TD]
[TD="align: right"]0.590022[/TD]
[TD="align: right"]5[/TD]
[TD="align: center"]10[/TD]
[TD="align: right"]10[/TD]
[TD="align: right"]0.85484[/TD]
[TD="align: right"]1[/TD]
[TD="align: center"]11[/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=E2EFDA]#E2EFDA[/URL] , align: right"]0[/TD]
</tbody>
Sheet2
[TABLE="width: 85%"]
<tbody>[TR]
[TD]
Worksheet Formulas[TABLE="width: 100%"]
<thead>[TR="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=DAE7F5]#DAE7F5[/URL] "]
[TH="width: 10px"]Cell[/TH]
[TH="align: left"]Formula[/TH]
[/TR]
</thead><tbody>[TR]
[TH="width: 10px, bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=DAE7F5]#DAE7F5[/URL] "]B1[/TH]
[TD="align: left"]=RAND()[/TD]
[/TR]
[TR]
[TH="width: 10px, bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=DAE7F5]#DAE7F5[/URL] "]C1[/TH]
[TD="align: left"]=RANK(
B1,$B$1:$B$10)[/TD]
[/TR]
[TR]
[TH="width: 10px, bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=DAE7F5]#DAE7F5[/URL] "]C11[/TH]
[TD="align: left"]=SUMPRODUCT(
--(A1:A10=C1:C10))[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[/TR]
</tbody>[/TABLE]