CHOOSEROWS function

Contido

# CHOOSEROWS

Returns the specified rows from an array.

Introduza a fórmula como fórmula de matriz. Suxestión: Introduza a fórmula empregando as teclas Ctrl + Maiús + Intro.

### Sintaxe

=CHOOSEROWS(Array; Row_1 [; Row_2 [; Row_3 [; ...]]])

Array: The array containing the rows to be returned in a new array.

Row_1: The index of the first row to be returned. A negative value chooses from the end of the array.

Row_2; Row_3; ...: (optional) The list of other row indexes to be returned. A negative value chooses from the end of the array.

None of the values of Row_1; Row_2; ... can be zero.

The absolute value of each of Row_1; Row_2; ... must be less than or equal to the number of rows of Array.

Use the function CHOOSEROWS to reorder the rows of an array. You can also replicate rows by repeating the row index.

### Exemplos

Consider the array A1:E3 below:

| A | B | C | D | E
--- | --- | --- | --- | --- | ---
1 | AAA | BBB | CCC | DDD | EEE
2 | FFF |  |  | III | JJJ
3 | KKK | LLL | MMM | NNN | OOO

The formula {=CHOOSEROWS(A1:E3;2;3)} returns the array below with rows 2 and 3 chosen.

FFF |  |  | III | JJJ
KKK | LLL | MMM | NNN | OOO

The formula =CHOOSEROWS(A1:E3;1;-1) returns the array below with row 1 and row 3 chosen, note that row 3 is chosen from the end of the array.

AAA | BBB | CCC | DDD | EEE
KKK | LLL | MMM | NNN | OOO

CHOOSEROWS(Array; Rown) is equivalent to INDEX(Array; Rown).

#### Información técnica

Esta función está dispoñíbel desde a versión 25.8 do LibreOffice.

Esta función NON é parte do estándar Formato Open Document para Aplicacións de Ofimática (OpenDocument), versión 1.3. Parte 4: Fórmula recalculada (OpenFormula). O espazo de nomes é

COM.MICROSOFT.CHOOSEROWS

Temas relacionados

ÍNDICE

TOCOL

TOROW

WRAPCOLS

WRAPROWS

CHOOSECOLS

VSTACK

HSTACK

EXPANDIR

DESCARTAR

TAKE

CHOOSEROWS wiki page.

Precisamos da súa axuda!