How To Sort by Date in Google Sheets [4 Easy Methods]

By

Have you ever wondered how to sort by date in Google Sheets? Sometimes, viewing your Google Sheets data according to its chronological order can make your work more efficient. This is especially true for datasets like registration dates, task deadlines, and salary trackers. To quickly do this, open your Google Sheets spreadsheet and click “Data” > “Sort sheet” > “Sort sheet by column X” (your date column).

I’ll talk more about this method in the sections below, together with how to sort by date in Google Sheets using filters, the sort range option, and the SORT formula. I’ll also give you some tips on how to prepare your data before sorting.

Preparing Your Google Spreadsheet for Sorting

Before sorting your spreadsheet, it’s important that you validate cell entries first. In this case, you must check whether Google Sheets recognizes the dates included as valid dates instead of ordinary text strings.

1. Validate the Data

Dates should be flushed to the right by default — it’s likely to be in the wrong date format otherwise. You can confirm this by using the data validation feature in Sheets.

  1. Open your Google Sheets spreadsheet and select the range you want to validate (e.g., the date column).
  2. Click “Data” in the Google Sheets menu bar and choose “Data validation.”
How to sort by date in Google Sheets—Use the Data validation option in the Data tab
  1. Alternatively, right-click your selected range and choose “View more cell actions” > “Data validation.”
Right-click cell range and choose Data validation from options
  1. This will open the “Data validation rules” panel at the right.
  2. Choose “Add rule.”
Adding a new data validation rule
  1. Open the drop-down menu under “Criteria” and select “Is valid date.”
Checking for valid dates using Google Sheets data validation panel
  1. If you want to customize your settings, you can choose to have Google Sheets show a warning or reject the input under “Advanced options.”
  2. Click “Done.”
Choosing an error action for invalid dates in Sheets

As you can see from my example, each cell entry in your given range that isn’t a valid date will have an error message or a red flag. Just change it to the proper format before moving on to the sorting process.

Invalid date error message in Google Sheets

Alternatively, you can use the DATEVALUE function, which displays a numeric value on your spreadsheet. From my example below, if you see a “#VALUE!” error message, there’s something wrong with that cell entry.

Wrong DATEVALUE parameter error message

Aside from the DATEVALUE function, consider entering your dates into the spreadsheet with the DATE function to ensure correctly sorted data.

2. Freeze the Column Headers

If you’re using headers on your spreadsheet, ensure the column header row is frozen before sorting. This way, they won’t be sorted in the range. To do this, follow the easy steps I’ve included below.

Right-click the first row and choose “View more cell actions” > “Freeze up to row 1.”

Freezing the first row of a Google spreadsheet

With your data ready (and maybe timestamped), it’s time to answer the million-dollar question: “How do you sort by date in Google Sheets?

How To Sort by Date in Google Sheets in 4 Ways

Here are four simple guides on how to sort a Google Sheet by date. While they’re easy to apply, choose whichever method works the most efficiently for you.

1. Use the Sort Sheet Option

The sort sheet option is my favorite method because it allows you to rearrange multiple columns according to dates. I often use this method when I have sets of related data that I don’t want jumbled and to result in errors. Here’s how to sort by date in Google Sheets without mixing data:

  1. Click a cell under the date column on one of your Google Sheets spreadsheets.
  2. Choose “Data” > “Sort sheet.”
  3. Click “Sort sheet by column X (A to Z)” to show the earliest date first.
Sort sheet by column in ascending order
  1. If you want to show them from the latest date first instead, pick “Sort sheet by column X (Z to A).”

After doing the steps above, you will now have your data sorted data, similar to my example below:

Sorted spreadsheet data according to date in ascending order

2. Access the Sort Range Option

Another popular method that I often use is when I want to narrow down my sorting. Here’s how I would organize Google Sheets by date using the sort range functionality:

  1. Select the columns and rows that you want to sort.
  2. Click “Data” > “Sort range” > “Sort range by column X (A to Z).” (I often select the option to sort my data in descending order, but that’s a personal preference. Feel free to arrange your data according to your preference.)
Sorting a specific cell range by column in ascending order

As you may have noticed, Google Sheets automatically chooses the first column as the sorting basis in this method. If you want to use a different column, you must access the sort range tool. Follow my guide below on organizing by date in Google Sheets with advanced range sorting options.

  1. Choose sort range and click “Data” > “Sort range” > “Advanced range sorting options.”
Where to find the advanced range sorting options in Google Sheets
  1. This will open the sort range dialog box on your screen.
  2. If you included the header row in your selected range, tick the option for “Data has header row.”
"Data has header row" option when sorting in Sheets
  1. Pick your date column in the “Sort by” drop-down menu.
Choosing a sort column in sort range dialog box
  1. Pick how to sort your data in ascending or descending order.
Choosing between ascending or descending sorting order
  1. If you want to use an extra sorting column, click “Add another sorting column” and set it up accordingly.
Adding another sort column with the sort range dialog box
  1. Click the “Sort” button to finish.
Clicking the Sort button to apply sorting parameters

