+ Reply to Thread
Results 1 to 3 of 3

Extract a date from a field and append another field's data

  1. #1
    Registered User
    Join Date
    09-15-2006
    Posts
    3

    Extract a date from a field and append another field's data

    I have a file that has a column of dates in DD-MON-YYYY format. I want to create a corresponding column that looks at the original data, determines what the year is and puts the year only value in the new column.

    I also have another column that has about ten choices of verbs that I would like to create a column that appends this verb to the year.

    So if I have “21-NOV-2012” in the first column, and “DIE CAST” in the second column, I would somehow like to end up with a column that has “2012 DIE CAST” as my final output.

    It doesn’t matter if I do this in one cell of formula, or if I have to set up multiple cells to achieve it.

    So far I have been messing around with IF statements combined with DATE and YEAR statements and nothing seems to give me what I need. And I'm pretty sure the appending will give me problems after I get the date issue solved.

    Can anyone help?

  2. #2
    Forum Expert Ace_XL's Avatar
    Join Date
    06-04-2012
    Location
    UAE
    MS-Off Ver
    2016
    Posts
    6,074

    Re: Extract a date from a field and append another field's data

    Try..

    =year(a1)&" "&b1
    Life's a spreadsheet, Excel!
    Say thanks, Click *

  3. #3
    Valued Forum Contributor Naveed Raza's Avatar
    Join Date
    11-04-2012
    Location
    India, Hyderabad
    MS-Off Ver
    Excel, Access 2007/2010
    Posts
    1,338

    Re: Extract a date from a field and append another field's data

    Hello,

    Plz provide sample workbook its more easy to resolve.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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