In Excel: use =DATEVALUE(A2) when the text is in your regional order, or Data ▸ Text to Columns ▸ Next ▸ Next ▸ Date ▸ pick the order (DMY/MDY/YMD) ▸ Finish when it is not.
On this page7
Confirm the problem: dates as text left-align by default and =ISTEXT(A2) returns TRUE.
Try =DATEVALUE(A2) first — if it works, copy the results and Paste Special ▸ Values over the original column.
If it returns #VALUE!, use Data ▸ Text to Columns, click Next twice, set Column data format to Date and choose the order that matches the text (DMY, MDY or YMD), then Finish.
For fixed-width strings like 20260413, build it with =DATE(LEFT(A2,4), MID(A2,5,2), RIGHT(A2,2)).
Strip stray spaces first with =TRIM(A2) and non-breaking spaces with =SUBSTITUTE(A2, CHAR(160), "") — imported data is full of both.
Format the result cells as Date, since all three routes return a serial number.
What this does
A date that arrived as text sits left-aligned, ignores date formats and returns nothing useful from date arithmetic. Three routes fix it. DATEVALUE parses a text date into a serial number, but only in the order your Windows/Mac regional settings expect — feed it "13/04/2026" on a US machine and it returns #VALUE!. Text to Columns is the reliable one, because step 3 lets you state the order explicitly. And for anything Excel refuses to parse, DATE with LEFT/MID/RIGHT builds the date from its pieces. Whichever route you take, the result is a serial number, so format the cell as a Date afterwards. Keep the inputs visible and clearly labelled and the whole thing stays auditable — anyone who opens the file later, including you, can see at a glance exactly what feeds the result and change one assumption without hunting through the formula. The difference between a quick fix and a sheet you can trust is the extra minute you spend validating “excel text to date conversion”. Start on a copy or a tiny sample, keep the affected cells visible, and compare the result with the tool above before you touch the real workbook. When a formula is involved, keep the inputs labelled beside it, reference cells instead of typing values, and apply number formatting only after the result checks out. The point is a workflow that saves repeating the same clicks every week, but the practical win is that someone else can open the file and understand what happened without asking you.
A worked example
A2 holds the text 13/04/2026 on a machine set to US formats. =DATEVALUE(A2) returns #VALUE!. Instead: select the column ▸ Data ▸ Text to Columns ▸ Delimited ▸ Next ▸ Next ▸ Column data format: Date ▸ DMY ▸ Finish. The cells become real dates and right-align. For a stubborn format like 20260413, =DATE(LEFT(A2,4), MID(A2,5,2), RIGHT(A2,2)) returns 13 April 2026. A quick test for whether a cell is text: =ISTEXT(A2), or check whether it left-aligns by default. Every export, CSV and copy-paste from a web page arrives with dates as text, and until they are real serial numbers nothing sorts, filters, subtracts or pivots by date correctly. If there is any chance you will reuse this, drop it into a small template tab right now: a labelled input area on the left and the formula beside it, checked once against the tool above. Next time the same question comes up, the answer is a single paste away instead of a rebuild from memory.
In Google Sheets
Everything above works in Google Sheets too. Excel and Sheets share the formula syntax used here; only the surrounding menus are arranged differently. That portability is deliberate — learn it once and it follows you between the two tools and across Windows and Mac. The aim was to get you unstuck fast and leave you a little more capable than a copy-paste would. The answer is at the top and the detail above shows why it holds — so the next time a colleague asks, you can answer without reaching for search. The short version of “excel text to date conversion”: the answer is at the top of this page, the tool proves it on your own numbers, and the sections above explain why it holds so the next variation does not stump you. Excel rewards people who reference cells instead of typing values and who keep inputs separate from formulas, because that is what makes a result you can audit months later. Build it once, deliberately, with the live tool as a check, and you convert a one-off lookup into a reusable skill — which is the whole point of learning the why and not just the what.
Common mistakes
- Applying a date format to text and assuming it converted — formatting changes appearance, never the underlying type.
- Using
DATEVALUEon a text order that differs from the machine's regional setting, which silently returns#VALUE!or, worse, a valid but wrong date when day and month are both ≤ 12. - Forgetting that a trailing non-breaking space from a web paste blocks every parser.
- Converting on one machine and shipping the workbook to a region with different settings, when Text to Columns with an explicit order would have been unambiguous.
Frequently asked questions
How do I convert text to a date in Excel?
=DATEVALUE(A2) works when the text matches your regional date order. When it does not, use Data ▸ Text to Columns and set the column format to Date with the correct DMY/MDY/YMD order.
Why does DATEVALUE return #VALUE!?
The text is not in the order your system expects, or it contains stray spaces. Clean it with TRIM and SUBSTITUTE(A2,CHAR(160),""), or use Text to Columns where you state the order yourself.
How do I tell whether a cell is a real date?
Real dates right-align by default and =ISNUMBER(A2) returns TRUE. Text dates left-align and =ISTEXT(A2) returns TRUE.
How do I convert 20260413 to a date?
Build it from the pieces: =DATE(LEFT(A2,4), MID(A2,5,2), RIGHT(A2,2)). Text to Columns with the YMD format also handles it.
Other ways people ask this
On the way here you may have searched this as “excel date conversion” and “julian date conversion in excel” — it is all the same task, and this page is the single, complete answer to it.
Why do people search for this in so many different ways?
Because the same task has many names. “excel date conversion”, “julian date conversion in excel” all point at the one operation explained on this page, which is why they all lead here.