Skip to main content

Excel WRAPCOLS function

The WRAPCOLS function converts a single row or column into multiple columns (a 2-demensional array) by specifying the number of values in each column.

Note: This function is only available in Excel for Microsoft 365 on the Insider channel.


=WRAPCOLS(vector, wrap_count, [pad_with])


Vector (required): The array you want to warp into multiple columns.
Wrap_count (required): The maximum number of values for each column.
Pad_with (optional): A specified value to pad if there are insufficient number of values. By default, it returns #N/A to fill in the cells.


1) The #VALUE! error value occurs if “vector” is not a one-dimensional array (contains more than one column or row);
2) The #NUM! error value occurs if “wrap_count” is less than 1;
3) The #N/A! error value occurs if there are insufficient elements to fill the cells in columns.
4) If "warp_count" is equal to or greater than the number of cells in the original array, the entire array will be returned in one column.

Return value

It returns an array wrapped by columns.


As shown in the screenshot below, to convert the one-dimensional array in the range B6:B15 into multiple columns, and each column contains at most 2 values, you can apply the WRAPCOLS function to get it done.

Select a blank cell, such as D6 in this case, enter the following formula and press the Enter key to get the columns.


Notes: If you specify at most 3 values for each column, you will find that there are insufficient values to fill the cells in the last column, and #N/A is used for the missing values.

To replace the #N/A with a specified value, for example a word “NULL”, you need to specify the argument “pad_with” as “NULL”. See the formula below.


Related Functions

Excel WRAPROWS function
The WRAPROWS function converts a single row or column into multiple rows (a 2-demensional array) by specifying the number of values in each row.

The Best Office Productivity Tools

Kutools for Excel - Helps You To Stand Out From Crowd

🤖 Kutools AI Aide: Revolutionize data analysis based on: Intelligent Execution   |  Generate Code  |  Create Custom Formulas  |  Analyze Data and Generate Charts  |  Invoke Kutools Functions
Popular Features: Find, Highlight or Identify Duplicates  |  Delete Blank Rows  |  Combine Columns or Cells without Losing Data  |  Round without Formula ...
Super VLookup: Multiple Criteria  |  Multiple Value  |  Across Multi-Sheets  |  Fuzzy Lookup...
Adv. Drop-down List: Easy Drop Down List  |  Dependent Drop Down List  |  Multi-select Drop Down List...
Column Manager: Add a Specific Number of Columns  |  Move Columns  |  Toggle Visibility Status of Hidden Columns  Compare Columns to Select Same & Different Cells ...
Featured Features: Grid Focus  |  Design View  |  Big Formula Bar  |  Workbook & Sheet Manager | Resource Library (Auto Text)  |  Date Picker  |  Combine Worksheets  |  Encrypt/Decrypt Cells  |  Send Emails by List  |  Super Filter  |  Special Filter (filter bold/italic/strikethrough...) ...
Top 15 Toolsets12 Text Tools (Add Text, Remove Characters ...)  |  50+ Chart Types (Gantt Chart ...)  |  40+ Practical Formulas (Calculate age based on birthday ...)  |  19 Insertion Tools (Insert QR Code, Insert Picture from Path ...)  |  12 Conversion Tools (Numbers to Words, Currency Conversion ...)  |  7 Merge & Split Tools (Advanced Combine Rows, Split Excel Cells ...)  |  ... and more

Kutools for Excel Boasts Over 300 Features, Ensuring That What You Need is Just A Click Away...


Office Tab - Enable Tabbed Reading and Editing in Microsoft Office (include Excel)

  • One second to switch between dozens of open documents!
  • Reduce hundreds of mouse clicks for you every day, say goodbye to mouse hand.
  • Increases your productivity by 50% when viewing and editing multiple documents.
  • Brings Efficient Tabs to Office (include Excel), Just Like Chrome, Edge and Firefox.
Comments (0)
No ratings yet. Be the first to rate!
There are no comments posted here yet
Please leave your comments in English
Posting as Guest
Rate this post:
0   Characters
Suggested Locations