BYROW in Apple Numbers
Short answer: BYROW runs a LAMBDA on every row of a range and returns one result per row. Syntax:
BYROW(array, LAMBDA(row, calculation))Explanation
BYROW runs a LAMBDA on every row of a range and returns one result per row.
Syntax
BYROW(array, LAMBDA(row, calculation))Example
Find the highest number in each row of B2:C5 with BYROW and add those maxima up.
| A | B | C | |
|---|---|---|---|
| 1 | Product | Price | Qty |
| 2 | Apple | 4 | 10 |
| 3 | Pear | 6 | 5 |
| 4 | Kiwi | 12 | 2 |
| 5 | Grape | 8 | 3 |
Formula: =SUM(BYROW(B2:C5,LAMBDA(r,MAX(r))))
Result: 36
Frequently asked questions
What does BYROW do in Apple Numbers?
BYROW runs a LAMBDA on every row of a range and returns one result per row.
What is the syntax of BYROW?
The syntax is BYROW(array, LAMBDA(row, calculation)).
More in this category
Practise it yourself
Type the formula yourself in a real exercise and see right away if your answer is correct. The first exercises are free.
Start practising