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

how do convert a cell with 8 numbers 19680422 into the date format 4/22/1968 ?
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,316
Default number to date format

Replace cell A1 in the expample with the corresponding cell in your worksheet:

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


"womit" wrote:

how do convert a cell with 8 numbers 19680422 into the date format 4/22/1968 ?

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,856
Default number to date format

Assuming they start in cell A1, put this in B1:

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

Format the cell how you want it to appear, then copy down to B8.

Hope this helps.

Pete

On Jul 2, 2:57*pm, womit wrote:
how do convert a cell with 8 numbers 19680422 into the date format 4/22/1968 ?


  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35,218
Default number to date format

Another one:
=--(TEXT(A1,"0000\/00\/00"))
and format it as a date.

If you have a single column of these things, you can:
select the range
data|text to columns (xl2003 menus)
fixed width (no separators!)
and choose ymd as the date format

And then format it the way you like.

womit wrote:

how do convert a cell with 8 numbers 19680422 into the date format 4/22/1968 ?


--

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
Number format to date Maxfli Excel Discussion (Misc queries) 4 July 25th 07 11:38 PM
How do you format a number into a date? Kim Excel Discussion (Misc queries) 6 September 12th 06 03:30 PM
convert number to date format Lesley Excel Discussion (Misc queries) 4 July 12th 06 09:17 PM
* next to date format in Formatcells Number tab Marco18+ Excel Discussion (Misc queries) 6 April 5th 06 08:40 PM
Excel: I enter date and format for date, but shows as number spohar Excel Discussion (Misc queries) 2 March 10th 06 08:40 PM


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

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"