+ Reply to Thread
Results 1 to 4 of 4

replace year in a date with year in another column

  1. #1
    Registered User
    Join Date
    04-11-2012
    Location
    India
    MS-Off Ver
    Excel 2010
    Posts
    46

    replace year in a date with year in another column

    Dear All

    My spreadsheet has following two columns with column A with a year and column B with date-month-year:

    A B
    1960 28/06/2014
    1961 09/06/2014
    1962 14/06/2014
    1963 07/07/2014
    1964 01/07/2014
    1965 04/07/2014
    1966 20/06/2014
    1967 27/06/2014
    1968 09/07/2014
    1969 12/07/2014
    1970 30/06/2014
    1971 23/06/2014
    1972 27/06/2014
    1973 05/07/2014
    1974 12/07/2014
    1975 23/06/2014
    1976 11/07/2014
    1977 29/06/2014
    1978 25/06/2014
    1979 11/07/2014
    1980 26/06/2014

    What I want to do is to replace the year in column B (2014) with the year in column A. For example I want my spread sheet to be like this:

    A B
    1960 28/06/1960
    1961 09/06/1961
    1962 14/06/1962
    1963 07/07/1963
    1964 01/07/1964
    1965 04/07/1965
    1966 20/06/1966
    1967 27/06/1967
    1968 09/07/1968
    1969 12/07/1969
    1970 30/06/1970
    1971 23/06/1971
    1972 27/06/1972
    1973 05/07/1973
    1974 12/07/1974
    1975 23/06/1975
    1976 11/07/1976
    1977 29/06/1977
    1978 25/06/1978
    1979 11/07/1979
    1980 26/06/1980

    Any way I can achieve this. Thanks a lot in advance!

  2. #2
    Valued Forum Contributor
    Join Date
    11-02-2012
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003, 2007, 2010
    Posts
    564

    Re: replace year in a date with year in another column

    Enter this in cell C1
    Formula: copy to clipboard
    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    02-11-2014
    Location
    Canada
    MS-Off Ver
    Excel 2010
    Posts
    71

    Re: replace year in a date with year in another column

    =DATE(a1,MONTH(b1),DAY(b1))

    .. put this formula in column c don't delete column a and b

  4. #4
    Registered User
    Join Date
    04-11-2012
    Location
    India
    MS-Off Ver
    Excel 2010
    Posts
    46

    Re: replace year in a date with year in another column

    thanks a lot..both of this worked

+ 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. Replies: 3
    Last Post: 09-04-2013, 10:49 AM
  2. [SOLVED] Year on Year data review compared to todays date
    By mintribe in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 05-24-2013, 06:19 AM
  3. [SOLVED] Keeping a date as current year, even though formula determines previous year
    By dropanddrive03 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 01-28-2013, 08:31 PM
  4. [SOLVED] Count days for specific year falling within in multi-year date range
    By jslo2013 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 10-04-2012, 05:58 PM
  5. Replies: 3
    Last Post: 08-14-2012, 05:14 AM

Tags for this Thread

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