Bart Davis
New Member
- Joined
- Apr 4, 2016
- Messages
- 4
HELP? This is my first post so please let me know if I can clarify what I'm trying to learn to do.
I think in SQL they call this a SUM TILL. I think I figured out how to do it with nested IF statements but there has got to be a better way with INDEX, INDIRECT, MATCH, or OFFSET (maybe in an array?).
I think I want my formula to do the following:
=sum AU from this row up till sum of K from this row up is >= AR in this row, else "Out of Date Range"
Here's the (incomplete) way I figured out so far:
=IF(SUM(K314:K315)>=AR315,SUM(AU314:AU315),IF(SUM(K313:K315)>=AR315,AU313:AU315,IF(SUM(K312:K315)>=AR315,SUM(AU312:AU315),IF(SUM(K311:K315)>=AR315,SUM(AU311:AU315),IF and so on
I would like to be able to drag the formula down as new records are added to continue the calculation.
Thanks for any comments and help!
I think in SQL they call this a SUM TILL. I think I figured out how to do it with nested IF statements but there has got to be a better way with INDEX, INDIRECT, MATCH, or OFFSET (maybe in an array?).
I think I want my formula to do the following:
=sum AU from this row up till sum of K from this row up is >= AR in this row, else "Out of Date Range"
Here's the (incomplete) way I figured out so far:
=IF(SUM(K314:K315)>=AR315,SUM(AU314:AU315),IF(SUM(K313:K315)>=AR315,AU313:AU315,IF(SUM(K312:K315)>=AR315,SUM(AU312:AU315),IF(SUM(K311:K315)>=AR315,SUM(AU311:AU315),IF and so on
I would like to be able to drag the formula down as new records are added to continue the calculation.
Thanks for any comments and help!