How to fix dates stored as text in Excel

A date that is really text will not sort with the other dates, and a formula that subtracts two dates will return #VALUE! when one of them is text. ISNUMBER is the test. A date serial is a number, so a real date is TRUE. The characters 7/4/2026 are text, so ISNUMBER is FALSE.

The workbook that lists bill dates is the bill tracker.

The text fails the number test

ISNUMBER
=ISNUMBER(B1)
=ISNUMBER(B1)B2
Text that looks like a date
AB
1Value7/4/2026
2Is numberFALSE
A picture of a US workbook. The cell holds the characters 7/4/2026, not a date serial. ISNUMBER is FALSE. A real date would be TRUE.

The same test on the number 143.60, the January utility amount on the ISNUMBER page, is TRUE. Those digits stored as text are FALSE. A blank is FALSE. An error is FALSE, and ISNUMBER itself does not become an error.

July 4, 2026 as a real date is also TRUE. The cell has to hold the serial, not the characters.

DATEVALUE reads the workbook’s order

DATEVALUE turns date text into that serial. In a US workbook, month then day, 7/4/2026 is July 4, 2026.

DATEVALUE
=DATEVALUE(B1)
=DATEVALUE(B1)B2
The same text, converted
AB
1Text7/4/2026
2Serial46207
3Is numberTRUE
A picture of the DATEVALUE page. In a US workbook the text is July 4, 2026, serial 46207. Format that serial as a date and it shows 7/4/2026.

Serial 46207 is the one on the DATEVALUE page. January 1, 2026 is serial 46023, and July 4 is 184 days later, because 2026 is not a leap year. Format the serial as a date if you want to see 7/4/2026 instead of 46207. Leave it as a number and the value is still a date. ISNUMBER of it is TRUE, which is the fix.

The text 1/15/2026 is the same conversion on the #VALUE! page. DATEVALUE returns 46037. The text 15/1/2026 is day, then month. A US workbook reads the first number as the month, and there is no month 15, so DATEVALUE returns #VALUE!.

A day-first workbook swaps those two results. DATEVALUE does not know that you meant a US holiday. It uses the order this workbook uses.

DATE does not read the text

DATE takes the year, the month, and the day as three numbers.

DATE
=DATE(B1,B2,B3)
=DATE(B1,B2,B3)B4
Year, month, and day as numbers
AB
1Year2026
2Month7
3Day4
4Serial46207
A picture that does not read the text order. DATE(2026,7,4) is the same serial, 46207. The text 15/1/2026 is #VALUE! from DATEVALUE in a US workbook, because there is no month 15.

That is serial 46207 again. Use it when you already know the three parts and you do not want the locale to decide. =DATE(2026,2,31) rolls forward to March 3, 2026, because February 2026 has 28 days. =DATEVALUE("02/31/2026") stays #VALUE!. Use DATEVALUE when a bad string should remain visible as an error.

A time stuck on the end of the text is dropped. July 4, 2026 at 9:30 AM becomes the date only.


Template for this article

Bill Tracker and Due-Date Calendar

More from the blog