Excel WRAPCOLS Function

The Excel WRAPCOLS function restructures an array or range into columns, you specify the number of values in each column.

WRAPCOLS Function Syntax

=WRAPCOLS(vector, wrap_count, [pad_with])

vector : The vector or reference to wrap.

wrap_count : The maximum number of values for each column.

pad_with : [Optional] The value with which to pad. The default is #N/A.

Note: The WRAPCOLS function is part of the new Excel Dynamic Arrays family. At the time of writing, Dynamic Arrays are only available in Microsoft 365. Excel 2021 and earlier Excel versions will not get WRAPCOLS.

Watch the Video

Subscribe YouTube


Download the Example Workbook

Enter your email address below to download the sample workbook.

By submitting your email address you agree that we can email you our Excel newsletter.

Excel WRAPCOLS Function Example

WrapCols Function example 1

WrapCols Function example 2

Related Excel Array Shaping Functions

EXPAND Function Expands or pads an array to a specified number of rows and columns.
TOROW Function Returns the array as a single row. Useful for combining data across multiple columns and rows into a single row.
TOCOL Function Returns the array as a single column. Useful for combining data across multiple columns and rows into a single column.
WRAPROWS Function Lets you wrap (reshape) a row or column of values into rows, you specify the number of values in each row.
DROP Function Remove a specified number of contiguous rows or columns from the start or end of an array.
TAKE Function Extract a specified number of contiguous rows or columns from the start or end of an array.
CHOOSEROWS Function Extract rows from the specified column or columns.
CHOOSECOLS Function Extract columns from the specified rows or rows.
VSTACK and HSTACK Functions Combine arrays arranged vertically (VSTACK) or horizontally (HSTACK) into a new single array.