R
Roger
I have a time report sheet I have made in Excel. Our pay
periods run from the 1st of the month to 15th and 16th to
end of the month. I have all working except for being
able to display Feb 29th, 2004. Following is the formula
that I have entered. Basically, it displays all months
and dates correctly except the PC's internal date must be
on Feb 29th for it to display the 29th. Our time
reporting is done before the 29th, so it should display
the 29th if the month is Feb, year is 2004, and the
reporting date is anytime between the 16th and 29th. Any
help appreciated. Spreadsheet available upon request.
IF(AND(MONTH(H2)=2,(DAY(TODAY())=29)),G36+13,IF(MONTH(H2)
=2,"",IF(DAY(H2)<16,F36,G36)+13))
TIA,
Roger
periods run from the 1st of the month to 15th and 16th to
end of the month. I have all working except for being
able to display Feb 29th, 2004. Following is the formula
that I have entered. Basically, it displays all months
and dates correctly except the PC's internal date must be
on Feb 29th for it to display the 29th. Our time
reporting is done before the 29th, so it should display
the 29th if the month is Feb, year is 2004, and the
reporting date is anytime between the 16th and 29th. Any
help appreciated. Spreadsheet available upon request.
IF(AND(MONTH(H2)=2,(DAY(TODAY())=29)),G36+13,IF(MONTH(H2)
=2,"",IF(DAY(H2)<16,F36,G36)+13))
TIA,
Roger