Okay, here's a weird one:
I have a series of macros that create a projection. During part of the process the user selects dates of history months to use in creating the projection from a userform. The history months available in the listbox need to be ONLY the month ending date for the 12 month period preceding the current month. So for today the range would be:
12/31/2009
1/31/2010
2/28/2010
3/31/2010
4/30/2010
5/31/2010
6/30/2010
7/31/2010
8/31/2010
9/30/2010
10/31/2010
11/30/2010
I have these dates in a named range on my Sheet1, and each month I have to go update the range by adding the newest and deleting the oldest range.
My question is: is there a date formula that I can put in the cells that will provide the dates, formatted as above, but for the current twelve month cycle? In other words, it would look at today's date and make a calculation as to which month it should be showing. I'm sure there's a formula that would do it, but date formulas aren't my strong suit.
Thanks in advance for any help on this.
Bookmarks