ExcelExcel 2024+
BYROW function in Excel
Applies a LAMBDA to each row and returns an array of the results
=BYROW(array, lambda(row))BYROW syntax and parameters
Two arguments, two required.
- arrayarrayRequired
- lambda(row)anyRequired
BYROW examples
Formulas you'll actually reuse.
A yearly total for each product row:
=BYROW(B2:M13, LAMBDA(row, SUM(row)))Flag rows whose best month cleared 10,000:
=BYROW(B2:M13, LAMBDA(row, IF(MAX(row) > 10000, "Peak", "")))
BYROW in Google Sheets
Same name — your formula ports as-is.
Try BYROW in the playground
Edit the example — nothing to install.
Preloaded with the BYROW formula from Example 1 — change anything and watch it respond.
Loading the editor…
Related functions
More ways Excel gets this done.
- ANDReturns TRUE if all of its arguments are TRUELogicalGoogle Sheets
- BYCOLApplies a LAMBDA to each column and returns an array of the resultsLogicalGoogle Sheets
- FALSEReturns the logical value FALSELogicalGoogle Sheets
- IFSpecifies a logical test to performLogicalGoogle Sheets
- IFERRORReturns a value you specify if a formula evaluates to an error; otherwise, returns the result of the formulaLogicalGoogle Sheets
- IFNAReturns the value you specify if the expression resolves to #N/A, otherwise returns the result of the expressionLogicalGoogle Sheets