Syntax: COUNTIF ( range, criteria )
| range | is the range of cells to be counted based on the criteria |
|---|---|
| criteria | is used to determine which cells to count |
| Modifier and Type | Class and Description |
|---|---|
| private static class | |
| private static class | |
| public static class | |
| private abstract static class | |
| private static class | |
| public static class |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| private double | Returns: the number of evaluated cells in the range that match the specified criteria
|
| pack-priv static CountUtils. | Returns: null if the arg evaluates to blank.Creates a criteria predicate object for the supplied criteria arg |
| private static CountUtils. | createGeneralMatchPredicate(StringEval stringEval)
When the second argument is a string, many things are possible |
| public ValueEval | evaluate(int srcRowIndex, int srcColumnIndex, ValueEval arg0, ValueEval arg1)
Implements org. |
| private static ValueEval | Returns: the de-referenced criteria arg (possiblyErrorEval)
|
| pack-priv static Boolean | Returns: null to represent blank valuesBoolean literals ('TRUE', 'FALSE') treated similarly but NOT same as numbers. |
| private static ErrorEval |
| Countif | back to summary |
|---|---|
| public Countif() | |
| countMatchingCellsInArea | back to summary |
|---|---|
private double countMatchingCellsInArea(ValueEval rangeArg, CountUtils.
| |
| createCriteriaPredicate | back to summary |
|---|---|
| pack-priv static CountUtils. Creates a criteria predicate object for the supplied criteria arg
| |
| createGeneralMatchPredicate | back to summary |
|---|---|
| private static CountUtils. When the second argument is a string, many things are possible | |
| evaluate | back to summary |
|---|---|
| public ValueEval evaluate(int srcRowIndex, int srcColumnIndex, ValueEval arg0, ValueEval arg1) Implements org. Doc from org. see
| |
| evaluateCriteriaArg | back to summary |
|---|---|
| private static ValueEval evaluateCriteriaArg(ValueEval arg, int srcRowIndex, int srcColumnIndex) | |
| parseBoolean | back to summary |
|---|---|
| pack-priv static Boolean parseBoolean(String strRep) Boolean literals ('TRUE', 'FALSE') treated similarly but NOT same as numbers.
| |
| parseError | back to summary |
|---|---|
| private static ErrorEval parseError(String value) | |
| Modifier and Type | Field and Description |
|---|---|
| private final int |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| private static int | |
| protected String | getValueText()
Implements abstract org.
|
| public boolean |
| _value | back to summary |
|---|---|
| private final int _value | |
| BooleanMatcher | back to summary |
|---|---|
| public BooleanMatcher(boolean value, Countif. | |
| boolToInt | back to summary |
|---|---|
| private static int boolToInt(boolean value) | |
| getValueText | back to summary |
|---|---|
| protected String getValueText() Implements abstract org.
| |
| matches | back to summary |
|---|---|
| public boolean matches(ValueEval x) Implements org.
| |
| Modifier and Type | Field and Description |
|---|---|
| private final int | |
| private final String | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final Countif. | |
| public static final Countif. | |
| public static final Countif. | |
| public static final Countif. | |
| public static final Countif. | |
| public static final Countif. | |
| public static final Countif. |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | |
| public boolean | |
| public int | |
| public int | |
| public static Countif. | |
| public String | |
| private static Countif. | |
| public String |
| _code | back to summary |
|---|---|
| private final int _code | |
| _representation | back to summary |
|---|---|
| private final String _representation | |
| EQ | back to summary |
|---|---|
| public static final int EQ | |
| GE | back to summary |
|---|---|
| public static final int GE | |
| GT | back to summary |
|---|---|
| public static final int GT | |
| LE | back to summary |
|---|---|
| public static final int LE | |
| LT | back to summary |
|---|---|
| public static final int LT | |
| NE | back to summary |
|---|---|
| public static final int NE | |
| NONE | back to summary |
|---|---|
| public static final int NONE | |
| OP_EQ | back to summary |
|---|---|
| public static final Countif. | |
| OP_GE | back to summary |
|---|---|
| public static final Countif. | |
| OP_GT | back to summary |
|---|---|
| public static final Countif. | |
| OP_LE | back to summary |
|---|---|
| public static final Countif. | |
| OP_LT | back to summary |
|---|---|
| public static final Countif. | |
| OP_NE | back to summary |
|---|---|
| public static final Countif. | |
| OP_NONE | back to summary |
|---|---|
| public static final Countif. | |
| CmpOp | back to summary |
|---|---|
| private CmpOp(String representation, int code) | |
| evaluate | back to summary |
|---|---|
| public boolean evaluate(boolean cmpResult) | |
| evaluate | back to summary |
|---|---|
| public boolean evaluate(int cmpResult) | |
| getCode | back to summary |
|---|---|
| public int getCode() | |
| getLength | back to summary |
|---|---|
public int getLength()
| |
| getOperator | back to summary |
|---|---|
| public static Countif. | |
| getRepresentation | back to summary |
|---|---|
| public String getRepresentation() | |
| op | back to summary |
|---|---|
| private static Countif. | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non- | |
| Modifier and Type | Field and Description |
|---|---|
| private final int |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public int | |
| protected String | getValueText()
Implements abstract org.
|
| public boolean |
| _value | back to summary |
|---|---|
| private final int _value | |
| ErrorMatcher | back to summary |
|---|---|
| public ErrorMatcher(int errorCode, Countif. | |
| getValue | back to summary |
|---|---|
| public int getValue() | |
| getValueText | back to summary |
|---|---|
| protected String getValueText() Implements abstract org.
| |
| matches | back to summary |
|---|---|
| public boolean matches(ValueEval x) Implements org.
| |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| protected final boolean | |
| protected final boolean | |
| protected final int | |
| protected abstract String | |
| public final String |
| _operator | back to summary |
|---|---|
| private final Countif. | |
| MatcherBase | back to summary |
|---|---|
| pack-priv MatcherBase(Countif. | |
| evaluate | back to summary |
|---|---|
| protected final boolean evaluate(int cmpResult) | |
| evaluate | back to summary |
|---|---|
| protected final boolean evaluate(boolean cmpResult) | |
| getCode | back to summary |
|---|---|
| protected final int getCode() | |
| getValueText | back to summary |
|---|---|
| protected abstract String getValueText() | |
| toString | back to summary |
|---|---|
| public final String toString() Overrides java. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non- | |
| Modifier and Type | Field and Description |
|---|---|
| private final double |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| protected String | getValueText()
Implements abstract org.
|
| public boolean |
| _value | back to summary |
|---|---|
| private final double _value | |
| NumberMatcher | back to summary |
|---|---|
| public NumberMatcher(double value, Countif. | |
| getValueText | back to summary |
|---|---|
| protected String getValueText() Implements abstract org.
| |
| matches | back to summary |
|---|---|
| public boolean matches(ValueEval x) Implements org.
| |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| protected String | getValueText()
Implements abstract org.
|
| public static Pattern | Returns: null if the specified value contains no special wildcard characters.Translates Excel countif wildcard strings into java regex strings |
| public boolean |
| _pattern | back to summary |
|---|---|
| private final Pattern _pattern | |
| _value | back to summary |
|---|---|
| private final String _value | |
| StringMatcher | back to summary |
|---|---|
| public StringMatcher(String value, Countif. | |
| getValueText | back to summary |
|---|---|
| protected String getValueText() Implements abstract org.
| |
| getWildCardPattern | back to summary |
|---|---|
| public static Pattern getWildCardPattern(String value) Translates Excel countif wildcard strings into java regex strings
| |
| matches | back to summary |
|---|---|
| public boolean matches(ValueEval x) Implements org.
| |