← Back to blog

Dates Not Sorting in Google Sheets? They Are Text, Not Dates

· Sean Harkin, Co-Founder, Sheetminer
Google Sheets dates data quality invoice data

A column of dates that will not sort is one of the most common spreadsheet problems, and it is almost never a Google Sheets bug. The cells contain text that looks like a date, not a date. Google Sheets puts numbers before text when it sorts, so a mixed column splits into two blocks: real dates sorted chronologically at the top, then the text dates sorted character by character underneath. If your March rows are sitting below your December rows, that is what happened.

The fix is not the format menu. Changing a text cell to the Date format leaves it as text, because formatting never converts a value. You have to prove the value is text, then rebuild it. This guide covers the test, the three fixes, and the part most guides skip: where those text dates keep coming from.

The 30 second test

Put this next to the first date and copy it down:

=ISNUMBER(A2)

A real date in Google Sheets is a serial number underneath, 1 for 31 December 1899 and up from there, so ISNUMBER returns TRUE. Text returns FALSE. If you get FALSE, you have your answer and you can stop reading the sort menu.

For a whole column, two functions tell you how bad it is:

=COUNTA(B2:B500)   ' every non-empty cell
=COUNT(B2:B500)    ' only the numeric ones

The gap between them is the number of text dates. A 2,400 row transaction list where COUNT returns 2,214 has 186 text dates in it. That is 7.75 percent of the column, which is enough to break a monthly total without anyone noticing, because the monthly total just quietly comes out low.

One more tell: if the dates are left aligned in the cell, they are text. Google Sheets right aligns numbers by default.

Why the format menu does nothing

This trips people up constantly. In Google Sheets, format and value are separate things. A cell can contain the text 14/03/2026 and be formatted as a date. It will still be text, it will still sort alphabetically, and the format menu will still say Date.

You can prove it in one cell. Type 14/03/2026 into A2, set the format to Date, then run =ISNUMBER(A2). It returns FALSE. Now retype the same characters as 2026-03-14 and press enter. Sheets recognises the ISO form and stores a real date, and ISNUMBER flips to TRUE. Same visible characters, one is a number and one is not.

Fix 1: convert the column in place

If the text is in a format your locale recognises, one formula does the job:

=DATEVALUE(A2)

Then copy the result, paste it back over the original column with Paste special > Values only, and delete the helper column.

DATEVALUE reads the text using the spreadsheet’s locale, which is the catch. 03/04/2026 is the 3rd of April on a UK or Irish locale and the 4th of March on a US one. If the sheet has ever been shared across both, do not trust it. Check the Locale under File > Settings before you run it, and spot check the first and last rows against the source document rather than assuming.

Fix 2: rebuild the date from its parts

When the format is unambiguous but not one DATEVALUE understands, state the positions explicitly. For text in DD/MM/YYYY:

=DATE(RIGHT(A2,4), MID(A2,4,2), LEFT(A2,2))

So 14/03/2026 becomes DATE(2026, 03, 14). RIGHT(A2,4) is the year, MID(A2,4,2) is the two characters after the first slash, LEFT(A2,2) is the day. For YYYY-MM-DD:

=DATE(LEFT(A2,4), MID(A2,6,2), RIGHT(A2,2))

For 14 March 2026 you are better off splitting the column with Data > Split text to columns using space as the separator, converting the month name with MATCH against a list of twelve, and reassembling with DATE. It is ugly, it takes ten minutes, and it beats a wrong date silently landing in your books.

Fix 3: fix the import, not the output

If the text dates arrived in a CSV or an Excel file, converting them afterwards is the expensive way to do it. Delete the imported range and import it again with the right settings:

  • File > Import > Upload, then under import options choose Convert text to numbers, dates, and formulas.
  • If the file is a CSV of a bank export, check what date format the bank actually exports before importing. A 20260314 column is unambiguous and will convert on any locale. A 03/14/2026 column will only convert on a US locale spreadsheet.
  • If the column still arrives as text, check for a leading apostrophe in the source file. Some exports add one to protect account numbers, and it protects the date from being converted too.

Where text dates actually come from

This is the part that matters if the problem keeps coming back, because fixing 186 cells does not stop the 187th arriving next week. In practice they come from four places:

  1. Copying out of a PDF. A PDF has no data types. It has glyphs at coordinates. Whatever you copy, and whatever the person before you typed, arrives as text.
  2. Typing from a document. The person reading a date off a scanned invoice types what they see, in whatever order they read it.
  3. CSV and Excel imports, as above.
  4. Form and add-on output that writes strings rather than date values.

Three of those four are the same underlying problem: the source document has no types, and the sheet is where types are supposed to appear. Which is why the durable fix is to make the arrival of the data do the conversion, not to clean up afterwards.

Making the date arrive as a date

Sheetminer runs inside Google Sheets and reads documents straight from Drive. When you define an AI Snip field, you give it a name, a plain-language description of what to look for, and a type: Text, Currency, Date, or List. A field typed as Date writes a date value, not a string, so it sorts and filters the moment it lands and there is no cleanup pass.

The cost side is worth stating plainly. Processing a document uses 1 page for each page and happens once, so a 4-page invoice uses 4 pages. After that, AI Snip, Text Snip, Table Snip and Search run against it at no extra cost.

Every extracted value also keeps a link back to the exact spot it was read from, so Inspect on a date cell opens the invoice with that date highlighted. That is the check that stops a misread 03 versus 08 from sitting in a sheet for six months. It is the same traceability that makes a sheet defensible in an audit, which is the subject of how to build an invoice audit trail in Google Sheets.

The five minute audit

If you inherited a sheet and want to know how much of it is text, do this before you fix anything:

  1. =COUNTA(A2:A) and =COUNT(A2:A) on every date column. Write down the gap.
  2. =COUNTIF(A2:A,"*/*") tells you how many cells contain a slash, which catches dates written as text and also catches account numbers with slashes.
  3. Sort the date column ascending and screenshot the top and bottom. If the top is all numbers and the bottom is all text, the split is confirmed.
  4. Pick three dates from the bottom block and check them against the source document. That tells you whether the text is at least correct, or whether the values are wrong as well as untyped.
  5. Only then convert, and convert into a new column so the original is still there when the formula gets an edge case wrong.

The same discipline applies to the numbers arriving next to those dates. If the amounts came from the same PDF, they are worth a totals check before the month is closed, which is what the bank statement conversion guide covers in detail.

What this is really a symptom of

A column of text dates is a receipt for manual data entry. It means a person read a document and typed it, and the sheet has no record of which document, which page, or which field. The sorting bug is the visible part. The invisible part is that when someone asks where the 14 March figure came from, the answer is a memory.

Fixing the sort takes twenty minutes. Making sure the next date arrives typed costs one template and removes the cleanup from every future month. The broader case for the second option is in what manual invoice data entry actually costs, and it lines up with the same numbers: the typing is not the expensive part, the checking is.

Turn your PDFs into Google Sheets rows, dates included, with Sheetminer, free to start → sheetminer.app