ExcelFormulas logoExcelFormulas.
Preguntar a IA
Matrices dinámicasVerificado por QA

TOCOL.

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

Matrices dinámicas
ExcelExcel 365Google Sheets

Cómo funciona.

TOCOL es una función fundamental de Excel. Transforms a 2D table or array into a single vertical column. Permite automatizar hojas de cálculo, simplificar fórmulas complejas y analizar datos con total precisión en Microsoft Excel y Google Sheets.

Sintaxis.

Notación Estándar de Excel
=TOCOL(array, [ignore], [scan_by_column])
Consejo: Los argumentos entre corchetes [como_este] son opcionales; todos los demás son obligatorios.

Argumentos.

A continuación se detallan todos los parámetros aceptados por esta función.

arrayObligatorio

The 2D array or range to flatten.

Ejemplo: A2:B3
ignoreOpcional

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

Valor por defecto: 0

Ejemplo práctico.

Caso de Uso Paso a Paso

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.

Generador de fórmula.

Abrir Asistente Completo

Personaliza los campos de argumento a continuación para generar una fórmula lista para copiar y pegar en tu hoja de cálculo.

Generated FormulaLista para copiar

Comportamiento del resultado.

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

Resultado de Muestra::Alice
Tipo de Salida::Text

Buenas Prácticas

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

Errores Frecuentes

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

Compatibilidad de plataforma y versiones.

Matriz verificada con base en los motores de cálculo oficiales de Microsoft Excel y Google Sheets.

Excel✓
Compatible
Excel 365✓
Compatible
Excel 2021✕
No
Excel 2019✕
No
Google Sheets✓
Compatible
Disponibilidad y Versiones de Microsoft Excel

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

Notas sobre Compatibilidad con Google Sheets

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

Preguntas frecuentes.

Dudas 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.