+ Reply to Thread
Results 1 to 3 of 3

How to Change Date Formats

Hybrid View

  1. #1
    Jessica
    Guest

    How to Change Date Formats

    I have a bunch of raw data that I am working with. One of the columns
    displays dates and I am trying to strip out the year. If I try to use the
    YEAR function I get strange answers back.

    For example:

    Cell reads: 1/1/2006
    Answer using YEAR function: 06/1905
    Answer that I want: 2006

    My data comes from a CSV file, so I think maybe it is in a different date
    format than excel uses as a standard. Any suggestions on how to reformat
    this data or some other formula I can use to get the answer I am looking for?

  2. #2
    PCLIVE
    Guest

    Re: How to Change Date Formats

    If the cell containing the date is not recognized as a date format then you
    might try something like this.

    =Right(A1,4)

    Another possibility would be to edit the cell containing the date. Select
    the cell and press F2. Then press enter. If you have a lot of cells to
    edit, then this could be cumbersome.

    Good luck.
    Paul

    "Jessica" <Jessica@discussions.microsoft.com> wrote in message
    news:C9451550-8BCF-4022-B5B3-6796D5F08284@microsoft.com...
    >I have a bunch of raw data that I am working with. One of the columns
    > displays dates and I am trying to strip out the year. If I try to use the
    > YEAR function I get strange answers back.
    >
    > For example:
    >
    > Cell reads: 1/1/2006
    > Answer using YEAR function: 06/1905
    > Answer that I want: 2006
    >
    > My data comes from a CSV file, so I think maybe it is in a different date
    > format than excel uses as a standard. Any suggestions on how to reformat
    > this data or some other formula I can use to get the answer I am looking
    > for?




  3. #3
    Gord Dibben
    Guest

    Re: How to Change Date Formats

    Format the answer cell to General to return 2006.

    You have it formatted as Date mm/yyyy

    2006 is 2006 days past January 1, 1900 is June 28, 1905


    Gord Dibben Excel MVP

    On Tue, 1 Nov 2005 09:26:19 -0800, "Jessica"
    <Jessica@discussions.microsoft.com> wrote:

    >I have a bunch of raw data that I am working with. One of the columns
    >displays dates and I am trying to strip out the year. If I try to use the
    >YEAR function I get strange answers back.
    >
    >For example:
    >
    >Cell reads: 1/1/2006
    >Answer using YEAR function: 06/1905
    >Answer that I want: 2006
    >
    >My data comes from a CSV file, so I think maybe it is in a different date
    >format than excel uses as a standard. Any suggestions on how to reformat
    >this data or some other formula I can use to get the answer I am looking for?



+ 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