Excel TOCOL Function
Chala mitrano — today TOCOL. Turn a grid into one tall column — ready for UNIQUE or SORT.
चला मित्रांनो — आज TOCOL. ग्रिड एका उंच column मध्ये — UNIQUE/SORT साठी.
चलो दोस्तों — आज TOCOL. ग्रिड एक लंबे column में — UNIQUE/SORT के लिए.
Purpose
Flatten an array into a single column.
Return value
A spilled column vector.
Syntax
Arguments
| Argument | Required? | Description |
|---|---|---|
array | Required | Array to flatten. |
ignore | Optional | 0 keep all; 1 skip blanks; 2 skip errors; 3 skip blanks+errors. |
scan_by_col | Optional | TRUE reads column-by-column. |
Version
Microsoft 365. Not in perpetual Excel 2019 without dynamic arrays. Sheets has partial cousins.
How to use — Why → What → How
Why: Matrix data needs a flat list before distinct counts. TOCOL is the flatten. Unpivot-ish flatten for Tiruppur size grids and Leeds matrices. In Indian back offices and foreign sister teams, TOCOL shows up on live dashboards and spill ranges every week.
What: TOCOL walks the array row-wise by default. ignore skips blanks/errors. Read every argument in the table once before you type; each one changes the answer on purpose.
How — numbered steps:
- Type =TOCOL(A2:C10).
- ignore 1 to skip blanks.
- scan_by_col TRUE for column order.
Ravindra Bagale's Tip
Friends, after TOCOL, find one column or range in a real workbook this week where this lesson saves time.
Ravindra Bagale's Tip – मराठी
मित्रांनो, TOCOL नंतर या आठवड्यात खरी workbook मधील एक संख्या column सुधारा.
Ravindra Bagale's Tip – हिंदी
दोस्तों, TOCOL के बाद इस हफ़्ते असली workbook का एक संख्या column सुधारो.
Ravindra Bagale's Tip
Friends, sleep on TOCOL; rebuild example 1 tomorrow without looking.
Ravindra Bagale's Tip – मराठी
मित्रांनो, TOCOL वर झोपा; उद्या उदाहरण 1 न पाहता लिहा.
Ravindra Bagale's Tip – हिंदी
दोस्तों, TOCOL पर सोकर कल उदाहरण 1 बिना देखे लिखो.
Ravindra Bagale's Tip
Friends, say the business question in plain words before =TOCOL.
Ravindra Bagale's Tip – मराठी
मित्रांनो, =TOCOL आधी व्यवसाय प्रश्न साध्या शब्दांत सांगा.
Ravindra Bagale's Tip – हिंदी
दोस्तों, =TOCOL से पहले व्यवसाय प्रश्न सादे शब्दों में बोलो.
Ravindra Bagale's Tip
Friends, check a known case with a calculator before you trust a long TOCOL chain.
Ravindra Bagale's Tip – मराठी
मित्रांनो, लांब TOCOL chain वर विश्वास ठेवण्यापूर्वी कॅल्क्युलेटरने एक ज्ञात case तपासा.
Ravindra Bagale's Tip – हिंदी
दोस्तों, लंबी TOCOL chain पर भरोसा करने से पहले कैलकुलेटर से एक जाना हुआ case जाँचो.
Ravindra Bagale's Tip
Friends, after you finish TOCOL, open yesterday’s real workbook and find one place this function would have saved ten minutes.
Ravindra Bagale's Tip – मराठी
मित्रांनो, TOCOL नंतर कालची खरी वर्कबुक उघडा आणि शोधा जिथे हे फंक्शन दहा मिनिटे वाचवू शकले असते.
Ravindra Bagale's Tip – हिंदी
दोस्तों, TOCOL के बाद कल की असली वर्कबुक खोलो और ढूँढो जहाँ यह फ़ंक्शन दस मिनट बचा सकता था.
Ravindra Bagale's Tip
Friends, treat TOCOL like a seatbelt on spill ranges — clear #SPILL! blocks first.
Ravindra Bagale's Tip – मराठी
मित्रांनो, TOCOL ला spill ranges वरील seatbelt समजा — आधी #SPILL! साफ करा.
Ravindra Bagale's Tip – हिंदी
दोस्तों, TOCOL को spill ranges पर seatbelt समझो — पहले #SPILL! साफ़ करो.
Download practice file: practice-tocol.xlsx (includes sheet About this data, practice sheets, and Answers).
Worked examples
1) Flatten 2×2
Tiruppur.
| A | B |
|---|---|
| 1 | 2 |
| 3 | 4 |
Result: {1;2;3;4}
What it means: Row-wise.
2) Skip blanks
ignore 1.
| A | B |
|---|---|
| 1 | None |
| 3 | 4 |
Result: {1;3;4}
What it means: Blank skipped.
3) By column
scan.
| A | B |
|---|---|
| 1 | 2 |
| 3 | 4 |
Result: {1;3;2;4}
What it means: Col-wise.
4) Leeds £
Grid.
| A | B |
|---|---|
| 10 | 20 |
| 30 | 40 |
Result: {10;20;30;40}
What it means: Flat.
5) Then UNIQUE
Distinct.
| A | B |
|---|---|
| 1 | 2 |
| 1 | 3 |
Result: {1;2;3}
What it means: Distinct flat.
6) ignore errors
Skip errors.
| A |
|---|
| 1 |
| None |
Result: {1}
What it means: Blanks skipped with ignore 1.
Common errors and fixes
Notes and tips
- Revisit the TOCOL errors table after the quiz.
- Build example 1 from memory on a blank sheet.
- Check number vs text if a result looks wrong.
- Teach one tip in Marathi or Hindi this week.
- Keep currency symbols consistent inside one report column (practice mixes ₹ $ £ €).
- Drill: flatten a 2×2 and UNIQUE it from memory.
- TOCOL vs WRAPROWS: flatten versus re-wrap.
- Fictional sample data only — names and amounts are for learning.
- Print the TOCOL revision card for one week of real worksheets.
- Ask juniors to predict before they press Enter.
- Track your top mistake with this function monthly.
- Unpivot-ish flatten for Tiruppur size grids and Leeds matrices.
- Interview tip: explain the business question before the formula.
- Classroom drill: invent three brand-new formulas from your city without the page open.
- If a result looks wrong, check blanks vs zeros before rewriting.
- When Excel versions differ, note the LibreOffice / Sheets fallback in a cell comment.
- Prefer clear ranges over whole-column refs on huge sheets if speed matters.
- Document units (₹, kg, days) in the header so totals stay honest.
- Print the revision card for TOCOL for one week of real worksheets.
- When helping a junior, ask them to predict before Enter.
- Share one tip with a classmate in Marathi or Hindi.
- Keep currency symbols consistent inside a single report column.
- Interview tip: explain the business question before the formula.
- If a result looks wrong, check spill range blocks (#SPILL!) before rewriting.
- When Excel versions differ, write a LibreOffice / Sheets fallback under a comment.
In real work
Drill: flatten a 2×2 and UNIQUE it from memory. Unpivot-ish flatten for Tiruppur size grids and Leeds matrices. Classroom drill: write three brand-new TOCOL formulas on a blank sheet using names from your own city — if you can invent them without the page open, you own the skill. Then break one formula on purpose and watch the error; recovering from that break is half of interview readiness. Always verify with a known case before trusting a long chain. Keep a personal notebook of the one mistake you make most often with this function; review it monthly.
How it compares
TOCOL vs WRAPROWS: flatten versus re-wrap.
Interview corner
- vs TOROW?
- Column vs row.
- ignore 1?
- Skip blanks.
- Order?
- Row-wise default.
Related functions
TOROW, TOCOL, UNIQUE, WRAPROWS
Practice tasks (10)
- Task 1. Flatten 2×2.TOCOL.
- Task 2. Skip blanks.ignore 1.
- Task 3. By column.scan.
- Task 4. UNIQUE flat.Distinct.
- Task 5. Leeds grid.£.
- Task 6. Interview.Talk.
- Task 7. Teach.Teach.
- Task 8. ignore errors.2.
- Task 9. Fill.Fill.
- Task 10. Document.Note.
Quick quiz
Answers: Q1=Row-wise, Q2=Blanks, Q3=4, Q4=TOROW, Q5=UNIQUE(TOCOL()) (check after you try).
Revision card
Standalone card (no tip or photo strip). QR opens this lesson. Download the PNG and revise offline.