Combine Variable-Length Columns into One List in Excel 365
Question details
Combine four columns of different lengths into a single vertical list without blank entries.

- Product
- Microsoft Excel 365
- Device & OS
- not provided
- Scenario
- The user wants a dynamic list that updates as values in four source columns change.
- Observed behavior
- The desired result is one spilled column containing the source values in column order, with blanks excluded.
Identify the source range and choose an empty cell outside it for the output. Make the range large enough for expected entries, but avoid full-column references that can exceed the worksheet's spill capacity.
Use TOCOL and FILTER to stack the columns
Use this dynamic array formula when TOCOL and FILTER are available in Excel 365 and you want the list to update automatically.
TOCOL reads the range one column at a time when its third argument is TRUE. FILTER also removes empty text returned by source formulas.
Click an empty cell outside the source range, such as F2, and leave enough empty cells below it for the combined list.
In F2, enter =LET(values,TOCOL(A2:D1000,1,TRUE),FILTER(values,values<>"","")) and press Enter.
Replace A2:D1000 in the formula with your actual data range or a suitable table reference. Exclude headers if you do not want them in the result.

Create a Blank-Free Combined List in WPS Spreadsheet
Use WPS Spreadsheet to stack the source columns and filter out blanks, then copy the visible entries into a clean list. Repeat the process when the source data changes.
- 1. Open the workbook: Open the Excel workbook in WPS Spreadsheet and add a new worksheet using the plus button beside the sheet tabs.
- 2. Stack the source columns: On the new sheet, type a header in A1. Copy each source column's data range and paste it into column A below the end of the previously pasted range, preserving the desired column order.
- 3. Filter out blanks: Select the stacked list and its header, choose Data > Filter, and use the header's filter menu to deselect blank entries.
- 4. Copy the clean list: Select and copy the visible filtered values, then paste them into a separate empty column or worksheet. The pasted list is a snapshot, so repeat these steps after source changes.

Frequently Asked Questions
How do I keep the values in their original column order?
Set the third TOCOL argument to TRUE, as in TOCOL(A2:D1000,1,TRUE). Excel then scans down each column before moving to the next one.
Will the formula keep zero values?
Yes. TOCOL ignores blank cells with its second argument set to 1, and the FILTER condition removes empty text rather than numeric zeros.
Why does Excel show a #SPILL! error?
The formula needs empty cells below its output cell. Clear any blocking cells or move the formula to an open area outside the source range.
Can I use an Excel Table instead of a cell range?
Yes. Replace A2:D1000 with a reference to the relevant table columns, excluding headers if they should not appear in the combined list.
What happens when the source data changes?
The Excel formula recalculates and updates its spilled list as values change within the referenced range. Expand the range if new entries fall outside it.




