Convert Text to Date in Excel & Google Sheets (DATEVALUE & Fixes)

Turn text strings like "2026-11-26" or "11/26/2026" into genuine spreadsheet dates so date math, sorting, and date filters work reliably.

Direct Answer: Convert Standard Date Text With DATEVALUE

When a date is stored as text, formulas like MONTH(), EOMONTH(), or date-range SUMIFS can behave unexpectedly. Use DATEVALUE on clean text dates:

=DATEVALUE(A2)

Worked Example: Text Dates vs. Real Dates

Cell A2 (Text Input) =DATEVALUE(A2) Result Display After Date Format
"2026-11-26" Real date serial value 2026-11-26 (or Nov 26, 2026)
"Nov 26, 2026" Real date serial value 2026-11-26

Fixing Non-Standard or Messy Imported Date Strings

Next Step: Once your dates are real dates, calculate month-end cutoffs with EOMONTH or count business days with NETWORKDAYS.
Editorial & Accuracy Note: Tested across Microsoft Excel and Google Sheets with worked sample inputs and outputs. Part of the Know Unlimited Excel & Google Sheets Hub.