Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 5
Default Conversion of date into different format

can date 20060625 be converted into 06/25/2006?
Any help will be appreciated.
Thx

--
Message posted via OfficeKB.com
http://www.officekb.com/Uwe/Forums.a...excel/200607/1

  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 10,593
Default Conversion of date into different format

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

--
HTH

Bob Phillips

(replace somewhere in email address with gmail if mailing direct)

"Fam via OfficeKB.com" <u18245@uwe wrote in message
news:641510bb9fb49@uwe...
can date 20060625 be converted into 06/25/2006?
Any help will be appreciated.
Thx

--
Message posted via OfficeKB.com
http://www.officekb.com/Uwe/Forums.a...excel/200607/1



  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 12
Default Conversion of date into different format

Yes, if all of your data is like this in the list, there's a little bit of
work you need to do:

First, insert three columns next to your date column and do "Data Text to
Columns" using Fixed Width, and put your lines after 2006 and 06 so that the
data is divided like this: 2006|06|25

Then in the blank cell next to your separated data, concatenate the
separated cells back together so that they dispay as 06/25/2006.

Format this column as a Date in the format you want it to display.

Finally, do a Text to Columns again, use Delimited, but make sure to remove
any checkmarks from the delimiters before clicking finish. This will
finalize the field as a date and fix your problem.

Yes, I've had to do this a couple of times myself. :)

Let me know if you have any problems!

"Fam via OfficeKB.com" wrote:

can date 20060625 be converted into 06/25/2006?
Any help will be appreciated.
Thx

--
Message posted via OfficeKB.com
http://www.officekb.com/Uwe/Forums.a...excel/200607/1


  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default Conversion of date into different format


hi!

=TEXT(MID(A1,5,2)&"/"&RIGHT(A1,2)&"/"&LEFT(A1,4),"mm/dd/yyyy")

where 20060625 housed in A1

-via135


Fam via OfficeKB.com Wrote:
can date 20060625 be converted into 06/25/2006?
Any help will be appreciated.
Thx

--
Message posted via OfficeKB.com
http://www.officekb.com/Uwe/Forums.a...excel/200607/1



--
via135
------------------------------------------------------------------------
via135's Profile: http://www.excelforum.com/member.php...o&userid=26725
View this thread: http://www.excelforum.com/showthread...hreadid=566780

  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default Conversion of date into different format


or

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

VBA Noob


--
VBA Noob
------------------------------------------------------------------------
VBA Noob's Profile: http://www.excelforum.com/member.php...o&userid=33833
View this thread: http://www.excelforum.com/showthread...hreadid=566780



  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 5
Default Conversion of date into different format

Thanks guys

jb_tenor1 wrote:
Yes, if all of your data is like this in the list, there's a little bit of
work you need to do:

First, insert three columns next to your date column and do "Data Text to
Columns" using Fixed Width, and put your lines after 2006 and 06 so that the
data is divided like this: 2006|06|25

Then in the blank cell next to your separated data, concatenate the
separated cells back together so that they dispay as 06/25/2006.

Format this column as a Date in the format you want it to display.

Finally, do a Text to Columns again, use Delimited, but make sure to remove
any checkmarks from the delimiters before clicking finish. This will
finalize the field as a date and fix your problem.

Yes, I've had to do this a couple of times myself. :)

Let me know if you have any problems!

can date 20060625 be converted into 06/25/2006?
Any help will be appreciated.
Thx


--
Message posted via OfficeKB.com
http://www.officekb.com/Uwe/Forums.a...excel/200607/1

  #7   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,327
Default Conversion of date into different format

20060625 is not a date, it is a big number, 20 million something. The date
in question is a smaller number, 38893. See Chip's page
http://www.cpearson.com/excel/datetime.htm
on why this is so. To change 20 million some to 38 thousand some you can use
a formula in a neighbor cell,
=DATE(INT(A1/10000),MOD(INT(A1/100),100),MOD(A1,100))
,or with a macro that runs on entry, see another one of Chip's pages for
this
http://www.cpearson.com/excel/DateTimeEntry.htm

HTH. Best wishes Harald

"Fam via OfficeKB.com" <u18245@uwe skrev i melding
news:641510bb9fb49@uwe...
can date 20060625 be converted into 06/25/2006?
Any help will be appreciated.
Thx

--
Message posted via OfficeKB.com
http://www.officekb.com/Uwe/Forums.a...excel/200607/1



  #8   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35,218
Default Conversion of date into different format

One more formula...
=--text(a1,"0000\/00\/00")
Format as a date.



"Fam via OfficeKB.com" wrote:

can date 20060625 be converted into 06/25/2006?
Any help will be appreciated.
Thx

--
Message posted via OfficeKB.com
http://www.officekb.com/Uwe/Forums.a...excel/200607/1


--

Dave Peterson
  #9   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 22,906
Default Conversion of date into different format

DataText to ColumnsNextNextColumn Data FormatDateYMDFinish


Gord Dibben MS Excel MVP

On Mon, 31 Jul 2006 19:23:40 GMT, "Fam via OfficeKB.com" <u18245@uwe wrote:

can date 20060625 be converted into 06/25/2006?
Any help will be appreciated.
Thx


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
Changing date format in a footer Gord Dibben Excel Discussion (Misc queries) 2 December 9th 05 06:36 PM
format date in excel Nigel Excel Discussion (Misc queries) 2 September 15th 05 09:52 PM
Why Does Date Format Change on Chart John Taylor Excel Discussion (Misc queries) 0 September 11th 05 08:16 AM
Help needed with date format [email protected] Excel Discussion (Misc queries) 1 August 29th 05 09:11 AM
imported impromtu report date issue - fix by format or formula Todd F. Excel Discussion (Misc queries) 3 July 7th 05 09:57 PM


All times are GMT +1. The time now is 11:16 AM.

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"