# CHOOSEROWS

## Content

The function returns the specified rows from an array.

## Syntax

`=CHOOSEROWS(array,row_num1,[row_num2],…)`

## Argument

This function has 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. |

## Data Types

Returns an array, <span style="color: rgb(23, 43, 77); font-family: -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Oxygen, Ubuntu, Fira Sans, Droid Sans, Helvetica Neue, sans-serif; font-size: 16px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: -0.08px; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: pre-wrap; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;">the type of each value in the array depends on the parameter.</span>

## 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://gcdocumentsitekrblob.blob.core.windows.net/document-site-files/images/8d606653-16a0-474d-b9dc-e2b4d01c2446/choose-rows.2c935d.png)