Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Robert
 
Posts: n/a
Default DATE (MOD) Function

I want enter the date as 190805 (or any date) ie without any slash into A1.
In A2 it shoulddisplay as 19-Aug-05. Without using VBA can the MOD be
applied. I experimented the following formula (from this ng) changing "TIME"
to "DATE" but just cannot get it.

=TIME(INT(M1/10000),INT(MOD(M1,10000)/100),MOD(M1,100))

Thank you
Robert
  #2   Report Post  
Duke Carey
 
Posts: n/a
Default

How about:

=DATEVALUE(MID(A1,3,2)&"/"&LEFT(A1,2)&"/"&RIGHT(A1,2))


"Robert" wrote:

I want enter the date as 190805 (or any date) ie without any slash into A1.
In A2 it shoulddisplay as 19-Aug-05. Without using VBA can the MOD be
applied. I experimented the following formula (from this ng) changing "TIME"
to "DATE" but just cannot get it.

=TIME(INT(M1/10000),INT(MOD(M1,10000)/100),MOD(M1,100))

Thank you
Robert

  #3   Report Post  
Mangesh Yadav
 
Posts: n/a
Default

=DATE(RIGHT(A1,2),MID(A1,3,2),LEFT(A1,2))

Mangesh



"Robert" wrote in message
...
I want enter the date as 190805 (or any date) ie without any slash into

A1.
In A2 it shoulddisplay as 19-Aug-05. Without using VBA can the MOD be
applied. I experimented the following formula (from this ng) changing

"TIME"
to "DATE" but just cannot get it.

=TIME(INT(M1/10000),INT(MOD(M1,10000)/100),MOD(M1,100))

Thank you
Robert



  #4   Report Post  
Robert
 
Posts: n/a
Default

Duke, thank you very much for the formula. BTW isn't there a MOD
function for this.

Mangesh, your formula actually has the date as 15-Aug-(19)05
instead of 15-Aug-(20)05.
Robert



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 function Dee Excel Worksheet Functions 2 July 13th 05 03:32 PM
Excel date function Excel date range function Excel Worksheet Functions 6 June 15th 05 01:59 PM
Is there a function to show future date taxmom Excel Worksheet Functions 2 March 4th 05 09:23 PM
Date Function drschieff Excel Worksheet Functions 1 January 19th 05 07:51 PM
Date Overdue function, Macro, or VBS Galsaba Excel Discussion (Misc queries) 5 January 14th 05 12:26 AM


All times are GMT +1. The time now is 02:48 PM.

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"