+ Reply to Thread
Results 1 to 4 of 4

Concatenate Colums A, B and C into D, but B is a Date and A and C are String values

  1. #1
    Registered User
    Join Date
    08-26-2016
    Location
    London
    MS-Off Ver
    2010
    Posts
    26

    Concatenate Colums A, B and C into D, but B is a Date and A and C are String values

    Hello! Please could anyone help me find either a VBA code to concatenate or if not a Formula to achieve this in the desired format:

    I have 3 columns, A, B and C. I want to concatenate all three values into Column D. The problem is that A and C are String, and B is a date, so when concatenated, the D column changes the date to a number value instead of keeping the date dd/mm/yyyy. I have tried changing the formats of the cell several times/different combinations but doesn't work.

    For example:

    Desired result in D1:
    A1 B1 C1 D1
    CAT 30/01/2014 Dog CAT30/01/2014dog

    What I actually get:
    A1 B1 C1 D1
    CAT 30/01/2014 Dog CAT41669Dog




    Thank you in advance for any help
    Last edited by trenzalore888; 11-11-2016 at 09:31 AM.

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2505 (Windows 11 Home 24H2 64-bit)
    Posts
    91,301

    Re: Concatenate Colums A, B and C into D, but B is a Date and A and C are String values

    Maybe like this:

    =A1&TEXT(B1,"dd/mm/yyyy")&C1
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help. It's a universal courtesy.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    NB:
    as a Moderator, I never accept friendship requests.
    Forum Rules (updated August 2023): please read them here.

  3. #3
    Registered User
    Join Date
    08-26-2016
    Location
    London
    MS-Off Ver
    2010
    Posts
    26

    Re: Concatenate Colums A, B and C into D, but B is a Date and A and C are String values

    Perfect! thank you so much!

  4. #4
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2505 (Windows 11 Home 24H2 64-bit)
    Posts
    91,301

    Re: Concatenate Colums A, B and C into D, but B is a Date and A and C are String values

    You're welcome!

+ 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. [SOLVED] Subtract two date colums and count rows with specific values
    By waylynjohnston1 in forum Excel Formulas & Functions
    Replies: 13
    Last Post: 11-06-2016, 06:45 PM
  2. Replies: 4
    Last Post: 01-21-2016, 08:16 AM
  3. Replies: 0
    Last Post: 06-30-2015, 06:42 PM
  4. Concatenate text string as values
    By Ravana in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-17-2015, 05:30 AM
  5. Vlookup and concatenate multiple colums of date
    By Ashtangi in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 05-08-2014, 10:00 PM
  6. [SOLVED] concatenate rows of values in a string
    By kadams99 in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 03-06-2013, 10:23 PM
  7. [SOLVED] URGENT find common string values in 2 colums
    By M.Karim in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 12-13-2012, 11:21 AM

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