S
Steved
Hello From Steved
Below I was posted the following Formula
In Cell A1 I put 2004
In Cell A2 I put 6
In The Formula I Replace aYear with A1 and aMonth, A2
I can only get it to work on the first day of the month
The below formula is what I amm looking for as the first
column will be blank until it finds the second day in this
case Tuesday and will the put in "1" but this ios all I
get, please explain to me what I am doing wrong,
Assuming:
aYear : a cell or Name containing the year ( 2004)
aMonth: a cell or Name containing the month (6)
Select a 7 lines by 6 columns area and enter the following
Array formula:
use the following formula (and format as Number or General)
=IF(MONTH(DATE(aYear,aMonth,1+{1;2;3;4;5;6;7})-WEEKDAY(DATE
(aYear,aMonth,0))+{0,
1,2,3,4,5}*7)=aMonth,DAY(DATE(aYear,aMonth,1+
{1;2;3;4;5;6;7})-WEEKDAY(DATE(aYear
,aMonth,0))+{0,1,2,3,4,5}*7),"")
Monday 7 14 21 28
Tuesday 1 8 15 22 29
Wednesday 2 9 16 23 30
Thursday 3 10 17 24
Friday 4 11 18 25
Saturday 5 12 19 26
Sunday 6 13 20 27
Thankyou.
Below I was posted the following Formula
In Cell A1 I put 2004
In Cell A2 I put 6
In The Formula I Replace aYear with A1 and aMonth, A2
I can only get it to work on the first day of the month
The below formula is what I amm looking for as the first
column will be blank until it finds the second day in this
case Tuesday and will the put in "1" but this ios all I
get, please explain to me what I am doing wrong,
Assuming:
aYear : a cell or Name containing the year ( 2004)
aMonth: a cell or Name containing the month (6)
Select a 7 lines by 6 columns area and enter the following
Array formula:
use the following formula (and format as Number or General)
=IF(MONTH(DATE(aYear,aMonth,1+{1;2;3;4;5;6;7})-WEEKDAY(DATE
(aYear,aMonth,0))+{0,
1,2,3,4,5}*7)=aMonth,DAY(DATE(aYear,aMonth,1+
{1;2;3;4;5;6;7})-WEEKDAY(DATE(aYear
,aMonth,0))+{0,1,2,3,4,5}*7),"")
Monday 7 14 21 28
Tuesday 1 8 15 22 29
Wednesday 2 9 16 23 30
Thursday 3 10 17 24
Friday 4 11 18 25
Saturday 5 12 19 26
Sunday 6 13 20 27
Thankyou.