aad401
This will reproduce the requested formula in all columns headed 'Adj Close' and adjusts for the possible varying number of rows in the target column.
Be careful if you run the code a second time... it will recalculate the last row in each target column therefore a rerun will include the previous result. Test it to see what I mean.
If you need the previous result to be removed the code will need to recognise it as a result somehow. If you do need this come back.
Edit .... Is the result row number fixed as in your first outline i.e. row 15 or variable?
hth
gmk
If this is the answer you require please remember to mark the the thread as solved and if you feel it is warrented then add to my reputation by clicking on the star at the bottom of my reply.
Bookmarks