A date column that mixes day-first and month-first entries cannot be sorted, and a date stored as text cannot be calculated. Power Query can change the whole column to one date type using the right locale, which settles the order question once for the whole column.
Prerequisites
- Excel with Power Query
- A table with a mixed-format date column
- A copy of the source file, so the original stays untouched.
Steps
- Select the table and go to Data, From Table/Range to open it in the Power Query Editor.
- Select the date column, then go to Transform, Data Type, Date, and if the dates parse wrongly, use Change Type, Using Locale instead.
- Pick the locale that matches the source, such as English (United Kingdom) for day-first dates.
- Check the rows that show errors after the type change, and fix those dates in the source file.
- Click Close and Load, then sort the date column and confirm the order is chronological.
Worked example: Fictional event dates fixed to one format
The practice table below is a fictional five-event list after the fix. The days column counts the days from 2 November 2026 to each event, and the total is their sum. The table below is fictional practice material, with fictional values. It is the expected result, worked out by hand, not a run of any tool.
| Event | Date | Days from 2 Nov |
|---|---|---|
| Book club | 2026-11-02 | 0 |
| Quiz night | 2026-11-06 | 4 |
| Charity sale | 2026-11-13 | 11 |
| Film evening | 2026-11-20 | 18 |
| Christmas fair | 2026-12-05 | 33 |
| Total | 66 |
Expected result. Five dates in one format, each matches the source, and the day counts add to 66.
Limits
- Using the wrong locale will swap day and month silently on ambiguous dates, so confirm the locale from the source.
- Dates that fail to parse become errors, and those rows must be fixed in the source, not guessed.
