Excel Formula: Check IF Two Dates Are In Same Month And Year
There are two lists of dates, now to check if the two dates in the same row are in the same month and year in Excel, which formula can you use? Here in this tutorial, a formula can help you.
Syntaxt and Arguments
|Date1, date2:the two dates you want to check if are in the same year and month.|
The formula returns to a logical value “TRUE” or “FALSE”. “TURE” indicates the two dates are in the same month and year, otherwise, it returns “FALSE”.
How this formula works
To compare two lists in the range B3:B5 and C3:C5 and check if the dates in the same row are in the same year and month, using below formula:
Press Enter key and drag auto fill handle down to cell D5.
MONTH function: returns month as integer number by the given date.
YEAR function: returns year as integer number by the given date.
If you just want to check if the dates are in same month or same year, use the formula like:
- Check if a date is workday
This tutorial provides a formula to to check a date if is a workday.
- Count Specific Weekday Between Two Dates
This tutorial provides the formula to count a specific weekday between two given dates in Excel.
- Count Days From Today
This tutorial provides the best formula to calculate the difference between a date and today in Excel.
- Convert Weekday in A Date Range
If there is a list of dates, how can you count a certain day of week in such a list of dates?
- Excel WEEKNUM Function
Returns the week number of the given date in a year
- Excel WORKDAY Function
Adds workdays to the given start date and returns a workday
- Excel MONTH Function
The MONTH is used to get the month as integer number (1 to 12) from date
- Excel DAY Function
DAY function gets the day as a number (1 to 31) from a date
- Excel NOW Function
Get the current time and date