One of the traditional limitations of Excel formulas has always been their relationship with repetition. A formula is written, tested, and then copied across a range of cells. The logic itself may be elegant, but its application remains mechanical. Even with the arrival of dynamic arrays, many users continue to think in terms of extending calculations across a worksheet rather than applying a single piece of logic to an entire collection of data.
The introduction of functions such as MAP, BYROW, and BYCOL begins to change this.
Rather than asking how a formula should be copied, modern Excel encourages a different question altogether: how should this logic be applied to every element of a dataset? It is a subtle distinction, but one that moves Excel another step away from being merely a spreadsheet and closer to becoming a genuine data processing environment.
In traditional spreadsheet design, the individual cell is the fundamental unit of thought. Every calculation begins with a specific location, and larger operations emerge from repeating that calculation over many cells.
Dynamic arrays challenge this model by treating ranges as single objects. Functions such as FILTER and UNIQUE already encourage this way of thinking, operating on entire datasets rather than individual values.
MAP, BYROW, and BYCOL take the idea one step further. Instead of returning transformed subsets of data, they allow custom logic to be applied systematically across an existing collection.
The focus shifts from cells to structures.
The simplest of these functions is MAP. Its purpose is straightforward: take one or more arrays, apply a piece of logic to each element, and return the transformed result.
Consider a range of sales figures that need to have VAT applied. Traditionally, you might create a helper column and write a formula that is copied down through every row. With MAP, the same operation can be expressed directly:
Rather than creating one hundred separate formulas, Excel evaluates a single expression across the entire dataset. The distinction is important. The formula describes the transformation itself, not the process of replicating it.
The real strength of MAP becomes apparent when combined with LAMBDA. Suppose you have already created a reusable function that calculates a commission rate based on a number of business rules. Instead of embedding those rules repeatedly throughout the workbook, you simply apply the function across the dataset.
Conceptually, the workbook begins to resemble a programming environment. Functions are defined once, and then executed wherever they are needed. The worksheet itself becomes the place where those functions interact, rather than the place where the logic is repeatedly rewritten.
This significantly reduces duplication and helps ensure that business rules remain consistent throughout the model.
While MAP works with individual elements, many calculations depend on the relationship between values within a row. This is where BYROW becomes particularly useful.
Imagine a dataset where each row contains several monthly sales figures, and you want to calculate whether the annual total exceeds a particular threshold.
Rather than building helper columns or constructing complicated intermediate formulas, you can evaluate each row as a complete unit.
Here, each row is passed into the LAMBDA function as an array, allowing calculations to be performed across the entire record. The result is a single dynamic array containing the outcome for every row.
The formula no longer thinks in terms of individual cells. It thinks in terms of complete records.
The companion to BYROW is, naturally, BYCOL.
Although perhaps encountered less frequently, it is invaluable when columns represent logical groupings of data rather than simple fields. For example, imagine a dashboard containing twelve monthly columns. Rather than creating separate formulas to calculate totals, averages, or maximum values for each month, BYCOL allows the same logic to be applied systematically.
Each column is treated as an independent dataset, and the specified calculation is applied automatically. Again, the emphasis is not on replication but on definition.
One of the recurring themes throughout this series has been the gradual disappearance of helper columns. Historically, helper columns served two important purposes. They broke complicated calculations into manageable pieces, and they allowed formulas to be applied repeatedly across data. Modern Excel increasingly removes both requirements.
Dynamic arrays reduce the need for repeated formulas. LET improves readability. LAMBDA enables reuse. And functions such as MAP, BYROW, and BYCOL allow calculations to be applied across entire structures without creating intermediate columns at all. The result is a workbook that contains less scaffolding and more actual logic.
Perhaps the most interesting aspect of these functions is the way they encourage a different approach to building solutions. Older spreadsheet models often resemble manual processes that have been translated into formulas. The workbook mirrors the steps a person would perform by hand.
These newer functions encourage a more abstract style of thinking. Instead of asking, "How do I calculate this value in every row?" the question becomes, "What transformation should be applied to this dataset?" The distinction may seem philosophical, but it has practical consequences. Solutions become shorter, clearer, and more adaptable because they describe the desired outcome rather than the mechanics of achieving it.
There comes a point, when working extensively with these functions, where Excel begins to feel unlike the spreadsheet application many of us learned years ago. The grid remains, but the mental model changes. Datasets become objects. Functions become reusable components. Entire collections of values are processed through clearly defined transformations, with very little concern for the individual cells involved. This is not programming in the traditional sense, but it is undeniably moving in that direction.
For users who have spent years writing VBA, these ideas may feel surprisingly familiar. For those coming from a purely spreadsheet background, they offer a new way of approaching problems that is both more expressive and more maintainable. And once logic can be applied cleanly across entire datasets, another common challenge comes into focus: dealing with the messy, inconsistent text data that so often forms the foundation of real-world workbooks.
Cat On A Spreadsheet