in reply to Re^6: How to loop over two lines, alter a value in the current line and save it to the previous line?
in thread How to loop over two lines, alter a value in the current line and save it to the previous line?
Correction: I just hadn't implemented it properly, that works! Thanks so much!
The issue was there was some circularity in my earlier code, part of the calculations I was doing were actually working on the old values (even though I wanted it to use new values on the whole), so once I took those out I could see that what you'd suggested works. Thanks again