transforming a date

  • Thread starter Thread starter bernd.vd.berg
  • Start date Start date
B

bernd.vd.berg

I've a column with a date written as follows 20060801. (first of august
2006)

I want to transform this date into 01-08-2006

Does anyone know how to do this?


Bernd
 
Select the column
data|Text to columns
Fixed width (but don't have any lines to separate fields)
choose date ymd (or ydm, I can't tell!)
and finish up.

Format the column the way you want.
 
Assuming your data is in A2, try this in B2:

=VALUE(RIGHT(A2,2)&"/"&MID(A2,5,2)&"/"&LEFT(A2,4))

Format the cell in the date format you require, then copy down the
column for as many entries as you have in column A.

Hope this helps.

Pete
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top