Index on Sum of Match

8Ball963

New Member
Joined
Mar 8, 2021
Messages
1
Office Version
  1. 365
Platform
  1. Windows
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))}

Thank you in advance for any help you can provide.

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
Joined
Dec 30, 2008
Messages
12,599
Office Version
  1. 365
Platform
  1. Windows
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.
 

Watch MrExcel Video

Forum statistics

Threads
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.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

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

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

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
Top