+ Reply to Thread
Results 1 to 6 of 6

extract year

Hybrid View

  1. #1
    maryj
    Guest

    extract year

    I have a date like this: 23/05/2005 15:59:43. I need a formula to extract the
    year - I've been trying mid, right, etc, but just can't get it. Thanks!

    maryj

  2. #2
    Bob Phillips
    Guest

    Re: extract year

    =YEAR(date_cell)

    --

    HTH

    RP
    (remove nothere from the email address if mailing direct)


    "maryj" <[email protected]> wrote in message
    news:[email protected]...
    > I have a date like this: 23/05/2005 15:59:43. I need a formula to extract

    the
    > year - I've been trying mid, right, etc, but just can't get it. Thanks!
    >
    > maryj




  3. #3
    Arvi Laanemets
    Guest

    Re: extract year

    Hi

    with date in A1
    =YEAR(A1)


    --
    Arvi Laanemets
    ( My real mail address: arvil<at>tarkon.ee )


    "maryj" <[email protected]> wrote in message
    news:[email protected]...
    >I have a date like this: 23/05/2005 15:59:43. I need a formula to extract
    >the
    > year - I've been trying mid, right, etc, but just can't get it. Thanks!
    >
    > maryj




  4. #4
    bpeltzer
    Guest

    RE: extract year

    Is the entry really a date or a string? If a date, then =year(a1) will get
    the year. If a string, =MID(A1,FIND(" ",A1)-4,4).

    "maryj" wrote:

    > I have a date like this: 23/05/2005 15:59:43. I need a formula to extract the
    > year - I've been trying mid, right, etc, but just can't get it. Thanks!
    >
    > maryj


  5. #5
    maryj
    Guest

    RE: extract year

    That did it! I was trying to do a search based on the /, didn't think of
    using the space!!
    --
    maryj


    "bpeltzer" wrote:

    > Is the entry really a date or a string? If a date, then =year(a1) will get
    > the year. If a string, =MID(A1,FIND(" ",A1)-4,4).
    >
    > "maryj" wrote:
    >
    > > I have a date like this: 23/05/2005 15:59:43. I need a formula to extract the
    > > year - I've been trying mid, right, etc, but just can't get it. Thanks!
    > >
    > > maryj


  6. #6
    Peo Sjoblom
    Guest

    Re: extract year

    =YEAR(cell)


    --

    Regards,

    Peo Sjoblom


    "maryj" <[email protected]> wrote in message
    news:[email protected]...
    > I have a date like this: 23/05/2005 15:59:43. I need a formula to extract

    the
    > year - I've been trying mid, right, etc, but just can't get it. Thanks!
    >
    > maryj




+ 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