+ Reply to Thread
Results 1 to 6 of 6

Convertiing Dates

  1. #1
    Forum Contributor
    Join Date
    02-08-2005
    MS-Off Ver
    Microsoft 365
    Posts
    812

    Convertiing Dates

    Hi,

    In column A of the attached file I have some “dates” extracted from a text file.

    As you can see some of these dates are in text form and the others are numbers.

    Can someone please tell me how to convert these “dates” to actual dates (i.e. with serial numbers) in the format DD/MM/YYYY.

    Thanks!
    Attached Files Attached Files

  2. #2
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,231

    Re: Convertiing Dates

    Hi there. Try this...

    =IF(ISTEXT(A2),DATE(RIGHT(A2,4),LEFT(A2,2),MID(A2,4,2)),A2)
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU

  3. #3
    Forum Contributor
    Join Date
    03-11-2014
    Location
    India
    MS-Off Ver
    Excel 2010
    Posts
    379

    Re: Convertiing Dates

    Hi Andrew,

    You can make use of Format Cells or use CTRL + 1 shortcut key
    Select Custom & enter the format in Type box

    Regards,
    AM

  4. #4
    Forum Contributor
    Join Date
    02-08-2005
    MS-Off Ver
    Microsoft 365
    Posts
    812

    Re: Convertiing Dates

    Hi,

    Thanks for the quick response!

    The formula suggested works for the dates in A2 and A3 but not for those in A4 and A5 which seem to be recognised by Excel as dates in the format MM/DD/YYYY and which I can't change to the DD/MM/YYYY just by changing the formatting.

    Thanks!

  5. #5
    Forum Contributor
    Join Date
    03-11-2014
    Location
    India
    MS-Off Ver
    Excel 2010
    Posts
    379

    Re: Convertiing Dates

    Hi Andrew,

    Use this formula
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Regards,
    AM

  6. #6
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,231

    Re: Convertiing Dates

    For Excel, dates are simply numbers. In A3, the number is 42281. That corresponds to 4th October 2015.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Check dates in range either same dates or different dates by formula
    By breadwinner in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 07-12-2013, 07:42 AM
  2. Replies: 6
    Last Post: 03-11-2013, 06:11 PM
  3. [SOLVED] Array of dates when tested shows no dates ......but there are dates
    By welchs101 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 11-29-2012, 12:45 PM
  4. [SOLVED] Highlight Group of Dates if Dates Match List of other Dates
    By martinpgibson in forum Excel General
    Replies: 5
    Last Post: 10-24-2012, 08:14 PM
  5. [SOLVED] Auto filling dates based on previously entered dates and averaging numbers if dates equal
    By grambograham in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 10-11-2012, 03:21 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1