Sum Until next Blank 2

  • Thread starter Thread starter woozlemonk
  • Start date Start date
W

woozlemonk

=IF(F24="","",IF(G24="",SUM(H25:***here***),G24*IF(ISNA(VLOOKUP(F24,A:H,8,FALSE))=TRUE,VLOOKUP(F24,PRICING!A:C,3,FALSE),VLOOKUP(F24,A:H,8,FALSE))))

is there code that will identify the next cell in a column with a specific
value?

that being the case I could use "" as that value

any thoughts?
 
This is bulky, but it works. If you enter this somewhere in row 24, sums H25
till it finds a blank in column G after current row (24).

=IF(F24="","",IF(G24="",SUM(INDIRECT("H"&ROW()+1&":C"&MIN(IF(ISBLANK(G25:G100)*ROW(G25:G100)=0,100000,ISBLANK(G25:G100)*ROW(G25:G100))))),G24*IF(ISNA(VLOOKUP(F24,A:H,8,FALSE)E,VLOOKUP(F24,PRICING!A:C,3,FALSE),VLOOKUP(F24,A:H,8,FALSE))))

You'll also need to enter this as an array, by pressing Ctrl+Shift+Enter.
 
Back
Top