# CHOOSEROWS

## Content

The function returns the specified rows from an array.

>type=note
> **Note**: CHOOSEROWS is a dynamic array formula, and you need to enable the dynamic array feature in the Workbook.

## Syntax

`CHOOSEROWS(array, row_num1, [row_num2], ...)`

## Arguments

This function has the following arguments:

| Argument | Description |
| -------- | ----------- |
| array | [Required] Refers to the array containing the rows to be returned. |
| *row\_num1* | [Required] 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.

## Examples

![choose-rows.png](https://cdn.mescius.io/document-site-files/images/8d606653-16a0-474d-b9dc-e2b4d01c2446/choose-rows.2c935d.png)