🧠 What Are BYCOL and BYROW Functions in Excel 365?
BYCOL and BYROW are part of the Lambda helper functions in Excel 365. These functions allow you to apply custom logic across columns or rows of a range or array, making them incredibly useful for dynamic and reusable calculations.
🔹 1. BYROW Function
✅ Purpose:
Processes data row by row, applying a specified Lambda function to each row.
📘 Syntax:
excelCopyEdit=BYROW(array, lambda(row))
array: The data range you want to process.lambda(row): A custom calculation to perform on each row.
🧪 Example: Sum each row in a range
You have this data in cells A2:C4:
| A | B | C |
|---|---|---|
| 2 | 3 | 5 |
| 1 | 4 | 2 |
| 6 | 2 | 7 |
👉 Formula:
excelCopyEdit=BYROW(A2:C4, LAMBDA(r, SUM(r)))
✅ Output:
| Sum |
|---|
| 10 |
| 7 |
| 15 |
Each row is summed individually and spilled vertically.
🔹 2. BYCOL Function
✅ Purpose:
Processes data column by column, applying a specified Lambda function to each column.
📘 Syntax:
excelCopyEdit=BYCOL(array, lambda(column))
array: The data range you want to process.lambda(column): A custom calculation to perform on each column.
🧪 Example: Find the average of each column
Same data in A2:C4:
| A | B | C |
|---|---|---|
| 2 | 3 | 5 |
| 1 | 4 | 2 |
| 6 | 2 | 7 |
👉 Formula:
excelCopyEdit=BYCOL(A2:C4, LAMBDA(c, AVERAGE(c)))
✅ Output:
| Average |
|---|
| 3.0 |
| 3.0 |
| 4.67 |
Each column’s average is calculated and spilled horizontally.
🔁 When to Use BYROW and BYCOL?
| Use Case | Use Function |
|---|---|
| Sum or average of each row | BYROW |
| Custom logic applied to each column | BYCOL |
| Conditional check row-wise | BYROW + IF |
| Min/max/median by column | BYCOL |
💡 More Practical Examples
🎯 Count how many values > 3 in each row:
excelCopyEdit=BYROW(A2:C4, LAMBDA(r, COUNTIF(r, ">3")))
🎯 Find max value in each column:
excelCopyEdit=BYCOL(A2:C4, LAMBDA(c, MAX(c)))
⚠️ Requirements
- Available in Excel 365 and Excel 2021 only
- Must use LAMBDA function inside
🚀 Want to Automate This Logic?
If you’re excited by what BYCOL and BYROW can do with formulas, imagine how much more powerful Excel becomes when you can automate this logic using VBA macros.
Instead of manually applying formulas, you could:
- Automatically summarize each row/column with a button click
- Dynamically format top values
- Export row/column summaries to reports
🎓 Master Excel Automation with VBA (Beginner-Friendly)
🔑 Why Learn VBA?
- Eliminate repetitive tasks
- Build powerful Excel tools
- Automate complex logic (like BYROW/BYCOL) programmatically
🎬 Course Highlights:
- 42 easy-to-follow videos
- 4 hours 8 minutes total
- ₹441 only (Limited-time offer, originally ₹1,299)
- Lifetime access
🎯 Designed for non-programmers and Excel enthusiasts alike!
🔗 👉 Enroll today and start automating Excel your way
On sale products
-
Gmail Mastery: Advanced Training for Efficient Email Management
Original price was: ₹899.00.₹849.00Current price is: ₹849.00. -
Google Calendar Mastery Training: Learn to Streamline Your Schedule in Just 1 Hour
Original price was: ₹999.00.₹949.00Current price is: ₹949.00. -
Google Drive Mastery: Learn to Streamline Your Digital Workspace in 27 Minutes
Original price was: ₹999.00.₹949.00Current price is: ₹949.00. -
HP 15 Laptop – 13th Gen Intel Core i3 (12GB RAM, 512GB SSD)
Original price was: ₹52,721.00.₹33,990.00Current price is: ₹33,990.00. -
Little Monk Buddha Statue Set
Original price was: ₹1,299.00.₹134.00Current price is: ₹134.00. -
Mastering Excel Automation: Excel VBA Training Course for Proficiency and Efficiency
Original price was: ₹2,299.00.₹1,999.00Current price is: ₹1,999.00.































