firstWeMeet
Board Regular
- Joined
- Feb 8, 2011
- Messages
- 200
Hi, My date formula is not working, anyone has a suggested formula for this setup?
this is my setup
G3=2011 (year)
J3=1 (representing the month which is January)
C12=IF(OR(G3="",J3=""),"No Year and Date",DATE($G$3,$J$3,1))
C12 will automatic appear the month.
M3=1 (representing the start of Day)
C14=INDEX({"Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"},1+MOD($M$3+1-2,7))
C14 and below will automatic for a Day (like Sunday, Monday, and the rest Day)
Now! the problem is for my E14 and below is not responding for a date such as 1 to 31, my formula for E14 and below is this:
=IF(MONTH($C$12)<>MONTH($C$12-(WEEKDAY($C$12,1)-($M$3-1))-IF((WEEKDAY($C$12,1)-($M$3-1))<=0,7,0)+(ROW(E14)-ROW($E$14))*7+(COLUMN(E14)-COLUMN($E$14)+1)),"",$E$14-(WEEKDAY($E$14,1)-($M$3-1))-IF((WEEKDAY($C$12,1)-($M$3-1))<=0,7,0)+(ROW(E14)-ROW($E$14))*7+(COLUMN(E14)-COLUMN($E$14)+1))
this is my setup
G3=2011 (year)
J3=1 (representing the month which is January)
C12=IF(OR(G3="",J3=""),"No Year and Date",DATE($G$3,$J$3,1))
C12 will automatic appear the month.
M3=1 (representing the start of Day)
C14=INDEX({"Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"},1+MOD($M$3+1-2,7))
C14 and below will automatic for a Day (like Sunday, Monday, and the rest Day)
Now! the problem is for my E14 and below is not responding for a date such as 1 to 31, my formula for E14 and below is this:
=IF(MONTH($C$12)<>MONTH($C$12-(WEEKDAY($C$12,1)-($M$3-1))-IF((WEEKDAY($C$12,1)-($M$3-1))<=0,7,0)+(ROW(E14)-ROW($E$14))*7+(COLUMN(E14)-COLUMN($E$14)+1)),"",$E$14-(WEEKDAY($E$14,1)-($M$3-1))-IF((WEEKDAY($C$12,1)-($M$3-1))<=0,7,0)+(ROW(E14)-ROW($E$14))*7+(COLUMN(E14)-COLUMN($E$14)+1))