TX Sheet Control

WRAPCOLS Function

Function

Wrap a row or column of values into columns of a given length. vector is a single row or column, and wrap_count is the number of values in each column. pad_with fills the cells left over in the last column (#N/A when omitted). A vector with more than one row and column, or a wrap_count less than 1, returns #VALUE!.

Syntax

WRAPCOLS(vector, wrap_count, pad_with)

Category: Lookup. Minimum arguments: 2. Maximum arguments: 3.

Available for supported offline calculation.

Examples

=WRAPCOLS({1,2,3},2,0)

The formula returns the array {1,3;2,0}: the columns 1, 2 and 3, 0, where 0 pads the second column.

Cell and range examples require appropriate input values in the referenced cells. Handle invalid arguments, formula errors and array and spill constraints.

See Also