# Index on Sum of Match

#### 8Ball963

##### New Member
Good Morning,

I have a spreadsheet with multiple tabs of data that I need to sum 2 rows of data in 1 tab, then perform a less than operation on that sum, in order to output a date in a row where the balance in another row in less than that number. I have successfully performed the Index/Match on 1 line of data to report a date in row 59 when the balance in row 108 goes negative(the value in G4 is 0):

{=IFERROR(INDEX(INDIRECT("'"&\$B7&"'!\$BH\$59:\$FC\$59")-4,MATCH(TRUE,INDIRECT("'"&\$B7&"'!\$BH\$108:\$FC\$108")<\$G\$4,0)),"NO Tip Point")}.

What I need to do is sum rows 92 and 108, then perform a less than operation on that and report a date in line 59 where the balance falls below the less than operation of the sum. This is where I get either a #N/A, #REF, or #VALUE error. The syntax below gives me a #N/A:

{=INDEX(INDIRECT("'"&\$B7&"'!\$BH\$59:\$FC\$59")-4,MATCH(SUM(INDIRECT("'"&\$B7&"'!\$BH\$92:\$FC\$92"),INDIRECT("'"&\$B7&"'!\$BH\$108:\$FC\$108"))<(AI7-AQ7),0))}

Bill

### Excel Facts

How to find 2nd largest value in a column?
MAX finds the largest value. =LARGE(A:A,2) will find the second largest. =SMALL(A:A,3) will find the third smallest

#### jasonb75

##### Well-known Member
Best guess from 2 broken formulas
Excel Formula:
``=INDEX(INDIRECT("'"&\$B7&"'!\$BH\$59:\$FC\$59")-4,MATCH(TRUE,(INDIRECT("'"&\$B7&"'!\$BH\$92:\$FC\$92")+INDIRECT("'"&\$B7&"'!\$BH\$108:\$FC\$108"))<(AI7-AQ7),0))``
Note that if any of the cells in row 59, 92, or 108 contain text (including formulas that show blank cells) then this will fail.

Replies
11
Views
343
Replies
1
Views
215
Replies
1
Views
113
Replies
5
Views
156
Replies
10
Views
574

1,129,349
Messages
5,635,774
Members
416,880
Latest member
kyleswanson

### We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.

### Which adblocker are you using?

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

### Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

### Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back