![]() |
Sum Until next Blank 2
=IF(F24="","",IF(G24="",SUM(H25:***here***),G24*IF (ISNA(VLOOKUP(F24,A:H,8,FALSE))=TRUE,VLOOKUP(F24,P RICING!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? |
Sum Until next Blank 2
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,10000 0,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. -- Best Regards, Luke M *Remember to click "yes" if this post helped you!* "woozlemonk" wrote: =IF(F24="","",IF(G24="",SUM(H25:***here***),G24*IF (ISNA(VLOOKUP(F24,A:H,8,FALSE))=TRUE,VLOOKUP(F24,P RICING!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? |
All times are GMT +1. The time now is 06:02 AM. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com