[]
The function wraps the provided row or column of values by rows after a specified number of elements to form a new array.
Note: WRAPROWS is a dynamic array formula, and you need to enable the dynamic array feature in the Workbook.
WRAPROWS(vector, wrap_count, [pad_with])
The function has the following arguments:
Argument | Description |
|---|---|
vector | [Required] The vector or reference to wrap. |
wrap_count | [Required] The maximum number of values for each row. |
pad_with | [Optional] The value with which to pad. The default is #N/A. |
The elements of the vector are placed into a 2-dimensional array by row. Each row has wrap_count elements. The row is padded with pad_with if there are insufficient elements to fill it. If wrap_count is greater or equal to the number of elements in vector, then the vector is simply returned as the result of the function.
