M
makik4
I am modifying timecard which was created by someone else last year.
When I entered starting date, it automatically shows all other dates
under the correct day of the week. For some reason, starting from
August, that function was showing 2007 information. For instance,
when I entered 9/1/08, it appeared under Saturday, (9/1/07 was
Saturday), even though it should be appeared under Monday.
This is the formula in the cell for starting date, where I put down
the date.
=DATE(YEAR(NOW()),MONTH(NOW()),IF(DAY(NOW())<16,1,16))
This one is for ending date, which automatically appears when I enter
starting date.
=DATE(YEAR(NOW()),MONTH(NOW()),IF(DAY(NOW())<16,15,IF(OR(MONTH(NOW())=4,MONTH(NOW())=6,MONTH(NOW())=9,MONTH(NOW())=11),
30,IF(MONTH(NOW())=2,IF(MOD(YEAR(NOW()),4)=0,29,28),31))))
This one is for the date in timesheet, which automatically appears
when I enter starting date.
=IF(OR(MONTH($L$1)=1,MONTH($L$1)=4),IF(DAY($L$1)=16,DATE(YEAR($L
$1),MONTH($L$1),DAY(16)),IF($B$3="","",1+$B$3)),IF(MONTH($L
$1)=8,IF(DAY($L$1)=1,DATE(YEAR($L$1),MONTH($L$1),DAY(1)),IF($B$3="","",
1+$B$3)),IF($B$3="","",1+$B$3)))
I hope this information will be good enough. Thank you very much in
advance.
When I entered starting date, it automatically shows all other dates
under the correct day of the week. For some reason, starting from
August, that function was showing 2007 information. For instance,
when I entered 9/1/08, it appeared under Saturday, (9/1/07 was
Saturday), even though it should be appeared under Monday.
This is the formula in the cell for starting date, where I put down
the date.
=DATE(YEAR(NOW()),MONTH(NOW()),IF(DAY(NOW())<16,1,16))
This one is for ending date, which automatically appears when I enter
starting date.
=DATE(YEAR(NOW()),MONTH(NOW()),IF(DAY(NOW())<16,15,IF(OR(MONTH(NOW())=4,MONTH(NOW())=6,MONTH(NOW())=9,MONTH(NOW())=11),
30,IF(MONTH(NOW())=2,IF(MOD(YEAR(NOW()),4)=0,29,28),31))))
This one is for the date in timesheet, which automatically appears
when I enter starting date.
=IF(OR(MONTH($L$1)=1,MONTH($L$1)=4),IF(DAY($L$1)=16,DATE(YEAR($L
$1),MONTH($L$1),DAY(16)),IF($B$3="","",1+$B$3)),IF(MONTH($L
$1)=8,IF(DAY($L$1)=1,DATE(YEAR($L$1),MONTH($L$1),DAY(1)),IF($B$3="","",
1+$B$3)),IF($B$3="","",1+$B$3)))
I hope this information will be good enough. Thank you very much in
advance.