Texas Longhorn
Active Member
- Joined
- Sep 30, 2003
- Messages
- 493
Hi all,
I'm trying to calculate one year stock returns for various stock symbols in a spreadsheet that updates generally daily. My company has a vendor that supplies an add-in that allows us to pull historical stock prices into excel by using a function that references a date in a cell. The problem is, if the reference date is a date on which the market was closed (i.e. weekend or US holiday), then I receive an error. Currently, my historical date is found via =TODAY()-364.
Is there a way to have Excel return the non-holiday/non-weekend day closest to TODAY()-364?
Thanks for any help,
Bill
I'm trying to calculate one year stock returns for various stock symbols in a spreadsheet that updates generally daily. My company has a vendor that supplies an add-in that allows us to pull historical stock prices into excel by using a function that references a date in a cell. The problem is, if the reference date is a date on which the market was closed (i.e. weekend or US holiday), then I receive an error. Currently, my historical date is found via =TODAY()-364.
Is there a way to have Excel return the non-holiday/non-weekend day closest to TODAY()-364?
Thanks for any help,
Bill