# COUNTIFS

Spread for WinForms provides advanced software components that support Excel import/export, full cell customization, an extensive calculation engine with over 450 functions and more, all with zero dependencies on Excel.

## Content



This function returns the number of cells that meet multiple conditions.

## Syntax

COUNTIFS(*cellrange*,*condition*)

## Arguments

This function has these arguments:

| **Argument** | **Description** |
| -------- | ----------- |
| *cellrange* | Range of cells to count; cell range reference |
| *condition* | Condition that determines which cells are counted, as a text, number, or expression (where expressions use the relational operators detailed in [Operators in a Formula](/spreadnet/docs/latest/online-formula/formulas-overview/formulas-operators)) |

## Data Types

Accepts cell range reference. Returns numeric data.

## Examples

`COUNTIFS(A1:G5,"test",B3:D3,"=Yes")`
`COUNTIFS(R6C3:R9C4,"<2")`

## Version Available

This function is available in product version 5.0 or later.

## See Also

[COUNT](/spreadnet/docs/latest/online-formula/formulas-functionsall/formulas-functsAtoC/FunctionCOUNT) \| [COUNTA](/spreadnet/docs/latest/online-formula/formulas-functionsall/formulas-functsAtoC/FunctionCOUNTA) \| [COUNTBLANK](/spreadnet/docs/latest/online-formula/formulas-functionsall/formulas-functsAtoC/FunctionCOUNTBLANK) \| [SUMIF](/spreadnet/docs/latest/online-formula/formulas-functionsall/formulas-functsRtoS/FunctionSUMIF) \| [Statistical Functions](/spreadnet/docs/latest/online-formula/formulas-overview/formulas-functs/formulas-functtypes/formulas-functsstats)