# CHOOSEROWS

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

The function returns the specified rows from an array.

## Syntax

=CHOOSEROWS(array,row\_num1,[row\_num2],…) 

## Arguments

The function provides the following arguments:

| **Argument** | **Description** |
| -------- | ----------- |
| *array* | Refers to the array containing the rows to be returned. |
| *row\_num1* | Refers to the first row number to be returned. |
| *[row\_num2]* | [Optional] Refers to the additional row numbers to be returned. |

## Remarks

The function returns a #VALUE error if the absolute value of any of the row\_num arguments is zero or exceeds the number of rows in the array.

## Data Types

The function returns an array,the type of each value in the array depends on the parameter.

## Examples

![](https://cdn.mescius.io/document-site-files/images/0ed25d3e-6b2a-4cf0-8f1b-7ed5ab18cf12/images/chooserows.png)

## Version Available

This function is available in product version 16.0 or later.

> !type=note
> **Note**: The CHOOSEROWS function is only available in Beta Insiders builds of Excel for Office 365 currently. Hence, without the Beta Insiders build you cannot import/export the XLSX using this function from/to Excel.