Excel BYCOL Function
Chala mitrano — today we learn BYCOL. Read Why → What → How, then try the practice list.
चला मित्रांनो — आज BYCOL शिकू. Why → What → How वाचा, मग practice करा.
चलो दोस्तों — आज BYCOL सीखते हैं। Why → What → How पढ़ो, फिर practice करो।
Purpose
Run a LAMBDA once per column of an array and spill one result per column.
Return value
A row (usually) of per-column results.
Syntax
Arguments
| Argument | Required? | Description |
|---|---|---|
array | Required | 2D range or array. |
lambda | Required | LAMBDA(col) returning a result for that column. |
Version
Microsoft 365 with LAMBDA.
How to use — Why → What → How
Why: Column totals across months without copying SUM for each month.
What: Each column vector goes into your LAMBDA.
How — numbered steps:
- Example: =BYCOL(B2:G20, LAMBDA(c, SUM(c))).
- Use for monthly totals across a wide sheet.
- VSTACK/HSTACK to place results under or beside headers.
- Clear spill blockers to the right.
- Mirror skills from BYROW.
Ravindra Bagale's Tip
Wide month sheets → BYCOL. Tall student sheets → BYROW.
Ravindra Bagale's Tip – मराठी
रुंद month sheet → BYCOL. उंच student sheet → BYROW.
Ravindra Bagale's Tip – हिंदी
चौड़ी month शीट → BYCOL। लंबी student शीट → BYROW।
Ravindra Bagale's Tip
Keep one result per column for a neat spill row.
Ravindra Bagale's Tip – मराठी
प्रत्येक स्तंभासाठी एकच result ठेवा.
Ravindra Bagale's Tip – हिंदी
हर स्तंभ के लिए एक result रखो।
Worked examples
1) Month totals
Jan–Jun in B2:G50.
Result: 6 monthly totals
What it means: One spill row.
2) Column averages
Ratings.
Result: Averages
What it means: Rounded means.
3) Count of blanks per column
Import QA.
Result: Blank counts
What it means: Cleaning scorecard.
4) Max per market column (£)
UK regions.
Result: Peaks
What it means: Maxima row.
5) % of column total via LET
Share — advanced.
Result: First-row share
What it means: Shows LET inside BYCOL.
Common errors
Practice tasks (10+)
- Task 1. BYCOL SUM on a 10×6 block.Hint: try on a tiny range first
- Task 2. BYCOL AVERAGE.Hint: try on a tiny range first
- Task 3. Place results under headers with VSTACK.Hint: try on a tiny range first
- Task 4. Count numbers vs text per column.Hint: try on a tiny range first
- Task 5. Interview BYCOL vs BYROW.Hint: try on a tiny range first
- Task 6. Combine BYCOL with ROUND for ₹.Hint: try on a tiny range first
- Task 7. Detect empty columns.Hint: try on a tiny range first
- Task 8. Fix #SPILL!.Hint: try on a tiny range first
- Task 9. BYCOL MAX/MIN pair with VSTACK.Hint: try on a tiny range first
- Task 10. Bonus: BYCOL of a FILTER result.Hint: try on a tiny range first
Quick quiz
Answers: Q1=True, Q2=True, Q3=False, Q4=True
Related: LAMBDA · LET · GROUPBY · Function hub · Learning path