Sum Until next Blank 2

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?
 
L

Luke M

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top