Forum Discussion

Barrett Snyder's avatar
Barrett Snyder
Copper Contributor
Aug 09, 2018
Solved

Sum A Range Based on The Difference Between Text In Another Column

I apologize ahead of time for a confusing title but it's the best way I could think of to describe it.   I am putting together a sheet that converts a standard report from our fleet management soft...
  • Philip West's avatar
    Aug 09, 2018

    I think I can do this with one extra column to calculate the number of blanks cells above whatever zone you are up to..

     

    Try this. In K9 enter this array formula:

    =ROW()-1-MAX(IF(NOT(ISBLANK($I$1:I8)),ROW($I$1:I8)))

    you need to enter it with ctrl+shift+enter.

     

    Next in K9 add this formula:

    =IF(ISBLANK(I9),"",SUM(OFFSET(F9,0,0,(J9+1)*-1)))

     

    copy both down however far you have data..

     

    That should sum everything in column F between the previous Zone and this one..

Resources