Excel formula to sum row until blanks in columns -


i looking sum set of cells in row based on other row value or until blank column found in same row. please refer below table example.

                  b   c   d   e   f   g   h     j values sum  1       1   1       2   3   1       1 helper          1   0   0   1   0   0   0   1   0   1 output required 1           2               6       1 

i need formula in last row(output). formula should able sum until blank column in first row or until 1 in helper row.

example:

  • in a1, value 1 output in a3 1.
  • in h2 when value 1 helper row, in h3 should sum f1+g1+h1 = 6.

formula sum can either use helper row or blanks in first row.

hope there formula result.

if comfortable sum appearing @ start of break, can try formula:

=if(a2="..",sum(offset(b2,,,,(match("..",b2:$y$2,0)))),"")

you not needing helper row formula!! press ctrl+shift+enter execute

enter image description here data in a1:y3


Comments

Popular posts from this blog

Android layout hidden on keyboard show -

google app engine - 403 Forbidden POST - Flask WTForms -

c - Why would PK11_GenerateRandom() return an error -8023? -