Determining whether a year is a leap year
To determine whether a particular year is a leap year, you can write a formula that determines whether the twenty-ninth day of February occurs in February or March. You can take advantage of the fact that Excel’s DATE function adjusts the result when you supply an invalid argument—for example, a day of 29 when
February contains only 28 days.
The following formula returns TRUE if the year of the date in cell A1 is a leap year. Otherwise, it returns FALSE.
=IF(MONTH(DATE(YEAR(A1),2,29))=2,TRUE,FALSE)
This function returns the wrong result (TRUE) if the year is 1900. See the section “Excel’s leap year bug,” earlier in this chapter.
// Related Posted - GOOGLE!
Loading
Related Websites
- Wealth Builder Ratios - Q1 2010 Update Here is our Q1 2010 Wealth Builder Ratio update. During the first quarter of 2010, the Dow, Nasdaq and S&P500...
- Is Search Engine Optimization Cost Effective? Whenever I buy any Internet tool or service that is connected with my online businesses I always ask myself, will...
- Lending Club IRA: Learn About Lending Club’s Retirement Account Option If you have an interest in peer to peer lending but aren’t excited about paying ordinary income tax on your...
- Check if URL exists and is Online - PHP Imagine you need to check if a site is online or not, seems pretty easy since there's plenty of tools...
- Roundup for week of 17 December 2007: Christmas Eve edition This is the Christmas Eve edition because tomorrow is Christmas. That's how it happened to work out this year.Here are...
