rows.com

Match two conditions and sum rows without the complexity

Navigating complex data can be challenging, especially when traditional methods fall short.

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

A moment nearly every spreadsheet user recognizes: the sinking feeling when a simple request turns into a formula labyrinth. The user needs to match two conditions across a row, sum a specific range if those conditions are met, and skip a category that doesn't belong. They tried XLOOKUP, ran into SPILL errors, and turned to AI for help. The AI failed them. That frustration is not a failure of the user; it is a failure of the tool. The question they asked is not complex. The solution should not require a forum post and a prayer.

What stands out here is the source of the problem. The user isn't trying to do something exotic. They work with a timesheet system that reports only by person, but they need to report by phase and task. That gap between what a system provides and what a human needs is where spreadsheets usually break down. The user has to stitch together data manually, writing conditional logic that feels like translating between two incompatible languages. The real issue is that the spreadsheet expects them to think like a database administrator when they just want to organize their project.

The smoothest formula for that specific request is a combination of SUMPRODUCT or a well-structured SUMIFS, depending on how the array interacts with the row references. But the better answer is that the user should not have to chase down a forum for this logic. A tool that understands intent, that sees a user want to say "sum these rows if these two headers match my criteria", would remove the entire debugging loop. That is what an AI-native spreadsheet should do. It should listen to the plain-language version of the request and return the result, not a SPILL error or a suggestion that misses the point.

Our take is plain: the problem is not the formula. The problem is that the spreadsheet has not evolved to meet the user where they are. The user knows their data. They know what they need. They should not need to learn array semantics to get a simple conditional sum. The right path forward is a tool that speaks the language of the workflow, not the language of the spreadsheet engine. Until then, SUMPRODUCT with the double unary operator will get the job done, but the job itself should be easier.

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

Ask: If E59:S59=E111 AND E60:s:60<-E112, give me the sum of E61:71,else return 0

I added in what I'm trying to do on the formula line. ChatGPT is less helpful with this than I am. I want to bundle by phase because our timesheet system doesn't allow me to pull a report by phase/task, only by person. I tried Xlookup but kept getting SPILL errors so I am at a loss. FTE1 is a different category and should not be included (PM, I can plug that as it's always in the same position). Thanks in advance for your help.

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