Dynamic arrays
BYROW
One value per row.
Syntax
BYROW(array, LAMBDA(row))Example: =BYROW(B2:D10,LAMBDA(r,SUM(r)))
Available in: Excel 2024, Microsoft 365
Try it
A tiny spreadsheet with example data. Edit the formula or any number and see the result.
Formula in F2: =BYROW(C2:D4,LAMBDA(r,SUM(r)))
| A | B | C | D | E | F | |
|---|---|---|---|---|---|---|
| 1 | Region | Product | Units | Price | Result | |
| 2 | East | Pen | 120 | 2.5 | 122.5 | |
| 3 | West | Pen | 80 | 2.5 | 82.5 | |
| 4 | East | Book | 45 | 12 | 57 | |
| 5 | North | Book | 60 | 12 | ||
| 6 | West | Lamp | 30 | 25 | ||
| 7 | East | Lamp | 15 | 25 |
Result in F2: 122.5