Skip to main content

Excel WRAPROWS function

Author: Siluvia Last Modified: 2022-10-19

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.

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

doc wraprows function 1


=WRAPROWS(vector, wrap_count, [pad_with])


Vector (required): The array you want to warp into multiple rows.
Wrap_count (required): The maximum number of values for each row.
Pad_with (optional): A specified value to fill cells with no values. By default, #N/A error value will be displayed if there are insufficient elements to fill in.


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 "wrap_count" is equal to or greater than the number of cells in the original array, the entire array will be returned in one row.

Return value

It returns an array wrapped by rows.


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

doc wraprows function 1

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


doc wraprows function 1

Notes: If you specify at most 3 values for each row, you will find that there are not enough values to fill the cells in the last row, so, #N/A is displayed.

doc wraprows function 1

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.


doc wraprows function 1

Related Functions

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.

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
Leave your comments
Posting as Guest
Rate this post:
0   Characters
Suggested Locations