Wauvel

Excel like a finance pro.

← The library

Logical function

BYROW

Applies a LAMBDA to each row of an array and returns one result per row.

OccasionalDifficulty 1700 · ExpertUsage rank #103 of 520
Practice · 3 questions →

When to use it

Applies a LAMBDA to each row of an array and returns one value per row.

The shape of it

Syntax
=BYROW(array, lambda)

Worked examples

  • Row sums

    =BYROW({1,2;3,4},LAMBDA(r,SUM(r))) {3;7}

    Row sums.

  • Row max

    =BYROW(B2:D6,LAMBDA(r,MAX(r))) a max per row

    The largest value in each row.

  • Join each row

    =BYROW(B2:D6,LAMBDA(r,TEXTJOIN("-",TRUE,r))) joined rows

    Each row joined into one string.

Worth knowing

  • Replaces a helper column of per-row formulas with one spill.
  • Combine with FILTER: FILTER(data,BYROW(data,LAMBDA(r,SUM(r))>100)).
  • BYCOL for columns.

Where it goes wrong

  • The LAMBDA must return a single value per row.
  • Requires Microsoft 365.

Related

Learn the moves here — or let Wauvel run them on your numbers.

Meet your AI CFO →

One CFO-grade Excel tip a week

A short, practical email for finance operators — functions, shortcuts, and the moves that save an afternoon. Free, unsubscribe anytime.