Dates imported from CSV files, databases, or copied from websites often arrive in Excel as text — meaning you cannot sort, filter, or calculate with them as real dates. Here are the best methods to convert text to proper Excel dates.
Method 1: DATEVALUE Function (Most Flexible)
The DATEVALUE function converts a date stored as text into an Excel date serial number. It works with most recognisable date formats.
- In an empty cell next to your text date (e.g., A1 contains "23 June 2026"), enter:
=DATEVALUE(A1) - Press Enter — you get a number (e.g., 46195). This is Excel's date serial number.
- With the cell selected, press Ctrl+1 to open Format Cells.
- Select Date and choose your preferred format. The cell now shows a proper date.
- Copy the helper column, paste as Values Only (Ctrl+Shift+V → Values), then delete the original text column.
Common DATEVALUE formats it recognises: "23 June 2026", "June 23, 2026", "23-Jun-2026", "2026-06-23"
Method 2: Text to Columns (Fastest for Bulk Conversion)
This method works when all your text dates are in a consistent format that Excel can recognise (like YYYY-MM-DD or MM/DD/YYYY).
- Select the column of text dates.
- Go to Data → Text to Columns.
- Click Next twice (skip delimiters — we are not splitting columns).
- In Step 3, under Column data format, select Date and choose the date order (MDY, DMY, or YMD) that matches your text.
- Click Finish. Excel converts all the text in-place to real dates.
Format the column as Date (Ctrl+1 → Date) if it still shows numbers.
Method 3: Find & Replace to Fix Separators
If your dates use a separator Excel does not recognise in your locale (e.g., dashes where it expects slashes), a quick Find & Replace fixes them:
- Select the column with text dates.
- Press Ctrl+H to open Find & Replace.
- In Find what, type the current separator (e.g., a dot
.or dash-). - In Replace with, type the separator your locale uses (e.g.,
/). - Click Replace All. Excel should now recognise the dates automatically.
Method 4: DATE Function (For Split Date Parts)
If the year, month, and day are in separate columns (e.g., A1=2026, B1=6, C1=23), use:
=DATE(A1, B1, C1) This always returns a proper Excel date. Format the result as Date.
Method 5: Power Query (Best for Recurring Imports)
For data that arrives regularly from an external source, Power Query is the most robust solution:
- Select your data → go to Data → From Table/Range.
- In Power Query, right-click the date column header → Change Type → Date.
- If it fails, right-click → Change Type → Using Locale → select the locale that matches your date format.
- Click Close & Load. Power Query converts dates every time you refresh.
Why Are My Dates Still Showing as Text?
- Green triangle in cell corner: Excel suspects the value is a number stored as text. Click the warning icon → "Convert to Number."
- Left-aligned dates: Dates align right by default in Excel. If your date is left-aligned, it is still text.
- TRIM first: Leading or trailing spaces break DATEVALUE. Use
=DATEVALUE(TRIM(A1)).
Frequently Asked Questions
How do I convert text to a date in Excel?
If the text is in a recognised date format, select the cells, go to Data → Text to Columns → Finish, then format the cells as Date. Alternatively use DATEVALUE() to convert a text string like "23 June 2026" into a serial date number, then format as Date.
Why does Excel show numbers instead of dates after conversion?
Excel stores dates as serial numbers (days since 1 Jan 1900). After converting text to a date, format the cell as a Date: right-click → Format Cells → Date → choose your format.
What is the DATEVALUE function in Excel?
DATEVALUE(text) converts a date stored as text into an Excel date serial number. Example: =DATEVALUE("2026-06-23") returns 46195. Format the result as a Date to see it as a readable date.
Why does DATEVALUE return a #VALUE! error?
DATEVALUE cannot parse the format. Common causes: the date uses slashes in a locale that expects dashes, the month name is abbreviated differently, or there is a leading/trailing space. Try =DATEVALUE(TRIM(A1)) or reformat the text first.
How do I convert text dates in bulk in Excel?
Use Text to Columns (Data → Text to Columns → Delimited → Finish) on the column — Excel re-parses all values. Or use a helper column with =DATEVALUE(A1) and copy/paste the results as values.