Google Sheets Pivot Table Months in Order
In this article
To get months in chronological order in a Google Sheets pivot table, sort the month field by its underlying date value rather than by its text label. The reliable method is to add a helper column that extracts the month number (or a full date) from your source data, include that column in the pivot table, and sort the month label by that numeric field. If your month names are plain text with no date behind them, Sheets will always sort them alphabetically (April, August, December…), and no pivot setting will fix that on its own.
What You'll Need
- A Google Sheet with a table of data where each row has a real date (not a typed month name) plus the values you want to summarise.
- Edit access to the sheet, and permission to add a helper column.
- Basic familiarity with Insert > Pivot table.
Step-by-Step
- Check your date column is a real date. Click a cell in the date column. If it is left-aligned by default or the formula bar shows plain text like "Jan 2025" with no date formatting, Sheets is treating it as text. Convert it with Format > Number > Date after re-entering it in a recognised format, or use
=DATEVALUE()on a copy. Real dates are the foundation for everything below. - Add a helper column for the month number. In a new column to the right of your data, put a header such as MonthNum. In the first data row enter
=MONTH(A2), replacing A2 with your date cell. Fill the formula down the column. This returns 1 for January through 12 for December. - Optionally add a month label column. If you want readable names rather than numbers, add a second helper column with
=TEXT(A2,"mmmm")for full names or=TEXT(A2,"mmm")for short ones. Keep the numeric column as well; it is what drives the sort. - Select your full data range including the helper columns, then choose Insert > Pivot table. Confirm the range and choose whether to place it on a new sheet or an existing one.
- Add the month label to Rows. In the pivot table editor, drag your month name field (or the MonthNum field) into the Rows area.
- Add the month number to Rows as well, placing it above the month label if you want the label to show. A common layout is MonthNum first, then MonthName, then collapse or hide the number column if you only want the name visible. The pivot table sorts rows by the order the fields appear in the Rows area.
- Sort by the numeric field. Click the three-dot menu on the MonthNum field chip in the Rows area and choose Sort ascending. Because the numbers run 1 to 12, January through December now appear in calendar order.
- Add your values. Drag the measure you want to summarise (sales, counts, hours) into the Values area and choose the summarisation you need, such as SUM or COUNTA.
- Verify the result. Check that the first row is January and the last is December, and that no month is missing. A missing month usually means the date column had blanks or text values that
MONTH()could not read.
Menu labels in Sheets can differ slightly by version and region; the three-dot field menus in the pivot editor are where sorting lives in the current desktop layout. On the mobile Sheets app the pivot editor is more limited and sorting options are fewer, so build or adjust the sort on desktop where possible.
Common Mistakes
- Typing month names as text. "January", "February" and so on as plain text have no date behind them, so alphabetical sorting is the only option Sheets has. Always derive the month from a real date.
- Sorting the label instead of the number. Choosing sort on the month-name field sorts alphabetically. Sort on the numeric helper field and let the label follow it.
- Forgetting to fill the helper formula down. New rows added later will have blank MonthNum values and drop out of the pivot or land in a blank row.
- Using a text date from an import. CSV imports often bring dates in as text. Convert them before building the pivot, or the MONTH formula returns an error.
- Adding the month field to Columns by mistake. That spreads months across the top instead of down the side, which is rarely what people want for a monthly trend.
Tips
- If you need months across multiple years, add a Year helper column with
=YEAR(A2)and put Year above MonthNum in Rows. That keeps January 2024 and January 2025 separate and correctly ordered. - Name your source range (Data > Named ranges) so the pivot table updates cleanly when you add rows.
- Use
=EOMONTH(A2,-1)+1if you want a true first-of-month date rather than a number; pivot tables sort real dates chronologically too. - Refresh the pivot after editing source data by opening the pivot editor and re-checking the range, or by editing any field setting.
Troubleshooting
Months still appear alphabetically. Confirm the numeric field is in the Rows area above the label and that its sort is set to ascending. If the label field sits first, it controls the order.
A month shows as blank. Some rows have empty or non-date cells in the date column. Filter the source for blanks and fix them.
The MONTH formula returns #VALUE!. The referenced cell is text, not a date. Re-enter it as a date or wrap it in DATEVALUE with the correct format.
New data is missing from the pivot. The pivot range does not cover the new rows. Widen the range in the pivot editor or use a named range.
If that did not work, rebuild the pivot from scratch with only the helper columns and one value field. A minimal pivot isolates whether the problem is the data or the field layout.
Frequently Asked Questions
Can I sort months without a helper column?
Only if the month field is a real date formatted to show the month name. A text month name cannot be sorted chronologically without a numeric or date field to sort by.
Why does my pivot show April first?
Because the month field is being sorted as text, where A comes before J. Add the MONTH helper column and sort by it.
Does this work for quarters?
Yes. Use =ROUNDUP(MONTH(A2)/3,0) to get a quarter number from 1 to 4 and sort by that.
Will the order hold when I refresh the pivot?
Yes, as long as the sort is set on the numeric field in the pivot editor. Re-check it after major layout changes.
Can I show short month names?
Yes, use =TEXT(A2,"mmm") for Jan, Feb and so on, and keep the numeric column for sorting.