TX Sheet Control

WRAPROWS Function

Function

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

Syntax

WRAPROWS(vector, wrap_count, pad_with)

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

Available for supported offline calculation.

Examples

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

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

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

See Also