
Excel Off The Grid will show you how to work smarter, not harder with Microsoft Excel.
The YouTube video by Excel Off The Grid tackles a common annoyance in modern Excel: when the GROUPBY function groups month names but sorts them alphabetically, not chronologically. The author walks viewers through a scenario where month labels like "Apr" and "Jan" appear out of order, which can confuse readers of reports. Importantly, the video explains why the default behavior occurs and then presents practical fixes that work inside Excel formulas.
By default, GROUPBY treats grouped text as strings and therefore sorts them alphabetically, which breaks natural month order. Consequently, a summary that should read January to December often ends up arranged as April, August, and so on, which undermines readability and insight. The presenter demonstrates this directly with sample data so viewers can see the problem before applying solutions.
First, the video demonstrates using a custom order and SORTBY to impose a correct month sequence. Then the author shows a dynamic approach that uses XMATCH or numeric month extraction from a Date column, so the sort key reflects real chronological order. In addition, the tutorial compares mapping month names to order numbers versus deriving the month position from actual dates, explaining how each method works in practice.
Using a custom list and SORTBY is simple and quick to implement, which makes it attractive for small or fixed reports. However, it requires manual maintenance if month labels change or if you need to support localized month names, which reduces long-term flexibility. Conversely, deriving order from a Date column with MONTH or EOMONTH, or mapping via XMATCH, produces a dynamic and robust solution, but it assumes clean date data and modern functions that may not exist in older builds.
One challenge is compatibility: the methods shown rely on modern functions available in current Excel for Microsoft 365, so teams using legacy Excel may need alternative steps. Another issue is data hygiene; if month names are entered inconsistently or dates are missing, the automated approaches can return unexpected results. Therefore, the video recommends validating source data and, when necessary, creating a small helper column that converts dates into a stable numeric sort key to keep summaries reliable.
For large datasets, adding extra formula steps like SORTBY and XMATCH can increase calculation time, especially in volatile workbooks. On the other hand, the cleaner output and correct chronological order often justify the small performance cost because reports become easier to read and verify. Ultimately, the author suggests balancing speed and correctness: prefer a dynamic method where reporting is automated, but accept a simple custom list when speed and low maintenance are primary concerns.
If your workbook already stores actual dates, then extracting the month number with MONTH and sorting by that value provides a straightforward, low-maintenance solution. Alternatively, if your data contains only text month names or if you must support nonstandard labels, mapping via XMATCH or maintaining a custom ordered list gives you explicit control. In addition, the video stresses that documentation and comments in the workbook help other users understand which method you chose and why.
The video from Excel Off The Grid offers clear, actionable demonstrations to fix month sorting in grouped summaries. In practice, consider your Microsoft 365 version, the cleanliness of your data, and how often the report structure changes before picking a technique. Finally, the author’s step-by-step comparisons make it easier to weigh the tradeoffs between manual simplicity and automated resilience when you prepare chronological monthly reports.
Excel GROUPBY tutorial, sort months in Excel, GROUPBY function months, sort month names chronologically, group and sort months Excel, Excel month order custom sort, Power Query group by months, Excel dynamic array GROUPBY