Google Sheets Sort Date Ascending: Step-by-Step Guide
In this article
To sort dates in ascending order in Google Sheets, select your data range (including headers if you have them), then use Data > Sort range > Sort range by column A to Z (or the appropriate date column). This rearranges rows so the earliest date appears first. Before sorting, ensure your dates are stored as actual date values, not text, or the sort will be alphabetical and wrong. You'll need a Google account and a spreadsheet with a date column. Labels may differ slightly by version or region.
What You'll Need
- A Google account (free).
- A Google Sheets spreadsheet containing a column of dates.
- Dates entered in a format Google Sheets recognizes (e.g., MM/DD/YYYY or DD/MM/YYYY depending on locale).
Step-by-Step
- Open your spreadsheet in Google Sheets via a web browser or the mobile app.
- Select the data range you want to sort. Click the first cell of your data (or the header) and drag to the last cell, or press Ctrl+A (Cmd+A on Mac) to select all. If you have headers, include them so they stay in place.
- Check that your dates are real dates. Click a date cell; if it shows as left-aligned text, it may be stored as text. To convert, use Format > Number > Date. Alternatively, re-enter the date in a recognized format.
- Go to Data > Sort range. If you selected a range, you'll see “Sort range” (or “Sort range by column A to Z” if you selected a single column). If you selected the entire sheet, you may see “Sort sheet.”
- In the Sort range dialog, check “Data has header row” if your selection includes headers. This ensures the header stays at the top and is not sorted as data.
- Choose the column containing your dates from the “Sort by” dropdown.
- Select “A to Z” for ascending order (earliest date first).
- Click Sort. Your rows will reorder so the oldest date appears at the top.
For a quick single-column sort, you can also select the date column and click the “A to Z” sort icon in the toolbar, but this only sorts that column and can misalign other data. Always use Sort range for multi-column data.
Common Mistakes
- Sorting only one column: If you select just the date column and sort, other columns won't move with it, causing mismatched data. Always select the entire data range.
- Dates stored as text: Text dates sort alphabetically (e.g., “April” before “January”). Convert them to real dates first.
- Forgetting header row: If you don't check “Data has header row,” the header may be sorted into the data, corrupting your layout.
- Mixed date formats: Inconsistent formats (e.g., some MM/DD/YYYY, some DD/MM/YYYY) can cause incorrect sorting. Standardize the format via Format > Number > Date.
- Using the wrong sort direction: “A to Z” is ascending; “Z to A” is descending. Double-check before clicking.
Tips
- Use filters for temporary sorting: Create a filter (Data > Create a filter) and click the filter icon in the date column header to sort ascending without permanently reordering rows.
- Sort by multiple columns: In the Sort range dialog, you can add another sort column (e.g., sort by date, then by name) for more control.
- Keep a backup: Before sorting a large dataset, make a copy (File > Make a copy) in case you need to revert.
- Use formulas for dynamic sorting: The SORT function (e.g., =SORT(A2:B10, 1, TRUE)) creates a sorted copy without altering original data.
- Check locale settings: Date interpretation depends on your spreadsheet's locale (File > Settings). Ensure it matches your date format.
Troubleshooting
- Dates sort alphabetically: Your dates are likely text. Select the column, go to Format > Number > Date, then re-sort. If that fails, use Data > Split text to columns or re-enter dates.
- Header row gets sorted: Undo (Ctrl+Z), then redo the sort with “Data has header row” checked.
- Sort option is grayed out: You may have a protected range or be in a view-only mode. Check sharing permissions.
- Sorting doesn't change order: Ensure you selected the entire range, not just a single cell. Also, check that the column contains valid dates.
- Mobile app differences: In the Google Sheets mobile app, tap the column header, then tap the three-dot menu and choose “Sort A to Z.” The interface may vary by device.
Frequently Asked Questions
How do I sort dates in ascending order without messing up other columns?
Select the entire data range (including all columns), then use Data > Sort range, check “Data has header row,” choose your date column, and select A to Z. This keeps rows intact.
Why are my dates sorting as text?
Google Sheets treats dates as text if they're not in a recognized format. Convert them via Format > Number > Date, or re-enter them in a valid format like MM/DD/YYYY.
Can I sort by date automatically when new data is added?
Not natively. You can use the SORT function in a new range to create a dynamically sorted view, or use Google Apps Script for automation.
What's the difference between “Sort sheet” and “Sort range”?
“Sort sheet” sorts all data in the sheet based on one column, while “Sort range” lets you sort a specific selection and choose multiple sort columns.
How do I sort dates in descending order?
Follow the same steps but choose “Z to A” instead of “A to Z” in the Sort range dialog.
Does sorting dates work the same on the mobile app?
Yes, but the menu path differs: tap the column header, then the three-dot menu, and select “Sort A to Z.” Options may vary by app version.