ExcelFormulas logoExcelFormulas.
Perguntar à IA
Matrizes DinâmicasTestado por QA

TOCOL.

Transforms a 2D table or array into a single vertical column.

Matrizes Dinâmicas
ExcelExcel 365Google Sheets

Como funciona na prática.

TOCOL é uma função essencial no Excel. Transforms a 2D table or array into a single vertical column. Facilita a automação de relatórios, otimiza consultas de dados e garante máxima produtividade no seu fluxo de trabalho.

Sintaxe.

Notação Oficial do Excel
=TOCOL(array, [ignore], [scan_by_column])
Dica: Argumentos entre colchetes [como_este] são opcionais; todos os outros são obrigatórios.

Argumentos.

Confira abaixo o detalhamento de cada parâmetro aceito por esta função.

arrayObrigatório

The 2D array or range to flatten.

Exemplo: A2:B3
ignoreOpcional

0 = Keep all (default), 1 = Ignore blanks, 2 = Ignore errors, 3 = Ignore blanks and errors.

Padrão: 0

Exemplo passo a passo.

Cenário de Aplicação

Shift Schedule - Flatten Roster Grid

Reshape morning and evening shift staff into a single roster column.

Morning ShiftEvening ShiftCombined Roster
AliceBob—
CharlieDave—
Fórmula Aplicada
=TOCOL(A2:B3, 1)
Resultado Esperado::Alice

Evaluates TOCOL over the sample table cells, placing the verified output in cell C2.

Gerador de fórmula.

Abrir Assistente Completo

Preencha os campos abaixo para gerar uma fórmula pronta para copiar e colar na sua planilha.

Generated FormulaPronta para copiar

Comportamento do resultado.

Returns "Alice" based on sample evaluation criteria and active cell references.

Amostra de Saída::Alice
Tipo de Dado::Text

Boas Práticas

  • Use ignore = 1 to consolidate sparse data grids into clean lists without blanks.

Erros Mais Comuns

  • Only available in Excel 365 and Excel for Web; older Excel versions return #NAME?.
Matriz de Compatibilidade

Compatibilidade de software e versão.

Validação técnica fundamentada nas especificações oficiais da Microsoft e do Google.

Excel✓
Compatível
Excel 365✓
Compatível
Excel 2021✕
Não
Excel 2019✕
Não
Google Sheets✓
Compatível
Histórico e Versões do Excel

Introduced in Excel 365 (late 2022). Not available in standalone Excel 2021, Excel 2019, or older.

Notas sobre o Google Planilhas

Fully supported in Google Sheets (added late 2022). Uses identical arguments to Excel.

Perguntas frequentes.

Dúvidas Técnicas
Can I use TOCOL across different worksheets in Excel?↓

Yes. You can reference cells located on other sheets by including the sheet name followed by an exclamation mark, for example: =TOCOL(Sheet2!A2:A10). If the sheet name contains spaces, enclose it in single quotes: ='Q1 Report'!A2:A10.

What is the most common reason for errors in TOCOL?↓

Only available in Excel 365 and Excel for Web; older Excel versions return #NAME?.

Does TOCOL work identically in Google Sheets?↓

Yes, TOCOL is supported in both Microsoft Excel and Google Sheets with standard evaluation behavior.