# COMBIN

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 calculates the number of possible combinations for a specified number of items.

## Syntax

COMBIN(*k*,*n*)

## Arguments

This function has these arguments:

| **Argument** | **Description** |
| -------- | ----------- |
| *k* | Number representing the number of items; if not an integer, the number is truncated; must be positive and greater than or equal to *n* |
| *n* | Number of items in each possible permutation; if not an integer, the number is truncated; must be positive |

## Remarks

A combination is any set or subset of items, regardless of the internal order of the items. Contrast with permutation (the [PERMUT](/spreadnet/docs/latest/online-formula/formulas-functionsall/formulas-functsMtoQ/FunctionPERMUT) function).
The number of combinations is calculated as follows:
![COMBIN Equation](https://cdn.mescius.io/document-site-files/images/0ed25d3e-6b2a-4cf0-8f1b-7ed5ab18cf12/artwork/func-combin.png)

## Data Types

Accepts numeric data for both arguments. Returns numeric data.

## Examples

`COMBIN(C4,B2)`
`COMBIN(B3,5)`
`COMBIN(R1C2,2)`
`COMBIN(8,2)` gives the result 28
`COMBIN(100,3)` gives the result 161700

## Version Available

This function is available in product version 1.0 or later.

## See Also

[PERMUT](/spreadnet/docs/latest/online-formula/formulas-functionsall/formulas-functsMtoQ/FunctionPERMUT) \| [Math and Trigonometry Functions](/spreadnet/docs/latest/online-formula/formulas-overview/formulas-functs/formulas-functtypes/formulas-functsmathtrig)