How to convert text to numbers and dates in Excel

Multiply a number stored as text by 1, =A2*1, or use =VALUE(A2), and Excel gives you the number. A date stored as text converts with =DATEVALUE(A2) when it’s written in your Excel’s own order; one in another order, like 14.03.2026 in a US Excel, needs Text to Columns or DATE.

= click to change

B6 = 1685.5 Multiplied by 1, every amount is a number, on the right of its cell, and the total counts them all. =VALUE(A2) gives the same numbers.

It happens on import. A bank statement, an accounting system or a web form exports numbers and dates as text, sometimes in an order your Excel doesn’t read, and Excel keeps them as the characters they are. The column looks fine. Then the total comes out too low, the dates sort as words, a filter offers no months, and a lookup misses a value you can see.

The fix is quick: a formula beside the text turns it into a real number or date, and Paste Values keeps the result. Below you do it to a bank export, step by step. Further down: dates written in another country’s order, and the mistakes that give a wrong date instead of an error.

Lesson

This is Witsheet, Witsy’s in-browser spreadsheet. It works like Excel and checks each step as you go.

Spot a number stored as text

Excel puts numbers on the right of a cell and text on the left, so a column of amounts with some on the left is the first sign. Select the column and the status bar says the rest: Count includes them, Sum leaves them out. SUM skips text without a warning, which is why the total is too low rather than an error. To check a cell, ask ISNUMBER.

B2 = FALSE 120.00 looks like a number and sits on the left of its cell, as text does. ISNUMBER says FALSE for it and for 49.90; only 85.5 and 230 are numbers.

=ISNUMBER() click to change
A2 value
The amount as it is, multiplied by 1, or through VALUE.

Arithmetic converts text that reads as a number: =A2*1, =A2+0 or =--A2 all give the number, and change nothing else. =VALUE(A2) does the same with a name that says so. “Reads as a number” means written the way your Excel writes numbers: 1,000.00 in a US or UK Excel, 1.000,00 in a German one. Text with letters in it, like 18.40 EUR, gives #VALUE!, so take them out with SUBSTITUTE first. Excel also marks each number stored as text with a small green triangle, and selecting them and choosing Convert to Number from the warning fixes them in place.

Turn a date stored as text into a date

A date stored as text sits on the left of its cell too, and formatting the cell as a date does nothing, because there’s no number there to format. If the text is written in your Excel’s own order, like 3/14/2026 in a US Excel or 14/03/2026 in a UK one, =DATEVALUE(A2) turns it into a real date, and so does =A2*1.

Both show a number like 46095 at first. That is the date: Excel stores a date as a count of days since 1900, and 14 March 2026 is day 46095. Choose Short Date from the Number Format box on the Home tab, and the same number shows as a date that sorts and filters as one.

Keep the values, then delete the text

The clean columns are formulas that read the raw ones, so deleting the raw columns would break them. Copy the clean columns and paste them over themselves as values: Ctrl+Shift+V in Microsoft 365 (⌘+Shift+V on a Mac), or right-click → Paste Special → Values in any version. Each cell then holds the number or the date itself, and the raw columns can go. Paste Values keeps the cells’ formats, so the dates still look like dates.

Dates written in another order

DATEVALUE reads text the way your Excel reads a date you type, so a file from another country can defeat it. 14/03/2026 is text to an Excel set up for the United States, and 3/14/2026 is text to one set up for the United Kingdom; 14.03.2026 is text to most English-language setups. DATEVALUE gives #VALUE! for each.

Two fixes work whatever order the file uses. Without a formula, select the column and choose Data → Text to Columns, then on its last screen choose Date and the order the text uses (DMY for 14.03.2026). Witsheet doesn’t have Text to Columns yet, so here is the formula, which works in every version of Excel: DATE makes a date from a year, a month and a day, and RIGHT, MID and LEFT cut those three out of the text by position.

B2 = 2026-03-02 Year, month and day, each cut from the text by position. DATE takes text digits as numbers, so “03” is month 3.

=DATE(, hover to view, click to change) click to change
RIGHT(A2, 4) year
RIGHT takes characters from the end: the last 4 are the year.
MID(A2, 4, 2) month
MID takes characters from the middle: 2, starting at the 4th.
LEFT(A2, 2) day
LEFT takes characters from the start: the first 2 are the day.

Read a few raw rows before you write the formula, and check a converted row whose day is 12 or under: that’s where a swapped day and month still makes a date, just the wrong one.

Dates written as one number

Banks and accounting systems often write a date as eight digits, year first: 20260314. Excel reads that as a number, so it sits on the right and doesn’t look broken, but it’s twenty million, not 14 March. The same cutting works, at different positions.

B2 = 2026-03-14 20260314 is a number, so it sits on the right, but it isn’t a date: formatted as one it’s twenty million days, far past the year 9999, and Excel shows ######. LEFT and RIGHT read a number as text, so the same cutting works.

=DATE(LEFT(A2, 4), , RIGHT(A2, 2)) click to change
MID(A2, 5, 2) month
The 2 characters after the year: starting at the 5th.

Download the numbers and dates practice sheet

To carry on in your own Excel, download the workbook. It’s the same job at full size, with the harder dates: a 150-line bank export with every date written 14.03.2026 as text, for the DATE formula above, a few with a time after them, and two amounts in three stored as text. Five tasks, and the answers on a sheet of their own.

Bank export with text dates and amounts

150 transactions the way some systems export them: dates written 14.03.2026 as text, and most amounts stored as text, so nothing adds up. Practice turning them into real dates and numbers.

150 rows · Date · Description · Category · Amount

Free · fictional data · opens in Excel and Google Sheets

Learn the rest of Excel the same way

Witsy’s Excel course teaches a few hundred small skills, called Wits, the way this page teaches numbers and dates: in a real spreadsheet, a step at a time. The placement test finds the ones you already have.

Your Wit map

Test your spreadsheet Wits.

Take a few minute test to see how good you actually are with spreadsheets. Witsy creates a map of the Wits you should learn next.

Take the placement test Or just start learning →
new unproven weak mid strong very strong super strong