To excel group by month, use =TEXT(A2,"mmm-yy") to create a month label column, then use SUMIFS to total values per label. Alternatively, insert a Pivot Table, drag your date field to Rows, right-click any date, and choose Group by Month. Both methods work in Excel 2016, 2019, and Microsoft 365.
Key Takeaways
- TEXT(date,”mmm-yy”) converts a raw date like 14-Mar-2024 into “Mar-24”, the fastest formula approach for month grouping.
- EOMONTH gives you the last day of any month, useful when you need a true date anchor for sorting or charting.
- Pivot Tables can group dates by month in two clicks, no helper column needed.
- SUMIFS lets you sum sales, expenses or any numeric column by a month label you create with TEXT.
- Sorting month labels alphabetically will break your report. Use a custom list or a numeric MONTH/YEAR key to keep chronological order.
Why Group Dates by Month in Excel
Raw transaction data almost never arrives monthly. You get daily or weekly rows, sometimes thousands of them, and your manager wants a single number per month. Grouping collapses that detail into a trend you can actually read and present.
This skill shows up constantly in real analyst work. A finance team in Bengaluru tracking GST filings needs monthly totals by category. An e-commerce operations team in Mumbai needs monthly order volumes by region. The data is always daily; the reporting is always monthly.
According to LinkedIn’s Jobs on the Rise 2024 report, data analyst roles in India grew at roughly 30 percent year-on-year, with Excel and data wrangling listed among the top five skill requirements. According to Statista’s Global Software Survey 2023, Microsoft Excel is used by over 750 million people worldwide, making it the most widely deployed data tool in enterprise environments. If you’re thinking about where this skill fits in a broader career, read our guide on data analyst vs data scientist to understand which path suits you.
Learning to excel group by month is also the foundation of trend reporting. Once you can produce a clean month-by-month table, you can feed it into a chart, a Power BI dashboard, or a management deck in minutes.
Formula Methods to Excel Group by Month: TEXT and EOMONTH
Formulas give you full control. You create a helper column, generate a month label, and then use that label in aggregation. Here is how each function works.
Using TEXT to Create Month Labels
The TEXT function converts a date value into a formatted text string. The syntax is TEXT(value, format_text). For monthly grouping, you will use:
| Formula | Input Date | Output | Best Use |
|---|---|---|---|
=TEXT(A2,"mmm-yy") |
14-Mar-2024 | Mar-24 | Readable labels in reports |
=TEXT(A2,"mmmm yyyy") |
14-Mar-2024 | March 2024 | Formal documents |
=MONTH(A2)&"-"&YEAR(A2) |
14-Mar-2024 | 3-2024 | Numeric key for sorting |
=EOMONTH(A2,0) |
14-Mar-2024 | 31-Mar-2024 | Date anchor for charts |
A common mistake: people use TEXT(A2,"mmm-yy") and then try to sort the output column alphabetically. “Apr-24” sorts before “Jan-24” because Excel sorts text, not dates. Always keep a separate numeric sort key using =YEAR(A2)*100+MONTH(A2) alongside your label column.
Using EOMONTH for Date-Based Grouping
EOMONTH(start_date, months) returns the serial number of the last day of a month. When months is 0, it returns the last day of the same month as your input date. This is useful when you want every date in March to map to 31-Mar-2024, so you can use a real date for axis scaling in charts.
Combine it with SUMIFS like this: =SUMIFS(C:C, B:B, ">="&DATE(2024,3,1), B:B, "<="&EOMONTH(DATE(2024,3,1),0)). This sums column C for every row where column B falls within March 2024. It is precise and handles leap years automatically.
SUMIFS Formula to Sum by Month in Excel
Once you have a TEXT label column (say column D contains "Mar-24"), your SUMIFS formula becomes simple: =SUMIFS(C:C,D:D,"Mar-24"). Build a summary table with unique month labels in one column and this formula beside each one. That is your monthly report, built entirely with formulas.
On the job, SUMIFS is often preferable to pivot tables when your report template is fixed and needs to auto-refresh as new data is pasted in. Pivot tables require a manual refresh; a formula-based approach updates instantly.
Excel Pivot Table Group by Month and Year
Pivot Tables are the fastest way to excel group by month when you are exploring data rather than building a locked-down template. The built-in grouping feature does the heavy lifting.
Step-by-Step: Group Dates in a Pivot Table by Month
- Select any cell in your data and press Ctrl + T to convert it to an Excel Table. This ensures new rows are included when you refresh.
- Go to Insert > PivotTable and place it on a new sheet.
- Drag your date field (e.g., "Order Date") to the Rows area and your numeric field (e.g., "Revenue") to the Values area.
- Right-click any date in the Row Labels column and choose Group.
- In the dialog, select Months. Hold Ctrl and also select Years if your data spans multiple years, otherwise January 2023 and January 2024 will merge into one row.
- Click OK. Excel collapses every date into its month.
One real-world trap: if even one cell in your date column contains text or a blank, Excel greys out the Group option. Fix the column first. Select it, go to Data > Text to Columns, and finish the wizard to force Excel to recognise the values as dates.
Refreshing Pivot Table Data
Pivot Tables do not update automatically. When your source data changes, right-click the pivot table and choose Refresh, or press Alt + F5. If you want it to refresh every time the file opens, go to PivotTable Options > Data and tick "Refresh data when opening the file".
If you are working toward a data analyst role and want to see how these skills apply to real projects, our data analytics projects guide has practical examples you can build on.
Building a Monthly Trend Report: Choosing the Right Method
Knowing the individual techniques is one thing. Putting them together into a report someone can actually use is the real skill.
| Situation | Best Method | Approx. Build Time | Why |
|---|---|---|---|
| Fixed monthly template, data pasted weekly | TEXT + SUMIFS | 10-15 minutes | Updates without manual refresh; works on datasets up to ~500k rows |
| Ad-hoc exploration of a new dataset | Pivot Table | 2-5 minutes | Fastest to build, easy to slice by region or product |
| Chart with a proper date axis | EOMONTH as anchor | 5-10 minutes | Keeps axis scaling correct across months of varying length |
| Multi-year comparison in one view | Pivot Table with Years + Months | 3-5 minutes | Built-in hierarchy, easy to expand or collapse by year |
Keeping Months in Chronological Order
This is the question that trips up beginners most often. If your month column contains text like "Jan-24", "Feb-24", sorting A-Z will give you "Apr-24" first. The fix is a numeric sort key. Add a helper column with =YEAR(A2)*100+MONTH(A2), which gives 202401 for January 2024 and 202403 for March 2024. Sort by this column, hide it, and your report stays in order.
In a Pivot Table, Excel respects the calendar order automatically when you use the built-in Group feature. If you have dragged a TEXT-based helper column into the pivot instead, you will hit the same alphabetical sorting problem. Stick to the native grouping whenever you use a pivot.
Adding Visual Context to Your Monthly Data
Once your monthly totals are in a clean table, select the data and press Alt + F1 to insert a quick chart. A line chart works best for trends; a clustered column chart works for month-by-month comparisons. If your reporting needs go beyond Excel, tools like Power BI can pull the same data and build interactive dashboards. Our comparison of Power BI vs Tableau can help you decide which tool to learn next.
According to NASSCOM's Tech Talent Report 2023, over 60 percent of Indian enterprises cited data visualisation and reporting as the top skill gap in their analytics teams. A clean monthly trend report, built correctly in Excel, is often the starting point for more advanced dashboard work.
If you are preparing for analyst interviews, knowing how to explain your grouping logic clearly matters as much as knowing the formulas. Our list of data analyst interview questions covers exactly this kind of practical question. If you are starting your analyst journey in India and want a step-by-step career roadmap, the guide on data analyst kaise bane walks you through everything from skills to certifications.
Excel proficiency consistently appears in the highest paying tech skills lists for entry-level and mid-level roles in India. It is a practical foundation, not a stepping stone you skip.
Frequently Asked Questions
How do I group by month in Excel?
To excel group by month, you have two main options. Use a formula like =TEXT(A2,"mmm-yy") to create a month label column, then use SUMIFS to total values per label. Or, insert a Pivot Table, drag your date field to Rows, right-click a date, choose Group, and select Months. The pivot table method is faster for exploration; the formula method is better for fixed report templates that update automatically.
Which formula converts a date to a month label in Excel?
The TEXT function is the most practical choice: =TEXT(A2,"mmm-yy") converts 14-Mar-2024 into "Mar-24". If you need just the month number, use =MONTH(A2), which returns 3. For the full month name, use =TEXT(A2,"mmmm"), which returns "March". Use TEXT when you need a readable label; use MONTH when you need a numeric value for calculations or sorting.
Can a pivot table group by month and year in Excel?
Yes, and it is one of Excel's most useful built-in features. Right-click any date in the Row Labels area of your pivot table, select Group, and choose Months from the dialog. If your data spans more than one year, also select Years so that January 2023 and January 2024 appear as separate rows. The Group option will be greyed out if your date column contains any blank cells or text-formatted dates.
How do I sum values by month using SUMIFS in Excel?
The cleanest formula approach is SUMIFS. First, create a helper column with =TEXT(A2,"mmm-yy") to label each row. Then use =SUMIFS(C:C,D:D,"Mar-24") to sum column C for all rows labelled "Mar-24" in column D. Alternatively, use EOMONTH-based date criteria: =SUMIFS(C:C,A:A,">="&DATE(2024,3,1),A:A,"<="&EOMONTH(DATE(2024,3,1),0)) for a precise date-range sum.
How do I keep months in chronological order in Excel?
Text-based month labels like "Jan-24" sort alphabetically, not chronologically. Add a numeric sort key column using =YEAR(A2)*100+MONTH(A2), which produces values like 202401 and 202403 that sort correctly. Sort your report by this column, then hide it. In a Pivot Table that uses the native Group feature, Excel maintains calendar order automatically, so no extra column is needed.
The core skill here is straightforward: pick TEXT with SUMIFS for formula-driven reports, and pick Pivot Table grouping for fast exploration. Get both right and you will handle monthly reporting in any analyst role without hesitation.
- Open any dataset you have this week, add a helper column with
=TEXT(A2,"mmm-yy"), and build a SUMIFS summary table beside it. Doing it once on real data is worth more than reading about it ten times. - Build the same report as a Pivot Table and use the built-in Group feature. Compare the two outputs. Notice where each method saves you time and where it creates extra work.
- Explore the full range of data analytics projects on 3.0 University to practice these skills on realistic datasets, and check out the 3.0 University online certification courses to take your data skills into cybersecurity, AI, and beyond.
Data skills like monthly reporting do not stay in spreadsheets. SOC analysts filter security logs, build detection dashboards, and spot anomaly trends using the exact same grouping and aggregation logic. If that kind of applied analytics work interests you, the EC-Council Certified SOC Analyst course at 3.0 University is a practical next step worth looking at.
Last updated: October 2026. Reviewed by the 3University editorial team.