+ Reply to Thread
Results 1 to 9 of 9

Combining "date and month" in one column with year in another column

  1. #1
    Registered User
    Join Date
    10-02-2017
    Location
    Melbourne
    MS-Off Ver
    2016
    Posts
    6

    Combining "date and month" in one column with year in another column

    Hi Everyone

    I was given an excel file to work on the other day. It had a column with date and month, and another column with year. I ended up separating the date and month first and then used a DATE to put them all back together. I want to know if there was a smarted way of doing this. Is there a formula or trick that would have helped me combine "27/01" in column A with "2017" in Column B to get "27/01/2017" in column c?

    Thanks much

  2. #2
    Valued Forum Contributor
    Join Date
    05-13-2010
    Location
    Belo Horizonte, Brazil
    MS-Off Ver
    Excel 2003; 2007
    Posts
    441

    Re: Combining "date and month" in one column with year in another column

    Chomeske, Good morning.

    Probably the 27/01 at column A is TEXT format.
    2017 at column B can be a TEXT or a NUMBER.

    Try to use:

    C1 -->
    Please Login or Register  to view this content.
    Remember to format C1 as date.

    Is that what you want?

    I hope it helps.
    ...If my answer helped you, Please, click on. * Add Reputation (at left)

    Best regards.
    Marc?lio Lob?o

  3. #3
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,791

    Re: Combining "date and month" in one column with year in another column

    You can use this in C1:

    =DATEVALUE(A1&"/"&B1)

    Format as a date in the style you prefer, then copy down.

    Hope this helps.

    Pete

  4. #4
    Forum Expert 63falcondude's Avatar
    Join Date
    08-22-2016
    Location
    USA
    MS-Off Ver
    365
    Posts
    6,266

    Re: Combining "date and month" in one column with year in another column

    You can do it in one shot like this:

    C2 =(A2&"/"&B2)+0

    If this doesn't work due to your regional settings, you can use this:

    C2 =DATE(B2,LEFT(A2,2),RIGHT(A2,2))

  5. #5
    Registered User
    Join Date
    10-02-2017
    Location
    Melbourne
    MS-Off Ver
    2016
    Posts
    6

    Re: Combining "date and month" in one column with year in another column

    Probably the 27/01 at column A is TEXT format.
    2017 at column B can be a TEXT or a NUMBER.
    Thanks for your quick reply and good morning to you too!

    No, unfortunately this does not seem to be working. The format in column A is date and is set to show it as, for example, "27-Jan".

    I am sorry, this is my first post here and am having issues with the basics and navigating and commenting :/
    Last edited by Chomeske; 03-05-2018 at 12:14 PM.

  6. #6
    Forum Expert 63falcondude's Avatar
    Join Date
    08-22-2016
    Location
    USA
    MS-Off Ver
    365
    Posts
    6,266

    Re: Combining "date and month" in one column with year in another column

    Try this in C2:

    =DATE(B2,MONTH(A2),DAY(A2))

    If this doesn't work, upload a small representative sample sheet.

    To upload an Excel workbook, follow these steps:
    1) Click on "Go Advanced"
    2) Click on "Manage Attachments"
    3) Click on "Choose File"
    4) Choose your file and click on "Open"
    5) Click on "Upload"
    6) Click on "Close this window"

  7. #7
    Registered User
    Join Date
    10-02-2017
    Location
    Melbourne
    MS-Off Ver
    2016
    Posts
    6

    Re: Combining "date and month" in one column with year in another column

    Quote Originally Posted by 63falcondude View Post
    Try this in C2:

    =DATE(B2,MONTH(A2),DAY(A2))

    If this doesn't work, upload a small representative sample sheet.

    To upload an Excel workbook, follow these steps:
    1) Click on "Go Advanced"
    2) Click on "Manage Attachments"
    3) Click on "Choose File"
    4) Choose your file and click on "Open"
    5) Click on "Upload"
    6) Click on "Close this window"


    AMAZING, this worked

    Thanks heaps.

  8. #8
    Registered User
    Join Date
    10-02-2017
    Location
    Melbourne
    MS-Off Ver
    2016
    Posts
    6

    Re: Combining "date and month" in one column with year in another column

    Thanks for your quick reply.

  9. #9
    Forum Expert 63falcondude's Avatar
    Join Date
    08-22-2016
    Location
    USA
    MS-Off Ver
    365
    Posts
    6,266

    Re: Combining "date and month" in one column with year in another column

    You're welcome. Glad we could help.

+ 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: 6
    Last Post: 07-16-2017, 09:06 AM
  2. compare cells from column "A" and return newest date from column "B"
    By toni1703 in forum Hello..Introduce yourself
    Replies: 2
    Last Post: 01-12-2016, 08:33 AM
  3. [SOLVED] Macro To Look at list of files in column "A" and show their last Saved Date in Column "B"
    By drknot in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 08-29-2015, 09:48 AM
  4. combining month, date and year into a single column
    By Yogarajah in forum Excel General
    Replies: 6
    Last Post: 08-05-2014, 03:18 AM
  5. [SOLVED] If there is any text in column "A$" on "sheet1" then move cell to column "A$" on "sheet2"
    By ckgeary in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 06-27-2013, 08:28 PM
  6. Date/Month/Year formatting for column "c" not working for me...
    By Rabbitstew in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 05-02-2013, 10:37 PM
  7. Replies: 3
    Last Post: 01-17-2013, 07:20 PM

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