+ Reply to Thread
Results 1 to 21 of 21

Macro Needed to Concatenate Data in separate COLUMNS

  1. #1
    Registered User
    Join Date
    02-06-2015
    Location
    Italy
    MS-Off Ver
    Office 2007 & 2013
    Posts
    78

    Smile Macro Needed to Concatenate Data in separate COLUMNS

    Hello,


    I need a simple macro that help me to concatenate data in separate columns.
    Please look at the .xls I've attached.

    I would need a simpe macro where I can change the "address target" of the columns if they will be differents.


    Thanks in adavance
    Attached Files Attached Files
    Last edited by 823; 02-07-2015 at 02:56 PM.

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

    Re: Macro Needed to Concatenate Data in separate COLUMNS

    You can put this formula in D14:

    =D6&" - "&E6&" - "&F6

    then copy down.

    Hope this helps.

    Pete

  3. #3
    Registered User
    Join Date
    02-06-2015
    Location
    Italy
    MS-Off Ver
    Office 2007 & 2013
    Posts
    78

    Re: Macro Needed to Concatenate Data in separate COLUMNS

    Quote Originally Posted by Pete_UK View Post
    You can put this formula in D14:

    =D6&" - "&E6&" - "&F6

    then copy down.

    Hope this helps.

    Pete
    Perfect!
    thank you

  4. #4
    Registered User
    Join Date
    02-06-2015
    Location
    Italy
    MS-Off Ver
    Office 2007 & 2013
    Posts
    78

    Re: Macro Needed to Concatenate Data in separate COLUMNS

    I have a problem
    I need to delete the source and the results doesn't have to change in the destinations cells when I delete the source.


    how can I do???



    thanks
    Last edited by 823; 02-22-2015 at 07:47 AM.

  5. #5
    Forum Expert
    Join Date
    03-28-2012
    Location
    TBA
    MS-Off Ver
    Office 365
    Posts
    12,454

    Re: Macro Needed to Concatenate Data in separate COLUMNS

    Copy the cells(Column) pastespecial values only. This converts the formula in values and then you can delete the source.

  6. #6
    Registered User
    Join Date
    02-06-2015
    Location
    Italy
    MS-Off Ver
    Office 2007 & 2013
    Posts
    78

    Re: Macro Needed to Concatenate Data in separate COLUMNS

    I forgot to tell you..... the data is very large so "pastespecial" is unconfortable for me....



    I would prefer a MACRO.

    Please see this file attached.

    Someone can code this please?


    THANKS
    Attached Files Attached Files
    Last edited by 823; 02-22-2015 at 09:05 AM.

  7. #7
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,525

    Re: Macro Needed to Concatenate Data in separate COLUMNS

    Quote Originally Posted by 823 View Post

    I would need a simpe macro where I can change the "address target" of the columns if they will be differents.
    What do you mean?

  8. #8
    Forum Expert
    Join Date
    03-28-2012
    Location
    TBA
    MS-Off Ver
    Office 365
    Posts
    12,454

    Re: Macro Needed to Concatenate Data in separate COLUMNS

    Quote Originally Posted by 823 View Post
    I forgot to tell you..... the data is very large so "pastespecial" is unconfortable for me....



    I would prefer a MACRO.

    Please see this file attached.

    Someone can code this please?


    THANKS
    It was a formula by Pete, not mine. You seemed to be happy with it. All I added was to convert in to values ONLY

  9. #9
    Registered User
    Join Date
    02-06-2015
    Location
    Italy
    MS-Off Ver
    Office 2007 & 2013
    Posts
    78

    Re: Macro Needed to Concatenate Data in separate COLUMNS

    Quote Originally Posted by jindon View Post
    What do you mean?
    I explained bad, I'm sorry.

    If you see this file attached I think you can Understand what I need


    thanks
    Attached Files Attached Files

  10. #10
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,525

    Re: Macro Needed to Concatenate Data in separate COLUMNS

    How do you determine which columns to be concatenated?

  11. #11
    Registered User
    Join Date
    02-06-2015
    Location
    Italy
    MS-Off Ver
    Office 2007 & 2013
    Posts
    78

    Re: Macro Needed to Concatenate Data in separate COLUMNS

    Quote Originally Posted by jindon View Post
    How do you determine which columns to be concatenated?
    Just to insert manual column's name in the macro code.
    Ex. Columns:
    D G (concatenate in D)

  12. #12
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,525

    Re: Macro Needed to Concatenate Data in separate COLUMNS

    Please Login or Register  to view this content.

  13. #13
    Registered User
    Join Date
    02-06-2015
    Location
    Italy
    MS-Off Ver
    Office 2007 & 2013
    Posts
    78

    Re: Macro Needed to Concatenate Data in separate COLUMNS

    Quote Originally Posted by jindon View Post
    Please Login or Register  to view this content.

    What I have to type in this inputbox?

    Select range for result:

    Select range to add:

    ?

  14. #14
    Registered User
    Join Date
    02-06-2015
    Location
    Italy
    MS-Off Ver
    Office 2007 & 2013
    Posts
    78

    Re: Macro Needed to Concatenate Data in separate COLUMNS

    ....ahh ok ...Just click on the cell with the mouse to define the range!


    ...Now It is ok;

    But I need that if there's no data to concatendate It doesn't write the "-"

  15. #15
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,525

    Re: Macro Needed to Concatenate Data in separate COLUMNS

    Change
    Please Login or Register  to view this content.
    to
    Please Login or Register  to view this content.

  16. #16
    Registered User
    Join Date
    02-06-2015
    Location
    Italy
    MS-Off Ver
    Office 2007 & 2013
    Posts
    78

    Re: Macro Needed to Concatenate Data in separate COLUMNS

    P E R F E C T !!!!

    very thanks jindon



  17. #17
    Registered User
    Join Date
    02-06-2015
    Location
    Italy
    MS-Off Ver
    Office 2007 & 2013
    Posts
    78

    Re: Macro Needed to Concatenate Data in separate COLUMNS

    Hello,

    I need a simple mod. of this macro:

    Please Login or Register  to view this content.
    This macro works, but every time It ask me with a popup about the colums where put results, and the colums where read.

    I need It has fixed range, and that it doesn't ask me nothing with pop-up;

    Fixed values to insert are:

    Selecct range for result: $T$2:$T$40000
    Select range to add: $AT$2:$AT$40000


    THANKS

    Ps. The fixed values have to be "visible" in the macro's code, so I can change it by editing the code of the macro. Thanks
    Last edited by 823; 03-08-2015 at 07:31 AM.

  18. #18
    Registered User
    Join Date
    02-06-2015
    Location
    Italy
    MS-Off Ver
    Office 2007 & 2013
    Posts
    78

    Re: Macro Needed to Concatenate Data in separate COLUMNS

    ......I would need just that little mod. But I'm not able to modify the code myself.
    Someone can help please?


    thanks
    Last edited by 823; 03-08-2015 at 07:09 AM.

  19. #19
    Registered User
    Join Date
    02-06-2015
    Location
    Italy
    MS-Off Ver
    Office 2007 & 2013
    Posts
    78

    Re: Macro Needed to Concatenate Data in separate COLUMNS

    ...I tryed to modify myself but It doesn't works:


    original working code (by Jindon):

    Please Login or Register  to view this content.

    Fixed range values to insert (for example):

    T2:T40000
    AT2:AT40000



    This code below is modified by me; but It doesn't works:


    Please Login or Register  to view this content.

    someone is able to insert in this macro fixed values? .......without any pop-up that appears?



    THANK YOU
    Last edited by 823; 03-08-2015 at 10:30 AM.

  20. #20
    Registered User
    Join Date
    02-06-2015
    Location
    Italy
    MS-Off Ver
    Office 2007 & 2013
    Posts
    78

    Re: Macro Needed to Concatenate Data in separate COLUMNS

    .......

    ....PLEASE.... ......HELP ME JINDON......

    ...Or someone is able to modify that macro.




    Thanks
    Last edited by 823; 03-09-2015 at 05:51 PM.

  21. #21
    Registered User
    Join Date
    02-06-2015
    Location
    Italy
    MS-Off Ver
    Office 2007 & 2013
    Posts
    78

    Re: Macro Needed to Concatenate Data in separate COLUMNS

    This is the solution for my last question:

    Please Login or Register  to view this content.
    Last edited by 823; 03-14-2015 at 06:34 PM.

+ 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] Macro Needed to Concatenate Data in separate ROWS
    By 823 in forum Excel Programming / VBA / Macros
    Replies: 15
    Last Post: 02-21-2015, 11:35 AM
  2. [SOLVED] Macro needed to Concatenate Data in separate TABLES
    By 823 in forum Excel Programming / VBA / Macros
    Replies: 16
    Last Post: 02-08-2015, 07:42 AM
  3. Need VBA Macro Separate Data into Columns
    By njosey in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 12-02-2014, 10:24 AM
  4. [SOLVED] macro needed to extract specific columns out of multiple columns with their row data
    By genetist in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 01-07-2014, 12:49 AM
  5. Macro/Script for Moving Groups of Data in to Separate Columns
    By JustinSxcel in forum Excel Programming / VBA / Macros
    Replies: 23
    Last Post: 07-05-2012, 01:56 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