Milandereede
New Member
- Joined
- Nov 2, 2014
- Messages
- 9
Hello there! Apologies if this has been answered before but after a long time searching I've given up.
I have a data sheet with daily stock data for 36 different stocks over a 5 year period. What I want to do now is convert the daily stock bid/ask price into a weekly return. This should be as easy as =(G9-G5)/G5, since I am just trying to find the average change between the start of the week and the end of the week (monday to friday). The problem I however run into is that the stock market has not been open everyday, therefore I can't simply drag this formula down the entire length of the document and would have to manually input this for every week as some have 4 business days and some have 5.
There must be some faster way to do this, but I really just can't seem to figure it out.
I hope the image offers some clarification in case I was unclear. So far I have been trying to do it manually but since I literally have tens of thousands of rows I was hoping there would be a faster way.
Any help would be greatly appreciated!
[TABLE="width: 1164"]
<colgroup><col><col><col><col><col><col><col span="5"><col></colgroup><tbody>[TR]
[/TR]
[TR]
[/TR]
[TR]
[/TR]
[TR]
[/TR]
[TR]
[/TR]
[TR]
[/TR]
[TR]
[/TR]
[TR]
[/TR]
[TR]
[/TR]
[TR]
[/TR]
[TR]
[/TR]
[TR]
[/TR]
[TR]
[/TR]
[TR]
[/TR]
[TR]
[/TR]
[TR]
[/TR]
[TR]
[/TR]
[TR]
[/TR]
[TR]
[/TR]
[TR]
[/TR]
[TR]
[/TR]
[TR]
[/TR]
[TR]
[/TR]
[TR]
[/TR]
[TR]
[/TR]
[TR]
[/TR]
[TR]
[/TR]
[TR]
[/TR]
</tbody>[/TABLE]
I have a data sheet with daily stock data for 36 different stocks over a 5 year period. What I want to do now is convert the daily stock bid/ask price into a weekly return. This should be as easy as =(G9-G5)/G5, since I am just trying to find the average change between the start of the week and the end of the week (monday to friday). The problem I however run into is that the stock market has not been open everyday, therefore I can't simply drag this formula down the entire length of the document and would have to manually input this for every week as some have 4 business days and some have 5.
There must be some faster way to do this, but I really just can't seem to figure it out.
I hope the image offers some clarification in case I was unclear. So far I have been trying to do it manually but since I literally have tens of thousands of rows I was hoping there would be a faster way.
Any help would be greatly appreciated!
[TABLE="width: 1164"]
<colgroup><col><col><col><col><col><col><col span="5"><col></colgroup><tbody>[TR]
[/TR]
[TR]
[/TR]
[TR]
[/TR]
[TR]
[/TR]
[TR]
[/TR]
[TR]
[/TR]
[TR]
[/TR]
[TR]
[/TR]
[TR]
[/TR]
[TR]
[/TR]
[TR]
[/TR]
[TR]
[/TR]
[TR]
[/TR]
[TR]
[/TR]
[TR]
[/TR]
[TR]
[/TR]
[TR]
[/TR]
[TR]
[/TR]
[TR]
[/TR]
[TR]
[/TR]
[TR]
[/TR]
[TR]
[/TR]
[TR]
[/TR]
[TR]
[/TR]
[TR]
[/TR]
[TR]
[/TR]
[TR]
[/TR]
[TR]
[/TR]
</tbody>[/TABLE]