#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 11
Default Date conversion

How can I convert dates from 20020113 to 1/13/02?
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 11,501
Default Date conversion

Hi,

If 20020113 is a properly formatted date then simply change the cell format to

m/dd/yyyy

If it isn't a correctly formatted date then post back.

Mike

"Charlie7805" wrote:

How can I convert dates from 20020113 to 1/13/02?

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Art Art is offline
external usenet poster
 
Posts: 587
Default Date conversion

If the 20020113 is in cell A1, then enter in B1 =LEFT(A1,4) and in cell C1
=MID(A1,5,2) and in cell D1 =MID(A1,7,2) and then in cell E1 =DATE(B1,C1,D1).
let me know if that helps.

"Charlie7805" wrote:

How can I convert dates from 20020113 to 1/13/02?

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 11
Default Date conversion

This works perfectly. Thanks!!!

"art" wrote:

If the 20020113 is in cell A1, then enter in B1 =LEFT(A1,4) and in cell C1
=MID(A1,5,2) and in cell D1 =MID(A1,7,2) and then in cell E1 =DATE(B1,C1,D1).
let me know if that helps.

"Charlie7805" wrote:

How can I convert dates from 20020113 to 1/13/02?

  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 22,906
Default Date conversion

DataText to ColumnsNextNextColumn Data FormatDateYMD and Finish.


Gord Dibben MS Excel MVP

On Tue, 4 Mar 2008 10:07:03 -0800, Charlie7805
wrote:

How can I convert dates from 20020113 to 1/13/02?


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 Conversion billbrandi Excel Discussion (Misc queries) 3 July 23rd 07 03:58 AM
Date Conversion Kelli Excel Discussion (Misc queries) 2 June 20th 07 04:14 PM
Date Conversion Port Man Excel Discussion (Misc queries) 2 March 1st 07 06:40 PM
Date Conversion - sorry DTTODGG New Users to Excel 5 December 13th 05 07:36 PM
Date Conversion JD McLeod Excel Worksheet Functions 1 June 17th 05 01:07 PM


All times are GMT +1. The time now is 06:47 PM.

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

About Us

"It's about Microsoft Excel"