Syntax
| Parameter | Description |
|---|---|
| array | Parameter of the TOCOL function. |
| [ignore] | (Optional.) Parameter of the TOCOL function. |
| [scan_by_column] | (Optional.) Parameter of the TOCOL function. |
Examples
Flatten a grid to one column
=TOCOL(A1:C4)
Flatten and skip blanks
=TOCOL(A1:C4, 1)
Read by column instead of row
=TOCOL(A1:C4, 0, TRUE)
Common Errors
After ignoring blanks/errors, the result would be an empty array with zero elements.
The output range is blocked by non-empty cells.
Tips
=UNIQUE(TOCOL(A1:D10)) gives you a deduplicated list of all values in a multi-column range, flattened into one column.
Set ignore to 3 to strip out both blanks and errors before passing data downstream. This saves nested IFERROR wrappers.
TOCOL stacks into a column, TOROW stretches into a row. Pick whichever orientation your downstream formula expects.
Try TOCOL in Viztab
Import your data and use TOCOL with 370+ other formulas. No signup required.
Open Viztab