rows.com

Unlock Smarter Spreadsheets with Dynamic Filtered Sums

Introducing a dynamic function that efficiently broadcasts sums based on filtered criteria can significantly enhance your spreadsheet capabilities.

3 min readMicrosoft Excel | Help & Support with your Formula, Macro, and VBA problems | A Reddit Community

The spreadsheet problem you've described is one we see constantly: static grids that demand manual updates, brittle formulas that break the moment someone adds a row, and data that feels stuck instead of flowing. But the solution here isn't a workaround, it's a dynamic formula that can spill across your presentation grid and adapt as your source data grows. That's not just convenient; it's the difference between a tool you fight and a tool that works with you.

What stands out in your example is the simplicity of the payoff. You have a source table with product, region, month, and two metrics, Target and Actual. Your presentation grid then flips that into a clean layout with regions as rows and months as columns, but with one critical twist: you need to filter by a product list that lives in a separate range. The formula you need isn't just a SUMIFS, it's a combination of SUMIFS with a FILTER or SUMPRODUCT that respects both the row and column headers and the product criteria. The fact that you're asking for scalability, not just a one-off fix, tells us you understand the real goal: build once, reuse forever.

The practical takeaway is this: dynamic array formulas are the right tool for this job, and they're not as intimidating as they sound. By using something like `=SUM(SUMIFS(Source[Actual], Source[Region], $A2, Source[Month], B$1, Source[Product], $A$2:$A$3))` entered as a spilled array, or better, using `BYROW` or `MAKEARRAY` for full spill behavior, you can create a single formula that populates the entire grid. The key is structuring your source as a real table and referencing the product list directly, so when that list expands or the months shift, your output updates without a single manual tweak.

What we appreciate most about your approach is that you're not asking for a macro or a script. You're asking for a formula that respects the boundaries of your workbook while still being intelligent enough to handle change. That's the right instinct. Dynamic arrays are already available in modern Excel and Google Sheets, and they reward exactly this kind of thinking: define the logic once, let the engine do the heavy lifting. So take the time to set up the formula correctly now, and you'll never have to rebuild this grid again. That's not just smarter, it's the way spreadsheets should have always worked.

From Microsoft Excel | Help & Support with your Formula, Macro, and VBA problems | A Reddit Community

I have another table used for presentation with fixed rows and columns arranged this way :

I need a dynamic formula to spill across this grid. The rows and columns can increase so the solution should be scalable. Also there is another range with required list of products. for e.g range A1:A2 with items "Comp" and "PC", so the formula should be able to filter the sum based on items in this list.

Read the original at Microsoft Excel | Help & Support with your Formula, Macro, and VBA problems | A Reddit Community