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

How to change the number 1122008 to 1/12/2008?
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,389
Default how to change number to date

Probably the best is:

=date(mod(a1,10000),mod(int(a1/10000),2),day(int(a1/1000000)))

This will handle the case where you have two digit dates.

Regards
Fred

"Happy One" <Happy wrote in message
...
How to change the number 1122008 to 1/12/2008?


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

=DATE(RIGHT(A2,4),MID(A2,LEN(A2)-5,2),LEFT(A2,LEN(A2)-6))
--
David Biddulph

"Happy One" <Happy wrote in message
...
How to change the number 1122008 to 1/12/2008?



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

This worked for me with my USA date settings (mdy):
=--TEXT(A1,"00\/00\/0000")
and formatted as a date



Happy One wrote:

How to change the number 1122008 to 1/12/2008?


--

Dave Peterson
  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2
Default how to change number to date

Yes, it works.

Thank you,

"Dave Peterson" wrote:

This worked for me with my USA date settings (mdy):
=--TEXT(A1,"00\/00\/0000")
and formatted as a date



Happy One wrote:

How to change the number 1122008 to 1/12/2008?


--

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
how do i change the default from a date to a number? Habbakuk Excel Discussion (Misc queries) 1 April 21st 07 01:42 PM
Change date to number maryj Excel Worksheet Functions 5 October 6th 06 06:27 PM
Formula to change number into date anjgoss Excel Discussion (Misc queries) 4 September 28th 05 10:47 AM
change info in other cells when i change a number in a drop list? macbr549 Excel Discussion (Misc queries) 2 September 11th 05 02:07 AM
How do you change the date to a Number help me Excel Discussion (Misc queries) 8 December 15th 04 07:54 AM


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