Difference between revisions of "Documentation/How Tos/Calc: RANK function"
From Apache OpenOffice Wiki
< Documentation | How Tos
m |
m |
||
(2 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
− | __NOTOC__ | + | {{DISPLAYTITLE:RANK function}} |
+ | {{Documentation/CalcFunc StatisticalTOC | ||
+ | |ShowPrevNext=block | ||
+ | |PrevPage=Documentation/How_Tos/Calc:_QUARTILE_function | ||
+ | |NextPage=Documentation/How_Tos/Calc:_SMALL_function | ||
+ | }}__NOTOC__ | ||
== RANK == | == RANK == | ||
Line 23: | Line 28: | ||
===Issues: === | ===Issues: === | ||
* By design, <tt>'''RANK'''</tt> returns the same rank for any value that is repeated in <tt>'''numberlist'''</tt>. If you wish a unique rank for each number in (say) <tt>'''A1:A4'''</tt>, enter <tt>'''=RANK(A1;$A$1:$A$4)+COUNTIF($A$1:A1;A1)-1'''</tt> in cell <tt>'''B1'''</tt> and copy/paste into <tt>'''B2:B4'''</tt>. | * By design, <tt>'''RANK'''</tt> returns the same rank for any value that is repeated in <tt>'''numberlist'''</tt>. If you wish a unique rank for each number in (say) <tt>'''A1:A4'''</tt>, enter <tt>'''=RANK(A1;$A$1:$A$4)+COUNTIF($A$1:A1;A1)-1'''</tt> in cell <tt>'''B1'''</tt> and copy/paste into <tt>'''B2:B4'''</tt>. | ||
− | * Calc assumes that any logical values are <tt>'''1'''</tt> (<tt>'''TRUE'''</tt>) and <tt>'''0'''</tt> (<tt>'''FALSE'''</tt>). Excel's | + | * Calc assumes that any logical values are <tt>'''1'''</tt> (<tt>'''TRUE'''</tt>) and <tt>'''0'''</tt> (<tt>'''FALSE'''</tt>). Excel's behavior with logical values may be 'unexpected'. |
− | {{ | + | {{SeeAlso|EN| |
* [[Documentation/How_Tos/Calc: LARGE function|LARGE]] | * [[Documentation/How_Tos/Calc: LARGE function|LARGE]] | ||
* [[Documentation/How_Tos/Calc: SMALL function|SMALL]] | * [[Documentation/How_Tos/Calc: SMALL function|SMALL]] |