#1   Report Post  
Posted to microsoft.public.excel.misc
Tom Tom is offline
external usenet poster
 
Posts: 19
Default Date conversion

I'm sure this question has been asked before.
How to convert the date expressed as "20061215" to read as 15/12/2006?
Thanks for your help.

Tom


  #2   Report Post  
Posted to microsoft.public.excel.misc
JMB JMB is offline
external usenet poster
 
Posts: 2,062
Default Date conversion

If your data is in A1, try

=DATE(LEFT(A1,4),MID(A1,5,2),RIGHT(A1,2))

then format the cell as d/m/yyyy


"Tom" wrote:

I'm sure this question has been asked before.
How to convert the date expressed as "20061215" to read as 15/12/2006?
Thanks for your help.

Tom



  #3   Report Post  
Posted to microsoft.public.excel.misc
Tom Tom is offline
external usenet poster
 
Posts: 19
Default Date conversion

Thank you JMB.

"JMB" wrote in message
...
If your data is in A1, try

=DATE(LEFT(A1,4),MID(A1,5,2),RIGHT(A1,2))

then format the cell as d/m/yyyy


"Tom" wrote:

I'm sure this question has been asked before.
How to convert the date expressed as "20061215" to read as 15/12/2006?
Thanks for your help.

Tom





  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,886
Default Date conversion

Hi Tom

One way
Click on cell(s), DataText to ColumnsNextNextDateYMDFinish

--
Regards

Roger Govier


"Tom" wrote in message
u...
I'm sure this question has been asked before.
How to convert the date expressed as "20061215" to read as 15/12/2006?
Thanks for your help.

Tom



  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 196
Default Date conversion

Another way:

=TEXT(A1,"0000-00-00")+0

Richard


Tom wrote:
I'm sure this question has been asked before.
How to convert the date expressed as "20061215" to read as 15/12/2006?
Thanks for your help.

Tom




  #6   Report Post  
Posted to microsoft.public.excel.misc
Tom Tom is offline
external usenet poster
 
Posts: 19
Default Date conversion

Wow! Didn't know there are many other ways. However, which of your
suggestions also work the other way around, i.e. change 15/12/2006 back to
the number 20061215?

"Tom" wrote in message
u...
I'm sure this question has been asked before.
How to convert the date expressed as "20061215" to read as 15/12/2006?
Thanks for your help.

Tom



  #7   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35,218
Default Date conversion

You could use a formula in another cell:

=text(a1,"yyyymmdd")

If you wanted to keep it a date, just change the way it looks, you could give it
a custom format of:

yyyymmdd



Tom wrote:

Wow! Didn't know there are many other ways. However, which of your
suggestions also work the other way around, i.e. change 15/12/2006 back to
the number 20061215?

"Tom" wrote in message
u...
I'm sure this question has been asked before.
How to convert the date expressed as "20061215" to read as 15/12/2006?
Thanks for your help.

Tom


--

Dave Peterson
  #8   Report Post  
Posted to microsoft.public.excel.misc
Tom Tom is offline
external usenet poster
 
Posts: 19
Default Date conversion

A clever formula. Thanks again, Dave.

"Dave Peterson" wrote in message
...
You could use a formula in another cell:

=text(a1,"yyyymmdd")

If you wanted to keep it a date, just change the way it looks, you could
give it
a custom format of:

yyyymmdd



Tom wrote:

Wow! Didn't know there are many other ways. However, which of your
suggestions also work the other way around, i.e. change 15/12/2006 back
to
the number 20061215?

"Tom" wrote in message
u...
I'm sure this question has been asked before.
How to convert the date expressed as "20061215" to read as 15/12/2006?
Thanks for your help.

Tom


--

Dave Peterson



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Date formulas DRondeau Excel Discussion (Misc queries) 7 September 6th 06 09:53 PM
Date Conversion MIchel Khennafi Excel Worksheet Functions 3 July 20th 06 05:56 PM
date conversion after pasting DC Gringo Excel Worksheet Functions 2 February 16th 06 06:05 PM
Date Conversion jdmcleod Excel Discussion (Misc queries) 2 March 20th 05 12:12 AM
unwanted number to date conversion while pasting data from web Jacek Excel Worksheet Functions 1 February 24th 05 02:59 PM


All times are GMT +1. The time now is 04:49 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"