How do I get average ranks for rank correlation and rank sum test?
The RANK function returns the highest rank when a number values are tied, whereas most mathematical procedures need an average value instead. To get this, suppose the data are in cells A1:A20 and that this range has been named Range1. Array-enter in cell B1 the formula =SUM(1*(A1>=Range1))-(SUM(1*(A1=Range1))-1)/2 (You array-enter a formula by holding down Ctrl and Shift as you press Enter.) Copy-and-paste that formula into B2:B20.