Summing data above until a blank cell

时间:2016-07-28 20:18:55

标签: excel excel-formula

I need to sum the data points (vlookup points) in above cells for a variable number of data rows. Each sum location is separated by a blank row in the report. I am getting an error in the Index portion of the formula to complete the sum.

The sum should be for all data points above when there is a data point in column C directly to the right. Is there an adjustment I need to make to the sum function or do I have the sum approach all wrong?

The third fourth and fifth data series have the sum manually entered to show what I need. Please let me know if you need any more information. Thanks for your help!

"=IFERROR(IF(C3<>"",SUM(B1:INDEX(B:B,MATCH(TRUE,INDEX(B2:$I$998="",0),0))),VLOOKUP(A3,'[179821 Invoice Status Report.xls]Subcontract Invoices'!$A$8:$AB$506,4,FALSE)),"")"

Sum Above Example

1 个答案:

答案 0 :(得分:0)

INDEX中的范围必须是单列。因此,如果您将$ 998美元更改为$ 998美元,它应该有效。