=TOCOL(array, [ignore], [scan_by_column])
=TOCOL(A2:D4)
The function can be used to convert an array from a range of cells into a single column. For example, if the range A2:D4 contains an array of numbers, then the formula will return the numbers from the array in a single column.
=TOCOL(A2:D4)
The function can be used to convert an array in a range of cells into a single column, even if the range contains other non-array data. For example, if the range A2:D4 contains an array of numbers and other text data, then the formula will return the numbers from the array in a single column while ignoring the other text data.
=TOCOL(A2:B4,C2:D4)
The TOCOL function can also be used to convert an array from multiple ranges of cells into a single column. For example, if the ranges A2:B4 andC2:D4 both contain arrays of numbers, then the formula will return the numbers from both arrays in a single column.
The TOCOL function is a convenient tool for returning an array of data in a single row. It is useful for consolidating data into a single row.