+ Reply to Thread
Results 1 to 3 of 3

How can covert text to date Format?

  1. #1
    Registered User
    Join Date
    01-22-2013
    Location
    Bangkok, Thailand
    MS-Off Ver
    Excel 2007
    Posts
    56

    How can covert text to date Format?

    Dear All,

    I have the data as following

    Jan-Feb 2015
    Jan-Mar 2015
    Oct-2015
    Apr-2015


    I try to change as above data to DATE format by use formula

    = Text(Date(right(cell, 4),Left(cell,3),always = 1),"MM-YYYY")

    Cell means that the column and row that have data

    and date that i always use equal 1 i have put any cell =1 and put $R$C at that cell

    but it does not work, i get result is #value!

    Who have any idea please advice and suggest me?

    Be

  2. #2
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: How can covert text to date Format?

    Maybe:

    =TEXT(DATEVALUE(LEFT(A1, 3) & " 1, " & RIGHT(A1, 4)), "MM-YYYY")
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  3. #3
    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,662

    Re: How can covert text to date Format?

    Are these really text entries? If so, this will work:

    =DATE(RIGHT(A1,4),MONTH(DATEVALUE(LEFT(A1,3)&"1")),1)

    Go with Jerry's solution. I forgot to format to MM-YYYY
    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

+ 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] Permissions, covert table format
    By junada0 in forum Excel General
    Replies: 3
    Last Post: 02-03-2015, 09:53 AM
  2. Covert Date DD/MM/YYYY in to month, with the month as text
    By david1987 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 11-23-2012, 11:03 AM
  3. Covert text date "Apr 13/10" to usable format
    By Xx7 in forum Excel General
    Replies: 4
    Last Post: 11-22-2011, 09:01 PM
  4. Covert UTC date
    By smpayne69 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-02-2005, 03:35 PM
  5. How do I covert number format?
    By silentbobafett in forum Excel General
    Replies: 2
    Last Post: 06-08-2005, 03:58 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