I'm trying to create a formula that will sum the values in a row, but only to the same column as the last non-zero column in another row.
So the formula at the end of row 1 (R1) should only sum columns C to H (Apr to sept) of row 1 because only C to H have data in row 2. October still has a value of zero in row 2.
But as soon as row two has data in column I (October) the formula in row 1 should now sum columns C to I (Apr to Oct)
{=SUM(C1:H1*(C2:H2<>0))}
? – Dirk ReichelSUMIFS()
? Or ..uh, what @DirkReichel said :D – BruceWayne