To turn a grid into a single column — flattening a table for a drop-down, a mailing list, or further processing — use TOCOL. It reads the range and stacks every value into one column, and can skip the blanks.
1 means “ignore blanks”; TOCOL reads left-to-right, top-to-bottom into a single column.
The example
A 2×2 grid flattened into one column.
| A | B | D | ||
|---|---|---|---|---|
| 1 | Q1 | Q2 | Flat | |
| 2 | Apple | Banana | Apple | |
| 3 | Cherry | Date | Banana | |
| 4 | Cherry | |||
| 5 | Date |
The formula
The grid as one column:
How it works
TOCOL serializes the grid:
- It reads the range in reading order — across each row, then down to the next — and stacks the values into one column.
- The second argument controls what to skip:
0keeps everything,1ignores blanks,2ignores errors,3ignores both. - A third argument
TRUEscans by column instead of by row. TOROWdoes the same but flattens into a single row.
Great for cleanup: TOCOL turns a messy block of names spread across columns into a tidy single-column list — then wrap in UNIQUE/SORT for a clean, deduped, alphabetized result.
Try it: interactive demo
Toggle ignoring blanks for the grid {Apple, "", Banana} / {"", Cherry, Date}.
Variations
Flatten into a row
TOROW for a horizontal result:
Scan by column
Read down columns first:
Flatten, dedupe, sort
A clean single-column list:
Pitfalls & errors
TOCOL needs Excel 365. Older versions lack it — use a helper layout or Power Query to unpivot.
Reading order matters. By default it goes across rows first. If you expected column order, add the TRUE scan-by-column argument.
Blanks vs errors. The ignore argument distinguishes them: 1 = blanks, 2 = errors, 3 = both. Pick the one you need.
Practice workbook
Frequently asked questions
How do I turn a range into a single column in Excel?
How do I flatten a grid into one row instead?
How do I flatten and remove duplicates?
Stop fighting formulas. Learn them in a day.
This recipe is one of hundreds of real-world formulas we teach. Our Excel Formulas & Functions class covers lookups, logic, text, and dynamic arrays hands-on — live in Dallas–Fort Worth, Houston, Austin, Oklahoma City, Denver, or online.
See the Formulas & Functions Class