Home life · Updated
How to Organize Google Sheets by Date
Quick answer To organize Google Sheets by date, select your data, open Data > Sort range, choose the date column, and pick A to Z (oldest to newest) or Z to A (newest to oldest).
What You’ll Need
- A Google Sheets document with a column containing dates (formatted as dates, not text).
- Access to the Google Sheets menu (web browser or mobile app).
Step-by-Step
- Check your date column – Make sure all cells in the date column are recognized as dates. If any cell shows a left-aligned text string (like “Jan 5, 2024” instead of a right-aligned date), fix those first by re-entering them as dates or using the DATE function.
- Select the entire data range – Click the top-left cell of your data (e.g., A1), then press Ctrl+Shift+Down (Windows) or Cmd+Shift+Down (Mac) to select all rows. If you have multiple columns, select the full rectangle of data you want to sort, including headers.
- Open the Sort menu – Go to the top menu and click Data, then choose Sort range. If your data has a header row, check the box “Data has header row” in the dialog that appears.
- Choose the date column – In the “Sort by” dropdown, select the column that contains your dates (e.g., Column B). If you have multiple sort columns, you can add another by clicking “Add another sort column” – but for a simple date sort, one is enough.
- Set the order – Choose A to Z to sort oldest dates first (ascending) or Z to A to sort newest dates first (descending). Click Sort.
- Verify the result – Scroll through your data to confirm the dates are in the expected order. If you notice any blank cells or text entries, they will appear at the top or bottom depending on the sort order – you may need to clean those up.
Common Mistakes
- Sorting only one column – If you select only the date column and sort, the rest of your row data will not move with it, breaking your spreadsheet. Always select the entire data range.
- Dates stored as text – If your dates look like “2024-01-05” but are actually text, sorting will put them in alphabetical order (e.g., “2024-10-01” before “2024-02-01”). Convert text to dates using Data > Split text to columns or the DATEVALUE function.
- Including blank rows – If you select a range that includes empty rows, those rows will be sorted to the top or bottom, potentially hiding data. Keep your selection tight.
- Forgetting the header row – If you don’t check “Data has header row”, your header text will be sorted along with the data, mixing it into the middle of your list.
Tips
- Use the filter view for quick sorting – Instead of sorting the actual data, click the filter icon (funnel) in the toolbar, then click the arrow in the date column header and choose “Sort A to Z” or “Sort Z to A”. This temporarily sorts without permanently rearranging your sheet.
- Freeze the header row – Before sorting, go to View > Freeze > 1 row so you can see the headers while scrolling after sorting.
- Use SORT function for dynamic sorting – If you want a separate sorted list that updates automatically, use =SORT(A2:E100, 2, TRUE) where 2 is the date column number and TRUE means ascending. This creates a new range that always reflects changes in the original data.
- Format dates consistently – Select the date column, go to Format > Number > Date, and choose a consistent format (e.g., YYYY-MM-DD). This ensures the sort order is clear and predictable.
Troubleshooting
- Dates are not sorting correctly – If the order looks wrong, check if any cells are formatted as text. Select the column, go to Format > Number > Date, and if that doesn’t fix it, use Data > Split text to columns (choose Tab) to convert text to dates, or use the formula =DATEVALUE(A2) in a helper column and sort by that.
- Only part of the data moved – This happens when you sorted a single column instead of the whole range. Undo (Ctrl+Z) and repeat the steps, selecting all columns that belong together.
- Header row got mixed into the data – Undo the sort, reopen Data > Sort range, and make sure to check “Data has header row” before clicking Sort.
- Sort option is grayed out – This usually means your sheet is protected or you are in a filter view. Check if the sheet is protected (Data > Protect sheets and ranges) and remove protection, or exit the filter view by clicking the filter icon again.
- Dates with times are sorting oddly – If your dates include timestamps, sorting by date will also sort by time. If you only care about the date, use a helper column with =INT(A2) to extract the date part, then sort by that helper.
Frequently Asked Questions
How do I sort by date in Google Sheets on mobile?
On the Google Sheets mobile app, tap the column letter to select the entire column, then tap the three-dot menu (⋮) and choose “Sort A-Z” or “Sort Z-A”. Make sure to select all columns you want to sort together, not just the date column.
Can I sort by date in descending order (newest first)?
Yes. In the Sort range dialog, choose “Z to A” for descending order, which puts the newest dates at the top. In a filter view, click the arrow in the date column header and select “Sort Z to A”.
What if my dates are in multiple columns (e.g., month, day, year separately)?
Combine them into one date column first. Use the DATE function: =DATE(C2, B2, A2) where C is year, B is month, A is day. Then sort by that new column.
Will sorting by date affect my formulas?
If your formulas reference specific cells (like =A1+B1), sorting will move the values and may break the references. Use absolute references or named ranges to avoid issues. If you use structured references like =SUM(A:A), they will still work correctly.
How do I sort by date without moving the header row?
Always check “Data has header row” in the Sort range dialog. This keeps the first row fixed and sorts the rest. Alternatively, freeze the header row first (View > Freeze > 1 row) and then sort.
Can I sort by date in a pivot table?
Yes. In a pivot table, click the date field in the Rows or Columns area, then click the sort icon and choose Ascending or Descending. You can also right-click a date cell and select “Sort” from the menu.
Related
- Fix a Leaking Toilet Shut Off Valve
- How to Put iPhone in DND Mode (Do Not Disturb)
- How to Shrink Screen Size on Windows, Mac, and Mobile
Sources: Google Sheets Help. Menus and buttons can differ slightly by version. Spotted something out of date? Tell us.