Google Sheets Sort by Date dd/mm/yyyy Guide
In this article
To sort by date in Google Sheets using the dd/mm/yyyy format, you must first ensure the cells are recognized as date values rather than plain text; once formatted, select your data range and use the Data > Sort range menu to organize them chronologically. Sorting dates that are typed as text will result in an alphabetical sort (e.g., all dates starting with 01 will appear first regardless of the month), which is why proper date recognition is the critical first step.
What You'll Need
- A Google account with access to Google Sheets.
- A dataset containing dates written in the dd/mm/yyyy format.
- The browser version of Google Sheets (desktop) for full access to formatting menus.
Step-by-Step
- Verify Date Recognition: Before sorting, check if Google Sheets recognizes your dd/mm/yyyy entries as dates. By default, dates are right-aligned in a cell. If your dates are left-aligned, Sheets is treating them as text. If they are text, the sort will fail.
- Set the Locale: Because dd/mm/yyyy is not the default format for US-based accounts, you may need to change your spreadsheet settings. Go to File > Settings. Under the General tab, find the Locale dropdown. Select a country that uses dd/mm/yyyy (such as the United Kingdom or Australia). Click Save and reload. This tells Google Sheets to interpret "01/12/2023" as December 1st, not January 12th.
- Apply Date Formatting: Highlight the column containing your dates. Go to Format > Number > Custom date and time. In the text box, ensure the sequence is set to Day (dd), then Month (mm), then Year (yyyy) with slashes between them. Click Apply. This standardizes the visual appearance and ensures the underlying value is a serial date number.
- Select the Data Range: Click the letter at the top of the column to highlight the entire date column. If you have other data in the sheet (like names or prices) that must stay attached to those dates, click the top-left empty square (above row 1 and left of column A) to select the entire sheet.
- Open the Sort Menu: Go to the Data menu in the top toolbar. Select Sort range and then click Advanced range sorting options. This is safer than the quick-sort option because it allows you to protect your header row.
- Configure the Sort: In the pop-up window, check the box that says Data has header row if your first row contains labels like "Date" or "Due Date". This prevents your labels from being sorted into the middle of the list.
- Choose the Order: Select the column containing your dates from the dropdown menu. Choose A → Z for Oldest to Newest (ascending) or Z → A for Newest to Oldest (descending).
- Execute the Sort: Click the Sort button. Your data will now be reorganized chronologically based on the calendar date rather than the text characters.
Common Mistakes
The most frequent error is ignoring the Locale setting. If your sheet is set to United States, Google Sheets expects mm/dd/yyyy. If you enter 13/01/2024, the software knows there is no 13th month, so it treats the entry as a string of text. When you sort text, "13/01/2024" will come after "02/01/2024" but before "20/01/2024" only if the first digit is smaller. Essentially, it sorts by the first character, then the second, which ruins any chronological order.
Another common mistake is sorting only the date column without selecting the rest of the data. If you highlight only Column A and sort it, the dates will move, but the information in Columns B, C, and D will stay where they are. This effectively scrambles your data, associating the wrong dates with the wrong records. Always select the entire range or the entire sheet before sorting.
Users also often confuse Format > Number with actual data entry. Changing the format of a cell to "Date" does not automatically convert a text string into a date value if the locale was wrong during the initial entry. You may need to re-enter the dates or use a formula to convert them after changing the locale.
Tips
To avoid manual formatting errors, use Data Validation. Select your date column, go to Data > Data validation, and add a rule for "is valid date". This forces users to enter dates in a format the system recognizes, preventing the "text-date" sorting issue from happening in the first place.
If you have a massive dataset and don't want to keep manually sorting, use the SORT function. In a new area of the sheet, type =SORT(A2:C100, 1, TRUE). This creates a dynamic copy of your data (from A2 to C100) sorted by the first column (1) in ascending order (TRUE). This is helpful because it leaves your original data untouched while providing a sorted view.
For those who prefer keyboard shortcuts, you can quickly select a range by pressing Ctrl + A (Windows) or Cmd + A (Mac). While there isn't a direct "Sort by Date" shortcut, using the Alt keys to navigate the Data menu can speed up the process for power users.
Troubleshooting
If the dates are still sorting alphabetically: This means some of your dates are still stored as text. To fix this, select the column and go to Format > Number > Date. If they don't shift to the right side of the cell, they are still text. Try using the Find and Replace tool (Ctrl + H) to replace all "/" with "/" (replacing the character with itself). This often forces Google Sheets to re-evaluate the cell and recognize it as a date.
If the dates are sorting in the wrong order (e.g., January 2024 appearing before January 2023): Check your year format. Ensure you are using a four-digit year (yyyy). If you use a two-digit year (yy), the system may occasionally misinterpret the century depending on the locale settings.
If the sort is moving your header row: You forgot to check the Data has header row box in the Advanced range sorting options. To fix this, press Ctrl + Z to undo the sort, then repeat the process, ensuring the header box is checked.
If you see a #VALUE! error after sorting: This usually happens if you used a formula to generate the dates and the sort disrupted the cell references. Ensure your formulas use absolute references (with $ signs, e.g., $A$2) if they are pointing to a specific static cell.
Frequently Asked Questions
Can I sort dates in dd/mm/yyyy without changing my locale?
It is very difficult. If your locale is US and you type 31/12/2023, Sheets sees it as text. You can use the DATEVALUE function to convert text to dates, but changing the locale to a dd/mm/yyyy region is the most stable solution.
Does sorting by date affect my formulas?
If your formulas refer to specific cells (like =A2+B2), they will move with the row and remain correct. However, if your formulas refer to a fixed range that you didn't include in the sort, the results may shift. Always select the entire dataset to maintain integrity.
How do I sort by date and then by another column (like name)?
Use the Advanced range sorting options. After selecting the date column as the first sort key, click Add another sort column and select the name column. This creates a multi-level sort.
Why are some dates right-aligned and others left-aligned?
Right-aligned values are recognized as numbers or dates. Left-aligned values are recognized as text. This is the fastest way to tell if your sort will work; if you see a mix of alignments, your sort will be incorrect.
Can I sort dates on the Google Sheets mobile app?
Yes, but the options are more limited. Tap the column letter, tap the dropdown arrow or the three dots, and select Sort A-Z. Note that you cannot access the "Advanced range sorting options" or the "Locale" settings as easily on mobile as you can on desktop.
What happens if I have empty cells in my date column?
Google Sheets typically places empty cells at the bottom of the list regardless of whether you sort ascending or descending. If you want them at the top, you will need to fill them with a placeholder date or use a filter to hide them.