+ Reply to Thread
Results 1 to 5 of 5

convert date in TEXT into year

  1. #1
    Forum Contributor
    Join Date
    04-30-2012
    Location
    Houston, Texas
    MS-Off Ver
    Excel 2007
    Posts
    234

    convert date in TEXT into year

    hello everyone, is there a way to convert the data below into 'year' only?

    to be honest all my data is in text format, so i'm stuck.

    example:

    A1: Monday 01/09/12 = B1:2012

    Monday 01/09/12
    Saturday 11/26/11
    Saturday 11/19/11
    Saturday 11/12/11
    Saturday 11/05/11
    Saturday 10/22/11
    Saturday 10/15/11
    Saturday 10/08/11
    Saturday 10/01/11
    Saturday 09/24/11
    Saturday 09/17/11
    Saturday 09/10/11
    Saturday 09/03/11
    Saturday 01/01/11
    Friday 11/26/10
    Thursday 11/18/10
    Saturday 11/13/10
    Saturday 11/06/10
    Saturday 10/23/10
    Saturday 10/16/10

    ---------- Post added at 10:18 PM ---------- Previous post was at 10:12 PM ----------

    wait sorry, i want to convert it to regular date

    for example:

    monday 01/09/12 = 01/09/12

  2. #2
    Valued Forum Contributor
    Join Date
    05-07-2012
    Location
    USA
    MS-Off Ver
    Excel 2007
    Posts
    354

    Re: convert date in TEXT into year

    something like:

    =DATEVALUE(RIGHT(A1,8))

    result formatted as date
    Regards,
    Vandan

  3. #3
    Forum Moderator vlady's Avatar
    Join Date
    09-22-2011
    Location
    Philippines - OLSHCO -Guimba-Nueva Ecija
    MS-Off Ver
    2021
    Posts
    4,361

    Re: convert date in TEXT into year

    with regards to vandan
    you can add a trim function in case you have spaces on the text dates.


    =DATEVALUE(RIGHT(TRIM(A7),8))

    thanks.
    I think people forget the word "THANK YOU!!!!" Do you still know it???

    There is a little star ( ADD REPUTATION ) below those person who helped you. Click it to say your "PRIVATE APPRECIATION TO THEIR EFFORT ON THEIR CONTRIBUTIONS "

    Regards,
    Vladimir

  4. #4
    Forum Contributor
    Join Date
    04-30-2012
    Location
    Houston, Texas
    MS-Off Ver
    Excel 2007
    Posts
    234

    Re: convert date in TEXT into year

    ok but it doesn't work for this data

    Saturday 10/22/11
    Saturday 10/15/11
    Saturday 10/08/11
    Saturday 10/01/11


    also, do you know something like this?

    A1: Monday 01/09/12 = B1:2012

    ---------- Post added at 10:35 PM ---------- Previous post was at 10:34 PM ----------

    hey vlady that work great :D

    ---------- Post added at 10:37 PM ---------- Previous post was at 10:35 PM ----------

    wait never mind, i think i can use =DATEVALUE(RIGHT(TRIM(A7),8))

    thanks guy!

  5. #5
    Forum Expert Kevin UK's Avatar
    Join Date
    12-07-2010
    Location
    Radstock, Somerset
    MS-Off Ver
    365
    Posts
    1,922

    Re: convert date in TEXT into year

    Maybe:

    =VALUE("20"&RIGHT(SUBSTITUTE(A1,CHAR(160),""),2))

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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