How to Transpose Every Five Rows into Columns in Excel
Question details
The user wants to convert a single vertical column of data into multiple columns, specifically grouping every five rows from the original list into a single row containing five columns.

- Product
- Microsoft Excel
- Device & OS
- not provided
- Scenario
- Restructuring a single-column data list into a multi-column table layout for better readability or data analysis.
- Observed behavior
- The data needs to be systematically wrapped or transposed so that values 1-5 appear in the first row across five columns, values 6-10 in the second row, and so forth.
Ensure your source data list does not contain unintended blank rows, as this could throw off the five-column grouping pattern.
Use the WRAPROWS Function (Microsoft 365)
The fastest and most efficient way to reshape vertical data in newer versions of Excel using a dynamic array formula.
If you are using Microsoft 365 or Excel for the Web, you can take advantage of the new WRAPROWS function. This function automatically pushes a linear array of data into a specified number of columns.
Click on the cell where you want the new five-column table to begin (for example, cell C1).
Type the formula =WRAPROWS(A1:A25, 5) and press Enter. Ensure you replace A1:A25 with your actual data range.
If you need to drop an empty or unwanted final column, you can nest the formula inside the DROP function by typing =DROP(WRAPROWS(A1:A25, 5), , -1).
Use INDEX and ROW Formulas (Legacy Excel)
A traditional formula-based approach that works in older versions of Excel like Excel 2013, 2016, and 2019 where WRAPROWS is unavailable.
Use Power Query to Reshape Data
Ideal for repetitive tasks or large datasets where you need a scalable way to transform a single column into five columns.
Effortlessly Reshape Data with WPS Spreadsheet
WPS Spreadsheet supports the latest dynamic array functions, including WRAPROWS, making complex data transposition incredibly simple. It is a highly compatible, feature-rich alternative for all your spreadsheet tasks.
- 1. Open your data file: Launch WPS Spreadsheet and open the document containing your single-column vertical list.
- 2. Apply the array formula: Click an empty cell where you want the new table to start, type =WRAPROWS(A1:A25, 5), and press Enter.
- 3. View your instant results: The vertical list will instantly convert into a perfectly formatted 5-column table.

Frequently Asked Questions
Can I transpose a vertical list into rows rather than columns?
Yes. If you want the data to fill down a column first before moving to the next column, use the WRAPCOLS function instead of WRAPROWS.
What happens if my data list is not perfectly divisible by five?
If you are using the WRAPROWS function and the data isn't perfectly divisible by 5, Excel will fill the remaining cells in the last row with #N/A errors. You can fix this by adding the optional pad_with argument: =WRAPROWS(A1:A25, 5, "") to leave those cells blank.
Why does my INDEX formula show a #REF! error?
A #REF! error typically occurs if the formula calculates a row number that exceeds the maximum number of rows in the worksheet, or if the source range reference shifted. Ensure you lock your source range with absolute references, such as $A$1:$A$100, before dragging the formula.




