K
Ken Schumacher
How can I determine if a particular year is a leap year? (Using Excel 2000)
Let's say I enter 2/18/1985 in cell B3.
In cells B10 through B19 I want to compute accrued time, for vacation, so I have...........
In cell B10 =SUM(B3+36.5)
In cell B11 =SUM(B10+36.5)
In cell B12 =SUM(B11+36.5)
In cell B13 =SUM(B12+36.5)
In cell B14 =SUM(B13+36.5)
In cell B15 =SUM(B14+36.5)
In cell B16 =SUM(B15+36.5)
In cell B17 =SUM(B16+36.5)
In cell B18 =SUM(B17+36.5)
In cell B19 =SUM(B18+36.5)
This is great and dandy because 1985 was not a leap year.
If I entered 2/18/1984 instead of 2/18/1985 in cell B3,
I would have had to used 36.6 instead of 36.5 in the above formulas.
Is there a way I can have Excel figure out which (36.5 or 36.6) to use?
This may not seem like a big deal, but over 30 years it does.
Thanks in advance,
-Ken
Let's say I enter 2/18/1985 in cell B3.
In cells B10 through B19 I want to compute accrued time, for vacation, so I have...........
In cell B10 =SUM(B3+36.5)
In cell B11 =SUM(B10+36.5)
In cell B12 =SUM(B11+36.5)
In cell B13 =SUM(B12+36.5)
In cell B14 =SUM(B13+36.5)
In cell B15 =SUM(B14+36.5)
In cell B16 =SUM(B15+36.5)
In cell B17 =SUM(B16+36.5)
In cell B18 =SUM(B17+36.5)
In cell B19 =SUM(B18+36.5)
This is great and dandy because 1985 was not a leap year.
If I entered 2/18/1984 instead of 2/18/1985 in cell B3,
I would have had to used 36.6 instead of 36.5 in the above formulas.
Is there a way I can have Excel figure out which (36.5 or 36.6) to use?
This may not seem like a big deal, but over 30 years it does.
Thanks in advance,
-Ken