I'm looking to do a sumproduct on two arrays of values arranged from smallest to largest (one of shares, the other of the corresponding share prices), but i want the sumproduct to stop when it finds a share price in the array that's bigger than a given value. ie sumproduct(a1:a5,b1:b5) where if, say, b4>d4 (d4 is my given value), then it outputs sumproduct(a1:a3,b1:b3). or if b1>d4, then it outputs nothing.
thanks a lot
Bookmarks