Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 5
Default Number or text to date

I need to change 20020102 into the date format 01/02/2002. Any suggestions?
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 4,339
Default Number or text to date



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

assuming A1 is yyyymmdd

HTH

"Nabellfl" wrote:

I need to change 20020102 into the date format 01/02/2002. Any suggestions?

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35,218
Default Number or text to date

If you have a whole column of this stuff, you can select that range
data|text to columns
fixed width (but erase any lines that excel guessed)
choose date (ymd or ydm -- difficult to guess with your sample)

And finish up the wizard.

Then you can format those dates anyway you want via:
format|Cells|Number tab.

Nabellfl wrote:

I need to change 20020102 into the date format 01/02/2002. Any suggestions?


--

Dave Peterson
  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 5
Default Number or text to date

Worked greeat. Thank you.

"Dave Peterson" wrote:

If you have a whole column of this stuff, you can select that range
data|text to columns
fixed width (but erase any lines that excel guessed)
choose date (ymd or ydm -- difficult to guess with your sample)

And finish up the wizard.

Then you can format those dates anyway you want via:
format|Cells|Number tab.

Nabellfl wrote:

I need to change 20020102 into the date format 01/02/2002. Any suggestions?


--

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 converted to Text Number Mari Excel Discussion (Misc queries) 6 July 29th 06 03:15 AM
Date to TEXT. NOT to sequential serial number Gene Excel Discussion (Misc queries) 2 May 26th 06 09:33 PM
Converting number or text to a Date Format samhain New Users to Excel 2 October 17th 05 02:28 PM
How do I extract a date as text not the 1900 reference number Adam Excel Discussion (Misc queries) 3 March 23rd 05 05:04 PM
How do I convert a number formated as a date to text in Excel? BrotherNov Excel Discussion (Misc queries) 5 March 2nd 05 03:51 PM


All times are GMT +1. The time now is 04: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"