TOCOL

Transforms an array or range into a single column.

note

Insira a fórmula como uma fórmula de matriz. Dica: pressione Ctrl+Shift+Enter para inserir uma fórmula de matriz.


Sintaxe

TOCOL(Array [; Ignore [; By_column]])

Array: the array or range to return as a single column.

Ignore: (optional) Whether to ignore certain types of values. By default, no values are ignored. Specify one of the following:

0: Keep all values (default)

1: Ignore blank cells

2: Ignore cells with errors

3: Ignore both blank cells and error cells

By_column: (optional) Scan the array by column. By default, the array is scanned by row. Scanning determines whether the values are ordered by row or by column.

note

Qualquer um dos argumentos opcionais pode ser omitido. Um argumento opcional requer que todos os separadores anteriores estejam presentes.


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 {=TOCOL(A1:E3)} returns the column

AAA

BBB

CCC

DDD

EEE

FFF

 

 

III

JJJ

KKK

LLL

MMM

NNN

OOO


The formula =TOCOL(A1:E3;1) returns the column below without the blank cells.

AAA

BBB

CCC

DDD

EEE

FFF

III

JJJ

KKK

LLL

MMM

NNN

OOO


The formula =TOCOL(A1:E3;1;TRUE()) returns the column below without the blank cells, scanned by columns.

AAA

FFF

KKK

BBB

LLL

CCC

MMM

DDD

III

NNN

EEE

JJJ

OOO


Informação técnica

tip

Esta função está disponível desde o LibreOfficeDev 25.8.


Esta função não faz parte do padrão Open Document Format for Office Applications (OpenDocument) Versão 1.3. Parte 4: Formato de Fórmula Recalculada (OpenFormula). O espaço de nomes é

COM.MICROSOFT.TOCOL