claudehollett
Board Regular
- Joined
- Dec 11, 2003
- Messages
- 89
Walkenbach lists an array formula for an updating calendar in Excel 2003 Formulas on page 163. This formula works very well for a calendar to look at dates but I need a calendar in which data and events can be entered. I use a small header row over each week to contain the dates and a larger row under the date to use for data and events. As he says, I named a cell "m" for Month and "y" for Year. Can anyone modify the formula to work to suppy dates on every other row of the calendar or is this not possible with arrays?
Here is the formula:
{=IF(MONTH(DATE(y,m,1))<>MONTH(DATE(y,m,1)-(WEEKDAY(DATE(y,m,1))-1)+{0;1;2;3;4;5}*7+{1,2,3,4,5,6,7}-1),"",DATE(y,m,1)-(WEEKDAY(DATE(y,m,1))-1)+{0;1;2;3;4;5}*7+{1,2,3,4,5,6,7}-1)}
Frankly, this formula is over my head. If anyone can help I would appreciate it. Thanks, Claude
Here is the formula:
{=IF(MONTH(DATE(y,m,1))<>MONTH(DATE(y,m,1)-(WEEKDAY(DATE(y,m,1))-1)+{0;1;2;3;4;5}*7+{1,2,3,4,5,6,7}-1),"",DATE(y,m,1)-(WEEKDAY(DATE(y,m,1))-1)+{0;1;2;3;4;5}*7+{1,2,3,4,5,6,7}-1)}
Frankly, this formula is over my head. If anyone can help I would appreciate it. Thanks, Claude