Excel does not store "dates", it stores numbers.
In the case of a date, it stores the number of
days since 1/1/1900.
TIME is the fractional part of a day.
so 6:00am is actually 1/4 of a 24 hour day,
so it stores it as .25

So, today at 6:00am (10/1/2009 6:00 AM)
to Excel is: 40087.25

You may choose to DISPLAY it (display formats)
as anthing you wish.
Date, Time, Date/Time, scientific (4.008725e+04)
But it is still just a number.
If you enter: 5/21/08 into a cell,
Excel recognizes it is a proper "date format" and
actually enters 39589 into the cell.
As a number, you may select a 'custom' format
so that it DISPLAYS as anything you wish:
dd.mm.yy will display as: 21.05.08

Unfortunately, 21.05.08 is just a string of characters.
If you enter 21.05.08 into a cell, 
Excel "assumes" that it is a string of characters
and will not change it using a date format.

So.. somehow, you must convert your string of characters
to what Excel considers a proper date format,
so that it can interpret it accordingly.

the formula provided parses the string and 
rearranges it into what Excel considers a date.
Chandra's suggestion below 
breaks the components into (3) columns, which you
can then re-assemble.

Paul



________________________________
From: Chandra Gupt Kumar <kumar.bemlmum...@gmail.com>
To: excel-macros@googlegroups.com
Sent: Thursday, October 1, 2009 8:25:41 AM
Subject: $$Excel-Macros$$ Re: Date Format


Alternatively,
Do the following, 
        1. Select the column where you want to apply the date format
        2. Go to >Data>Text to Coulmn>Fixed Width>Click Next>Click at the end 
of date (this will insert a column break)
        3. Click Next>Select from Coiumn data format Date (DMY if u like)
        4. Click Finish
        5. You shall have your desired output without any long and cumbersome 
formulae.
 
Hope u find it easy and use successfully.
 
Regards,
 
AMW-2
 

________________________________

From:excel-macros@googlegroups.com [mailto:excel-mac...@googlegroups.com] On 
Behalf Of Dilip Pandey
Sent: Thursday, October 01, 2009 9:52 AM
To: excel-macros@googlegroups.com
Subject: $$Excel-Macros$$ Re: Date Format
 
Hi Kaustubh,
 
If you have these dates in column A, then try the following formula in column B 
and drag it down.  Thanks.
 
=DATE(RIGHT(A1,2),MID(A1,FIND(".",A1)+1,FIND(".",A1,2)-1),LEFT(A1,FIND(".",A1)-1))
 
Solved workbook is also attached.

Best Regards,
-- 
DILIP KUMAR PANDEY  
   MBA-HR,B COM(Hons.),BCA
Mobile : +91 9810929744
dilipan...@gmail.com
dilipan...@yahoo.com
New Delhi - 110062 
 
On 9/28/09, Kaustubh K <kaustubh....@gmail.com> wrote: 

Hi,

I have around 500 entries which have format of date dd.mm.yy say
21.05.08 ( And the difficulty is that they are not in date format but
text format) I wish to convert them to mm/dd/yyyy  date format. Is
there any trick to do so fast.

Regards
Kaustubh
<br


--~--~---------~--~----~------------~-------~--~----~
----------------------------------------------------------------------------------
Some important links for excel users:
1. Excel and VBA Tutorials(Video and Text), Free add-ins downloads at 
http://www.excelitems.com
2. Excel tutorials at http://www.excel-macros.blogspot.com
3. Learn VBA Macros at http://www.vbamacros.blogspot.com
4. Excel Tips and Tricks at http://exceldailytip.blogspot.com
 

To post to this group, send email to excel-macros@googlegroups.com
If you find any spam message in the group, please send an email to:
Ayush Jain  @ jainayus...@gmail.com or
Ashish Jain @ 26may.1...@gmail.com
<><><><><><><><><><><><><><><><><><><><><><>
HELP US GROW !!

We reach over 6,500 subscribers worldwide and receive many nice notes about the 
learning and support from the group. Our goal is to have 10,000 subscribers by 
the end of 2009. Let friends and co-workers know they can subscribe to group at 
http://groups.google.com/group/excel-macros/subscribe
-~----------~----~----~----~------~----~------~--~---

Reply via email to