Change Daily Stock Prices to get only Week-end Stock Prices
I have a sheet containing daily stock prices of a company, but I need the data that reflects the price at the end of the week. I tried putting a DayNumber Column through =weekday formula and highlighting all the data with 6 as the output but it turns out that there are some Fridays where the stock exchange is closed so the last day of the week was a Thursday or a Wednesday. I could manually choose the highest day of the week but it's a 10 year data and it would take me an hour to do that. Is there an easier way to solve this?
Edit: Here is a screenshot of my data
Thanks in advance.
Posted Apr 22, 2023, 7:41 AM UTC · edited
You can see here, how I use two helper columns to figure out the latest given day of any week with COUNTIFS() on the WEEKNUM() and the WEEKDAY().
Solution Verified.
You have awarded 1 point to NHN_BI
^(I am a bot - please contact the mods with any questions. | ) ^(Keep me alive)
Thanks for the great demonstration, this worked.
Great! Please reply:
Solution Verified