+ Reply to Thread
Results 1 to 8 of 8

convert date format

  1. #1
    Registered User
    Join Date
    03-28-2013
    Location
    San Francisco, CA
    MS-Off Ver
    Excel 2010
    Posts
    16

    convert date format

    I need to convert a column in the format:
    Jan 02 2014 08:08:00 PST

    to the format:
    02 January 2014
    or if another date format is easier, that's ok, too.


    Is there a formula that I could enter into a helper column to make this work?

    An excerpt from the file is attached.
    date-adjustment-example.xlsx

  2. #2
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    25,427

    Re: convert date format

    You can use this formula to convert the date that is in A2 (put the formula in Q2):

    =DATE(MID(A2,8,4),MATCH(LEFT(A2,3),{"Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"},0),MID(A2,5,2))

    and then apply a custom format to that cell in the style you would prefer (i.e. dd mmmm yyyy). Then you can copy the formula down.

    Hope this helps.

    Pete

  3. #3
    Forum Guru
    Join Date
    05-24-2011
    Location
    India
    MS-Off Ver
    365
    Posts
    2,243

    Re: convert date format

    Or,

    =SUBSTITUTE(LEFT(TRIM(A2),11)," ",", ",2)+0

    Then change the format.
    Regards,
    Haseeb Avarakkan

    __________________________________
    "Feedback is the breakfast of champions"

  4. #4
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    25,427

    Re: convert date format

    Yeah, that's what I tried to do, but it doesn't work in the UK because we have a different date format where the month is expected after the day.

    Pete

  5. #5
    Registered User
    Join Date
    03-28-2013
    Location
    San Francisco, CA
    MS-Off Ver
    Excel 2010
    Posts
    16

    Re: convert date format

    Thanks! Both of those formulas worked perfectly.

  6. #6
    Forum Guru
    Join Date
    05-24-2011
    Location
    India
    MS-Off Ver
    365
    Posts
    2,243

    Re: convert date format

    Yes Pete, this will give error on d/m/y format.

    May be we can shorten MONTH part ie, MONTH(1&LEFT(A2,3))

    =DATE(MID(A2,8,4),MONTH(1&LEFT(A2,3)),MID(A2,5,2))

  7. #7
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    25,427

    Re: convert date format

    Yeah, good idea.

    It's good to see you posting again - Happy New Year.

    Pete

  8. #8
    Forum Guru
    Join Date
    05-24-2011
    Location
    India
    MS-Off Ver
    365
    Posts
    2,243

    Re: convert date format

    Happy New Year to you Pete

+ 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. [SOLVED] Require vba or formula for convert general format data in date format
    By santosh226001 in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 09-10-2013, 03:53 AM
  2. Convert date and time in serial number format to text format
    By nda13112 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 03-11-2013, 02:45 PM
  3. Cannot convert date (which is in text format) to date in numeric format
    By geniuspro in forum Excel Charting & Pivots
    Replies: 2
    Last Post: 10-19-2012, 09:21 AM
  4. Need Formula/VBA Code to convert date in String Format to Normal Date format
    By Karthik Sen in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 02-18-2012, 04:54 AM
  5. [SOLVED] Date Format Question- convert into a usable date format.
    By Josh O. in forum Excel General
    Replies: 1
    Last Post: 02-10-2005, 06:06 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