And there you have it! These advanced sorting options allow you to use multiple columns as sorting bases. Additionally, if you have two columns — one for names and another for dates — that you want to sort, Google Sheets will rearrange your data according to names first, then the date column accordingly.

3. Set Up the SORT Function

In the previous two methods that I have discussed, they only let you sort your data once. This means you need to repeat the process to sort them again if there are changes in the adjacent columns.

A convenient workaround is learning how to dynamically sort Google Sheets by date using the SORT function. It also lets you use multiple sorting columns.

The SORT function uses the following syntax:

SORT(range, sort_column, is_ascending, [sort_column2, is_ascending2, ...])
  • range refers to the selected cells that you want to sort.
  • sort_column is the basis for the sorting.
  • is_ascending accepts TRUE or FALSE to determine whether or not you want your data to be sorted in ascending order.
  • The parameters in brackets allow you to add another sort column, which is optional.

Here’s how I would sort my data by date in Google Sheets using the SORT formula:

  1. On a separate column, select the cell adjacent to the first data entry on your spreadsheet.
  2. Type “=SORT(” as a starting formula.
  3. Indicate your cell range and column separated by commas.
  4. Enter either “TRUE” or “FALSE” for the is_ascending parameter.
  5. Optionally, add another sort column in the same format.
  6. Type “)” to finish the function.
Demonstration of the SORT function in Google Sheets
  1. Press “Enter” or “Return” on your keyboard to finish.

4. Google Sheets Filter by Date Workaround

Another way you can set up dynamic sorting on Google Sheets is to create filters. While this method is convenient, the downside is that you can only use a single column for sorting. Let me show you a quick example in the guide below on how to sort columns by date in Google Sheets with filters:

  1. Select your sorting range.
  2. Go to “Data” and select “Create a filter.”
Creating a filter under the Data tab in Google Sheets
  1. Alternatively, right-click your selected sorting range and choose “Create a filter” from the context menu.
Right-click the cell range and choose "Create a filter" from context menu
  1. Click the filter icon for the column with your dates.
Click the filter icon for the header of the date column
  1. Select your preferred sorting order, either “Sort A to Z” or “Sort Z to A.”
Picking between ascending and descending order for filter sorting

If you want to delete the filters applied at a later time, select one of the header rows and go to “Data” > “Remove filter.” You can use the context menu (right-clicking a filter header).

Removing a filter in Google Sheets

Avoid These Mistakes When Sorting by Date in Google Sheets

Speaking from first-hand experience, it’s hard to sort data when it isn’t properly formatted. There will always be errors popping out from nowhere.

Below, I have listed a few common mistakes that might hinder Google Sheets from sorting data by date functionalities. Make sure to check for these errors before following my guides on how to order by date in Google Sheets.

  • Blank cells: A blank cell can be detected as the earliest date in your spreadsheet, so removing it would be necessary. Alternatively, you can opt to use the sort sheet option in ascending order (A to Z). This way, the blank cells would be sorted at the bottom.
  • Lack of consistency: As much as possible, keep the formatting for your dates similar. For example, if you used the format MM/DD/YYYY, you must use the same for all other dates on your sheet. This way, sorting data in Google Sheets would proceed without hassle.
  • Wrong formatting: As mentioned before, the dates may actually be entered as ordinary text strings instead of “Date” data. Make sure to use data validation to weed out those included in an incorrect date format.

To avoid these mistakes, using the preparation tips I discussed before sorting data is best. This way, you won’t have difficulty checking your spreadsheets for errors. It also allows you to ensure that your sorted data is accurate.

Frequently Asked Questions

Can You Sort Rows by Date in Google Sheets?

Yes. You can sort rows by date in Google Sheets using the SORT function or the Sheets built-in functions for sorting. Filters work for sorting by date, too. Meanwhile, if referring to horizontal sorting, consider transposing your data before the sorting process.

Why Can’t I Sort by Date in Google Sheets?

Something might be wrong with the data you’re trying to sort. Consider using the data validation feature in the “Data” tab to check for invalid dates. Ensure the dates follow the same structure (e.g., MM/DD/YYYY).

How Do I Sort By Date MM/DD/YYYY in Google Sheets?

Convert your dates to the MM/DD/YYYY structure first and freeze the header row (if applicable). Select the dates and go to “Data” > “Sort sheet” > “Sort sheet by column X (A to Z).” Alternatively, use the SORT function.

Working With Dates in Google Sheets

Certain datasets are best examined from the oldest to the newest. That’s why learning how to sort by date in Google Sheets is necessary. I have shown you four easy ways in this guide: sorting the whole sheet, using the sort range tool, creating filters, and configuring the SORT function. I hope they have been helpful and meet your sorting needs!

If you’re looking to upskill your Google Sheets knowledge, then take a look at this helpful Google Sheets beginner course. It covers all the basics, including how to enhance your spreadsheets, using different types of cell references, creating flexible formulas, and sorting and filtering your data.

Related:

Popular Posts

Access All

Free Templates

Enjoy our custom-made Google Sheets templates for free via email access