Row total flag
=BYROW(C2:F, LAMBDA(r, IF(SUM(r)>500, "Bonus", ""))) marks rows whose four columns sum above 500.
BYROW takes an array and a LAMBDA that receives one row at a time. It returns a column of results, one per row. It is the clean way to sum across columns, test row-wide rules, or format composite keys without ARRAYFORMULA hacks.
Use BYROW when logic needs values from several columns in the same row, like scoring surveys or building SKU labels from part fields.
Skip BYROW for column-only operations. BYCOL or MAP on a single column is simpler.
Select the rectangular data range including all columns the LAMBDA will read.
Write BYROW(range, LAMBDA(row, ...)) where row is one horizontal array.
Return one scalar per row from the LAMBDA body.
Use TOCOL or INDEX inside the LAMBDA when you need specific positions in the row vector.
Leave spill space in the output column.
Name complex LAMBDA bodies with LET for maintainability.
=BYROW(C2:F, LAMBDA(r, IF(SUM(r)>500, "Bonus", ""))) marks rows whose four columns sum above 500.
=BYROW(A2:C, LAMBDA(r, TEXTJOIN("-", TRUE, r))) builds keys from three columns per row.
=BYROW(D2:G, LAMBDA(r, AND(r>=70))) checks whether every exam column in the row is at least 70.
Build this without starting from a blank cell
Use a Better Sheets tool for BYROW, then watch a walkthrough when you want the full pattern.
Watch how BYROW works
Guides that explain BYROW in more depth.
You may be using Google Sheet to do math and find that you need to iterate a number. ROW() gets you the row you're on, and helps you with this.
Read post →In this post, we'll cover how to remove rows automatically in Google Sheets using Apps Script, ensuring you save time and streamline your spreadsheet management. You're probably already familiar with the manual way of right-clicking and deleting rows, but there's a more efficient way to handle this—automation! Manual versus Semi-Automatic Deletion You may know that you can manually delete rows in Google Sheets by right-clicking and selecting "Delete row." You can even select multiple rows...
Read post →3 possible ways to create a formula for every row in a column in a Google Spreadsheet. And two bonus ways to make it look nicer. - Auto fill - Double Click - ArrayFormula
Read post →BYCOL mirrors BYROW but runs a LAMBDA on each column of a range. The result spills across one row with one value per column. Use it for column-wise stats, normalizing monthly blocks, or validating each survey question column.
Read guide →MAP walks aligned arrays element by element and applies a LAMBDA to each position. Pass one array for unary transforms or several arrays for element-wise combinations. It is the modern replacement for many ARRAYFORMULA column operations.
Read guide →LAMBDA defines an anonymous function inside a formula. You name parameters, write the calculation, then pass arguments when you call it. Combined with MAP, BYROW, or a named LAMBDA in the Name manager, it replaces fragile copy-paste logic across big tables.
Read guide →REDUCE walks an array left to right, carrying an accumulator value updated by a LAMBDA on each step. It can implement custom aggregates, text joins with rules, or conditional running logic that SUM alone cannot express.
Read guide →Done reading about BYROW?
Membership unlocks 636+ tutorials, unlimited generators, and every template. Practical lessons. Zero fluff.
Need this once
Jump to a free tool or a single tutorial for this topic.
Learning Sheets for real
Unlock the full library, generators, and templates with membership.