Hi,
I need to do an average on stock prices where we get the weekday prices from the NYSE. This only includes week days, so now weekend or holidays, but to do an average price, I need to assign the Friday price to Saturday and Sunday and for a holiday assign the price from the prior day. I need to do this for a specific period, so I have added a macro to choose the period end date.
I have taken a stab at development based on other information on the Community, but I hit a problem if the last day of the month is a weekend. For example, April period end is 4/30/2021, which was a Saturday. I have the 4/29/2021 price, but I can't get it to generate a row for 4/30. So the real issue in my process is when the period end date is not a date in the data file.
Suggestions? I have attached my process below. In the Multi-Row Formula, I cannot get the new column for "DateRange" to populate.

Thanks!