BYROW
The BYROW
function in Google Sheets is a useful tool for grouping an array by rows by applying a LAMBDA
function to each row. This function allows for efficient data manipulation and analysis. Learn how to use BYROW
effectively with our comprehensive guide below.
Function Syntax and Parameters
Syntax: BYROW(array_or_range, LAMBDA)
Parameters:
array_or_range
: The array or range of cells to group by rows.LAMBDA
: The function to apply to each row.
Step-by-Step Tutorial
- Using
BYROW
to group an array by rows using aLAMBDA
function:- Example:
=BYROW(A1:C3, LAMBDA(row, SUM(row)))
- Result: Returns an array with the sum of each row in the range
A1:C3
.
- Example:
Use Cases and Scenarios
- Data Aggregation: Calculate row-wise totals or averages.
- Conditional Analysis: Apply custom logic to each row based on specific criteria.
- Data Transformation: Convert data in each row according to a defined function.
Related Functions
TRANSPOSE
: Transpose rows and columns in a range or array.FILTER
: Filter rows in an array based on specific conditions.