Hi,
I am new in the forum and I have looked up similar topics but couldn't find the answer that would suit me. I am stuck in doing one analysis, not able to find the right formula, so here is the issue:
I have a set of binary values in my file (for simplicity I have reduced the range to A2:K7, while in the real file I would have around 1500 rows for each date of 2020 and 2021). On the right (L2:V7) there is the desired outcome and the formula I am looking for should do the following: once the value in the raw data set is 1, it should evaluate the adjacent cells on the left and should check how many consequent 1 values there are and sum them. Once it encounters a cell with 0 it should not count further. E.g in the raw 7 in my file when it evaluates the cell K7 with a simple IF statement - IF(K7=1, ..., 0) --- it should sum the values up to cell F7 because in E7 there is a zero and it should stop the evaluation. In V7 it should reflect the sum.
I tried SUMPRODUCT but wasn't really successful. Does anybody have an idea here?
Bookmarks