ExcelFormulas logoExcelFormulas.
Demander à l'IA
Tableaux dynamiquesVérifié par QA

TOCOL.

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

Tableaux dynamiques
ExcelExcel 365Google Sheets

Fonctionnement détaillé.

TOCOL est une fonction indispensable d'Excel. Transforms a 2D table or array into a single vertical column. Elle permet d'automatiser vos tableaux, fiabiliser vos calculs et gagner un temps précieux au quotidien dans vos feuilles de calcul.

Syntaxe.

Notation Standard Excel
=TOCOL(array, [ignore], [scan_by_column])
Conseil : Les arguments entre crochets [comme_ceci] sont facultatifs ; tous les autres sont obligatoires.

Arguments.

Détail de l'ensemble des paramètres acceptés par cette fonction.

arrayObligatoire

The 2D array or range to flatten.

Exemple : A2:B3
ignoreFacultatif

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

Défaut : 0

Exemple pas à pas.

Cas d'usage concret

Shift Schedule - Flatten Roster Grid

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

Morning ShiftEvening ShiftCombined Roster
AliceBob—
CharlieDave—
Formule appliquée
=TOCOL(A2:B3, 1)
Résultat attendu ::Alice

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

Générateur de formule.

Ouvrir l'assistant complet

Personnalisez les champs ci-dessous pour générer une formule prête à être copiée dans votre classeur.

Generated FormulaPrête à copier

Nature du résultat produit.

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

Exemple produit ::Alice
Type de sortie ::Text

Bonnes Pratiques

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

Erreurs à Éviter

  • Only available in Excel 365 and Excel for Web; older Excel versions return #NAME?.
Matrice de Compatibilité

Compatibilité par logiciel et version.

Vérification effectuée selon les moteurs de calcul officiels de Microsoft et Google.

Excel✓
Pris en charge
Excel 365✓
Pris en charge
Excel 2021✕
Non
Excel 2019✕
Non
Google Sheets✓
Pris en charge
Historique des versions Excel

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

Notes de compatibilité Google Sheets

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

Questions fréquentes.

Questions Techniques
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.