I'm trying to work out how a cell in a function should move down the column in line with the function, but then not advance once a condition has been triggered.
In this example, my function initially references A1. This cell will of course change to a2, a3 etc automatically as the function is copied down the column. Once the condition for the function is met, I'd like all subsequent rows to reference the original cell until the condition breaks, then jump down to the next instance of a match.
My function so far (column E) is
=IF(D1>C1,(((B1-A1)*100)*12))
This is fine for the first row which meets the criteria, but in this example, I'd like both B4 and B5 to reference A4 (B4-A4 & B5-A4), similarly E8, E9 & E10 should use A8 to subtract from B8-B10. I'm trying to calculate the figures in column E and am interested in the sum of B minus the cell in row A which first meets my condition.
A B C D E 1 0.99800 0.99934 30 16 2 0.99885 0.99945 20 14 3 0.99567 0.99933 25 17 4 0.99456 0.99744 20 22 3.456 5 0.99377 0.99555 22 25 1.188 6 0.99467 0.99542 30 28 7 0.99433 0.99560 40 35 8 0.99465 0.99684 31 32 2.628 9 0.99345 0.99554 30 36 1.068 10 0.99445 0.99500 24 25 11 0.99677 0.99673 30 29
Would really appreciate any pointers for what direction I should be concentrating on to try and solve this.
Many thanks,
Gareth
Bookmarks