Power Query Problems

How to Transpose Every Five Rows into Columns in Excel

Adam DavisAdam Davis Nov 11, 2026 870 views

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.

How to Transpose Every Five Rows into Columns in Excel
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.
Before you start

Ensure your source data list does not contain unintended blank rows, as this could throw off the five-column grouping pattern.

Solution 1Recommended

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.

1
Select the destination cell

Click on the cell where you want the new five-column table to begin (for example, cell C1).

2
Enter the WRAPROWS formula

Type the formula =WRAPROWS(A1:A25, 5) and press Enter. Ensure you replace A1:A25 with your actual data range.

3
Remove unwanted columns (Optional)

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).

Dynamic Array Spill: The formula automatically 'spills' into the adjacent cells. If your source data updates, the transposed five-column table will automatically reflect the changes.
Advanced Data Formatting

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. 1. Open your data file: Launch WPS Spreadsheet and open the document containing your single-column vertical list.
  2. 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. 3. View your instant results: The vertical list will instantly convert into a perfectly formatted 5-column table.
Fully compatible with Microsoft Excel formulas and file formats (.xlsx).Native support for modern dynamic array functions like WRAPROWS and DROP.Lightweight installation with a user-friendly, familiar interface.
microsoft office alternative - wps office

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.