Top Description Constructors Methods
org.apache.poi.ss.formula.functions

public Class Rank

extends Var2or3ArgFunction
Class Inheritance
Imports
org.apache.poi.ss.formula.eval.AreaEval, .ErrorEval, .EvaluationException, .NumberEval, .OperandResolver, .RefEval, .RefListEval, .ValueEval

Returns the rank of a number in a list of numbers. The rank of a number is its size relative to other values in a list. Syntax: RANK(number,ref,order) Number is the number whose rank you want to find. Ref is an array of, or a reference to, a list of numbers. Nonnumeric values in ref are ignored. Order is a number specifying how to rank number. If order is 0 (zero) or omitted, Microsoft Excel ranks number as if ref were a list sorted in descending order. If order is any nonzero value, Microsoft Excel ranks number as if ref were a list sorted in ascending order.

Constructor Summary

AccessConstructor and Description
public
Rank()

Method Summary

Modifier and TypeMethod and Description
private static AreaEval
private static ValueEval
eval(double arg0, AreaEval aeRange, boolean descending_order)

private static ValueEval
eval(double arg0, RefListEval aeRange, boolean descending_order)

public ValueEval
public ValueEval
private static Double
getValue(AreaEval aeRange, int relRowIndex, int relColIndex)

Inherited from org.apache.poi.ss.formula.functions.Var2or3ArgFunction:
evaluate

Constructor Detail

Rankback to summary
public Rank()

Method Detail

convertRangeArgback to summary
private static AreaEval convertRangeArg(ValueEval eval) throws EvaluationException
evalback to summary
private static ValueEval eval(double arg0, AreaEval aeRange, boolean descending_order)
evalback to summary
private static ValueEval eval(double arg0, RefListEval aeRange, boolean descending_order)
evaluateback to summary
public ValueEval evaluate(int srcRowIndex, int srcColumnIndex, ValueEval arg0, ValueEval arg1)

Implements org.apache.poi.ss.formula.functions.Function2Arg.evaluate.

Doc from org.apache.poi.ss.formula.functions.Function2Arg.evaluate.

see Function#evaluate(ValueEval[], int, int)

Annotations
@Override
evaluateback to summary
public ValueEval evaluate(int srcRowIndex, int srcColumnIndex, ValueEval arg0, ValueEval arg1, ValueEval arg2)

Implements org.apache.poi.ss.formula.functions.Function3Arg.evaluate.

Doc from org.apache.poi.ss.formula.functions.Function3Arg.evaluate.

see Function#evaluate(ValueEval[], int, int)

Annotations
@Override
getValueback to summary
private static Double getValue(AreaEval aeRange, int relRowIndex, int relColIndex)