Search code examples
excelexcel-formulasum

find the first cell in range where cumulative sum >= 0


I have an excel file like this: enter image description here

could anyone help me to find the first cell (from left to right) so that cumulative sum >=0

demo file


Solution

  • With ms365 try:

    enter image description here

    Formula in C6:

    =XLOOKUP(TRUE,SCAN(0,C2:J2,LAMBDA(a,b,a+b))>=0,C2:J2,"No value >= 0")