Excel pivot does not sort correctly, It thinks a name is a month.

Bob Harrison 0 Reputation points
2026-10-15T15:49:16.49+00:00

My data in Excel has name and data columns. When I put the LastName as the first row for the pivot table, it sorts the name MARCH to the top because it is the name of a month and therefore a date. The column is formatted as text, custon list sorting is turned off, there are no hidden characters.

This is a serious issue because important data is in the wrong place and may be missed. Also, I should not have to be an IT expert to apply a work around just to sort names from A-Z.

Any ideas on how to get this fixed? This is another example of trying to allowing technology predict what to do rather than just doing what it is told. Who is in control?

Microsoft 365 and Office | Excel | For business | Windows
0 comments No comments

4 answers

Sort by: Most helpful
  1. Barry Schwarz 6,271 Reputation points
    2026-10-15T17:15:52.9+00:00

    Enter the name March as 'March. The single quote should force the the cell to be treated as text instead of as date.

    Was this answer helpful?


  2. Kai-L 20,120 Reputation points Microsoft External Staff Moderator
    2026-10-15T16:21:05.4866667+00:00

    Dear Bob,

    I understand how worrying it is when names land in the wrong place, especially when important data could be missed. As a forum moderator, I genuinely wish I could directly access your account or delve into the backend systems to diagnose and fix this for you. Unfortunately, my role here is limited to providing general guidance and solutions that can be applied by users. From my research, Excel probably is not converting the surname MARCH into a date. The PivotTable is likely matching MARCH to Excel’s built-in month custom list, which can place it in calendar order ahead of ordinary surnames. Formatting the source column as Text does not prevent that behavior because the value is still text matching a month name. 

    For you receiving the best suggestion and guidance for this issue, I recommend you publish your workflow in the Excel | Microsoft Community Hub. This forum is dedicated to Excel and is actively monitored by power users, Microsoft partners, and engineers who can provide step-by-step guidance and share best practices.

    I apologize for redirecting you to another community, as I may not have the necessary skills and experience to solve your Excel issue.

    Thank you for your patience and understanding during this process. For any questions or further assistance in the future, please feel free to reach out again at any time. Not only will I be happy to assist you, but also all the moderators of the Q&A forum will do their best to provide support and guidance.

    I hope everything will be resolved soon. Have a great day.

    Was this answer helpful?

    0 comments No comments

  3. Bob Harrison 0 Reputation points
    2026-10-15T15:52:19.4033333+00:00

    The AI answer is ridiculous. It says to manually sort. Might as well go back to my rolodex. It sorted they way I wanted it to.

    Was this answer helpful?


  4. AI answer

    2026-10-15T15:49:31.5133333+00:00

    For a PivotTable on Windows, the supported ways to control the sort are:

    1. Select a field in the row or column to sort.
    2. Select the arrow on Row Labels or Column Labels.
    3. Select More Sort Options.
    4. Choose one of these:
      • Manual to drag items into the order wanted.
      • Ascending (A to Z) by or Descending (A to Z) by and then choose the field.
    5. In More Options, clear Sort automatically every time the report is updated if automatic re-sorting is causing the order to change when the PivotTable refreshes.

    A few checks are also relevant for unexpected sort behavior:

    • Leading spaces can affect sort results, so remove them before sorting.
    • Locale settings can affect sort order.
    • In general Excel sorting, if values are produced by formulas, recalculation can change returned values and the sort may need to be reapplied.

    If the PivotTable still places MARCH unexpectedly, the reliable built-in workaround from the documented options is to use Manual sort in the PivotTable and drag the item to the correct alphabetical position.


    AI-generated content may be incorrect. Read our transparency notes for more information.

    Was this answer helpful?

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.