How to Convert Excel Table Rows into One Column
Question details
The user needs to flatten a multi-column Excel table into a single continuous column by extracting data row by row.

- Product
- Excel
- Device & OS
- not provided
- Scenario
- Reorganizing spreadsheet data from a grid layout into a flat, single-column list for easier data analysis or system import.
- Observed behavior
- Data is currently spread across multiple rows and columns, requiring consolidation into a single vertical column without manually copying and pasting.
Ensure your source data does not contain merged cells, and check your spreadsheet software version, as modern versions support dynamic arrays while older versions require traditional INDEX formulas.
Use a Dynamic Array Formula (Microsoft 365)
Utilize Microsoft 365's dynamic array functions to instantly flatten your table into a single column.
In modern versions of Excel (Microsoft 365), dynamic array functions like SEQUENCE and INDEX can be combined to iterate through a table and stack its contents vertically.
Depending on the exact arrangement, you can build an INDEX and SEQUENCE formula to mathematically pull data cell by cell across rows and down columns.
Click on the cell where you want your new single-column list to start.
Type a formula combining INDEX and SEQUENCE tailored to your data. Alternatively, if your version supports it, you can simply use the newer =TOCOL(A1:E5) function.
Press Enter. The dynamic array will automatically spill the flattened data down the column, eliminating the need to manually drag the formula.

Use the INDEX, INT, and MOD Formula (Older Excel Versions)
Apply a robust combination of INDEX, ROW, COLUMNS, INT, and MOD functions for older versions of Excel that do not support dynamic arrays.
Use Power Query to Unpivot Data
Leverage Power Query to transform and flatten your table without relying on complex cell formulas.
Flatten Excel Tables Easily with WPS Office
WPS Spreadsheet fully supports advanced array formulas, INDEX functions, and Power Query alternatives, making it simple to reorganize and flatten complex tables into single columns.
- 1. Open your dataset: Launch WPS Spreadsheet and open the file containing your multi-column table.
- 2. Apply the conversion formula: Select an empty cell and enter the appropriate INDEX formula, such as =IFERROR(INDEX($C$3:$G$5,INT((ROW(A1)-1)/COLUMNS($C$3:$G$5))+1,MOD(ROW(A1)-1,COLUMNS($C$3:$G$5))+1),"").
- 3. Drag to fill: Use the fill handle to drag the formula down the column until all data from the table is displayed sequentially.

Frequently Asked Questions
Is there a single function to convert a table to a column in newer software?
Yes. In the latest versions of Microsoft 365 and compatible spreadsheet tools, you can use the =TOCOL(array) function. This natively flattens an entire array or range into a single column instantly.
How do I ignore blank cells when flattening a multi-column table?
If you use the TOCOL function, you can add an argument to ignore blanks: =TOCOL(A1:E5, 1). If you use traditional INDEX formulas, you can nest the result in a FILTER function or sort the resulting column to push blanks to the bottom.
Will cell formatting be preserved when converting to a single column?
No, formulas only extract cell values. Any background colors, bold text, or specific number formats applied to the original table will not be automatically transferred to the new column. You will need to reapply formatting manually.




