Skip to content
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.

  1. A yearly total for each product row:

    =BYROW(B2:M13, LAMBDA(row, SUM(row)))
  2. 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…