+ Reply to Thread
Results 1 to 6 of 6

combining text of multiple cells in one automatically

  1. #1
    Registered User
    Join Date
    06-11-2010
    Location
    The Netherlands
    MS-Off Ver
    Excel 2010
    Posts
    81

    combining text of multiple cells in one automatically

    I am trying to look for a easy way to combine field together. Added 2 files one is how it is imported (just a small portion) and one is how I want it to be. Any idea on how I can get this done automated? Because I later on need to be able to search on the info.

    hscodeneedstobe.xlsx
    hscodeold.xlsx
    Last edited by dutchmaste; 05-31-2015 at 05:37 PM.

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,628

    Re: combining text of multiple cells in one automatically

    Can't see how you can do it with a worksheet function, but I am often amazed at the ingenuity of the guys here.

    You could do it with a User Define Function (UDF). For example, if you copy the following code to a standard VBA module, you can put, in cell E1,
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    and copy it down to the end of the data. You can then select all the data in column E, copy it, and Paste Special | Values over the original data in column B.

    Please Login or Register  to view this content.

    Please note that this UDF will NOT reflect any changes made after the function has been evaluated. You would need to re-enter the formula and copy it down. I suspect that you won't need to do that though.



    Regards, TMS
    Attached Files Attached Files
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  3. #3
    Forum Guru sktneer's Avatar
    Join Date
    04-30-2011
    Location
    Kanpur, India
    MS-Off Ver
    Office 365
    Posts
    9,649

    Re: combining text of multiple cells in one automatically

    Or you may try this....
    Please Login or Register  to view this content.
    Click the button on Test sheet to get the desired output.
    Attached Files Attached Files
    Regards
    sktneer


    Treat people the way you want to be treated. Talk to people the way you want to be talked to.
    Respect is earned NOT given.

  4. #4
    Registered User
    Join Date
    06-11-2010
    Location
    The Netherlands
    MS-Off Ver
    Excel 2010
    Posts
    81

    Re: combining text of multiple cells in one automatically

    Both demo sheet solutions worked like a charm, thank you both.
    Last edited by dutchmaste; 06-04-2015 at 06:59 PM.

  5. #5
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,628

    Re: combining text of multiple cells in one automatically

    You're welcome. Thanks for the rep.



    If you are satisfied with the solution(s) provided, please mark your thread as Solved.


    New quick method:
    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

    Or you can use this way:

    How to mark a thread Solved
    Go to the first post
    Click edit
    Click Go Advanced
    Just below the word Title you will see a dropdown with the word No prefix.
    Change to Solved
    Click Save


    You may also want to consider thanking those people who helped you by clicking on the little star at the bottom left of their reply to your question.

  6. #6
    Registered User
    Join Date
    06-11-2010
    Location
    The Netherlands
    MS-Off Ver
    Excel 2010
    Posts
    81

    Re: combining text of multiple cells in one automatically

    TMS yours worked on my details itself. It gave some errors and ended up with a bunch of VALUES but that was less work then have to do it all myself.

    sktneer when trying yours on my whole list I kept getting error on 13. But in the demo sheet it worked fine.

+ 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. Excel 2007 : combining multiple cells of text
    By mrteater in forum Excel General
    Replies: 1
    Last Post: 06-04-2012, 03:04 PM
  2. Combining multiple cells with text
    By dforte in forum Excel General
    Replies: 4
    Last Post: 08-05-2010, 09:31 PM
  3. Combining Text From Multiple Cells
    By laundry125 in forum Excel General
    Replies: 2
    Last Post: 07-07-2008, 11:57 PM
  4. Combining Text From multiple Cells etc
    By bentley74 in forum Excel General
    Replies: 4
    Last Post: 07-21-2005, 06:05 AM
  5. Combining Text in Multiple Cells into One
    By Brianna in forum Excel General
    Replies: 3
    Last Post: 02-18-2005, 10:06 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