Google Sheets: How to sort your data by date

Google Sheets, Microsoft Excel, and other spreadsheet software offer powerful sorting tools to help you rearrange your data. Knowing how to sort your spreadsheets makes the data easier to see and use. You’ll see the latest or oldest items at the top of your dataset when you sort by date.

Sign up forfree

Forgot your password?

Create an account

*Required: 8 chars, 1 capital letter, 1 number

By continuing, you agree to thePrivacy PolicyandTerms of Use.You also agree to receive our newsletters, you’re able to opt-out any time.

4

Sort by date using the sort range tool

The quickest and easiest way to sort dates in thisGoogle Workspaceapp is to use the sort range functionality. It shuffles the original dataset in the order you want.

Here’s how it works on any desktop device, be it a Chromebook or a Windows PC:

4

Create a backup before sorting to preserve the original dataset.

Sort by date using the sort function

The sort range method is a great option for one-time sorting. It isn’t helpful if you plan to add additional rows of data later or don’t want to modify the original cells. For that, use the sort function, which can be edited over time as you expand your dataset.

Here’s how to use the sort function in Google Sheets:

The Google Sheets logo against a spreadsheet and a glass ceiling

The advantage of the sort formula is that it supports automatic updates to the sorted data when the original is changed. For example, editing Alexis Love’s birthday alters the sort function’s results to reorder the list as necessary. This is indispensable for spreadsheets that need to support changes.

Similarly, you may add additional rows to the original dataset. Then, all you do is modify the formula to include those additional lines, and the result updates to reflect the new information.

article limit background

The sort function only works if the output space doesn’t include data. If those cells are occupied, you get a #REF! error. To fix this, erase the existing data under the formula to make room for the result orinsert a fresh column.

Check the validity of the date format

For the date sort function to work, Google Sheets needs to recognize your values. If you have invalid dates (in an unsupported format), those cells are read as plain text, giving incorrect results. You can confirm that your dates are in the proper format visually or with a formula.

Check the alignment

When text is written in Google Sheets, it’s aligned to the left. Numbers do not follow this rule and are positioned on the right side of the cell.

If the dates are aligned to the left, they’re likely in an incorrect format. Generally, entering the date in full (for example, May 5, 2022, or 05 August 2025) is valid. Divide the numbers with a slash or hyphen in the following format:MM/DD/YYYYorMM-DD-YYYY.

A range of data selected in Google Sheets

Use the DATEVALUE function

Checking whether your dates are right-aligned is usually enough to determine if they’re valid. If the data spans the cell width, it can be challenging to discern the alignment. The other way to investigate thisGoogle Sheets problemis to use the DATEVALUE function.

In an adjacent column, enter=DATEVALUE(A2:A)into the cell, using your data range in place of ours. PressEnterto see which cells have valid dates and which are read as text.

In our example, the function returns real values for most of the dates. The #VALUE! error indicates those cells aren’t formatted correctly. The first has a rogue period, and the other is misspelled.

Sort your Google Sheets spreadsheets like a pro

Organizing data is crucial, especially when dealing with large volumes from diverse sources. Sorting by date can make comprehending your data and extracting meaningful insights easier. Google Sheets doesn’t only support date sorting. You can alsosort plain text in alphabetical order. For more tutorials like this,check out these top Google Sheets tips and tricks.

The note-taking app I should have used all along

Broader branding hints at wider paid-tier ambitions

The entry-level Pixel delivers value

Project Moohan? More like Project Moolah

Not yet, anyway

Tablets and accessories are also on sale