I see this has been tried many times but I haven't seen a successful stab at it.
Okay, I have a list of dates and closing prices.
I've managed to use an array formula:
=INDEX(A$1:A$4000,SMALL(IF(WEEKDAY($A$1:$A$4000,2)=5,ROW($1:$4000)),ROW(1:1)))
to pick out the friday values. However, the stock market is closed on some Fridays and even Thursdays occasionally, like at christmas. Sometimes the last day of the week with data is Wednesday. How would you get only the data from the last day of the week.
Check out the Friday puller in the attached worksheet. It's close but skips a few weeks, like here:
12/11/1998 1175.25
12/18/1998 1197.25
1/8/1999 1287
1/15/1999 1248.5
I need the closing value of each week, regardless if it's a 5 day, 4 day or a 3 day week.
any help is appreciated.
Bookmarks