How to Use the MONTH and YEAR Functions in Excel

The MONTH and YEAR functions allow you to extract time-based insights from your data. In this lesson, you’ll learn how to pull the month and year from dates and apply them to analyze service call trends, seasonal demand, and revenue by year. You’ll also see how these functions support reporting by grouping data and building time-based summaries.

Download the Excel file used in this tutorial:

MONTH and YEAR Functions in Excel

1. Start with a date-based dataset

  • Ensure your dataset includes a date column (for example, service date or transaction date)
  • This date field will be used to extract time-based insights like year and month

2. Extract the year from a date

  • Use the YEAR function to pull the year from each date
  • This creates a new column where each row shows the corresponding year (e.g., 2025, 2026)
  • Fill the formula down the entire dataset

This allows you to group and analyze data by year without modifying the original date column

3. Extract the month from a date

  • Use the MONTH function to return the numeric month (1 through 12)
  • Apply the formula across all rows

This enables grouping by month for trend analysis and seasonal reporting

4. Convert month numbers into readable month names (optional)

  • Use the TEXT function if you want month names instead of numbers (e.g., January, May, December)
  • This is helpful for dashboards, charts, and reports where readability matters

5. Aggregate data by year using conditional functions

  • Use SUMIFS to calculate totals (such as revenue) by year
  • Reference the extracted year column as your criteria range
  • Copy the formula down for each year you want to analyze

This allows you to quickly build year-over-year comparisons

6. Count records by year for operational insights

  • Use COUNTIF or COUNTIFS to count the number of records per year
  • This can be used to track metrics like total jobs, service calls, or transactions

Example use cases:

  • Total jobs completed per year
  • Number of service calls per year

7. Combine month and year into a single label

  • Use the CONCAT function to combine month and year into one field
  • This creates labels like “May – 2025” or “12 – 2026”
  • Useful for charts, tables, and grouped reporting

8. Build combined time fields inside one formula (optional)

  • Instead of creating separate columns, you can combine YEAR and MONTH inside a single calculation
  • This approach reduces the number of helper columns and keeps your model cleaner

9. Use the extracted fields for reporting and analysis

  • Group data by year for annual performance tracking
  • Group data by month to identify seasonal trends
  • Combine both for detailed time-based reporting

Result

You now have a structured dataset that allows you to analyze performance by year, month, or both, enabling cleaner reporting, better trend analysis, and more flexible Excel models.

The MONTH and YEAR Functions in Excel

Q1. What do the MONTH and YEAR functions do in Excel?
The MONTH function extracts the month (as a number from 1 to 12) from a date, while the YEAR function extracts the year. Together, they allow you to break down dates into usable components for analysis.

Q2. Why are these functions important for business analysis?
Most business data includes dates. Using MONTH and YEAR helps you analyze trends over time, such as monthly performance, seasonal patterns, and year-over-year growth.

Q3. How are these functions used in real scenarios?
They are commonly used to group data, such as calculating total revenue by year, counting jobs completed per month, or analyzing demand patterns across different time periods.

Q4. Can I use MONTH and YEAR with other Excel functions?
Yes. These functions are often combined with tools like SUMIFS and COUNTIFS to filter and aggregate data based on specific months or years.

Q5. Why does the MONTH function return a number instead of a name?
By default, MONTH returns a number (1–12). If you want the month name (like “January” or “May”), you can use the TEXT function to format the date accordingly.

Q6. How can I combine month and year into a single value?
You can combine both using functions like CONCAT to create labels such as “Jan – 2025” or “2025-01,” which are useful for reports and dashboards.

Get more lessons like this
by joining our newsletter

Receive weekly Excel tutorials, tips, and KPIs straight to your inbox

Databoards

Analysis & Development