Your cart is currently empty!
How to Use BYROW and BYCOL Functions in Excel 365 with Practical Examples
🧠 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
-
Excel Course in Hindi: Basic to Advanced Level
Original price was: ₹2,299.00.₹2,249.00Current price is: ₹2,249.00. -
Excel Training Program: Fundamentals to Advanced Techniques : Classroom/ Live Classes
Original price was: ₹6,000.00.₹4,000.00Current price is: ₹4,000.00. -
Excel VBA/Macro Masterclass: Automate Excel, Boost Productivity : Classroom /Live Class Training
Original price was: ₹8,500.00.₹6,500.00Current price is: ₹6,500.00. -
Gmail Mastery Training in Hindi: Unlocking Advanced Email Management Technique
Original price was: ₹899.00.₹849.00Current price is: ₹849.00. -
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.