+ Reply to Thread
Results 1 to 2 of 2

Concatenate Sheet into 1 cell?

  1. #1
    Registered User
    Join Date
    08-10-2011
    Location
    Phoenix, AZ
    MS-Off Ver
    Excel 2007
    Posts
    16

    Concatenate Sheet into 1 cell?

    Hello All,

    Just need help either creating a code or a formula that I am unaware of that will allow you to concatenate information from two columns (with several rows) into 1 cell.

    Attached is a mock workup of an excel with 3 sheets (Main, AAFB, AAB). The "real one" I am using had private data, but the one I have attached is a smaller version with names changed and data changed.

    If you look at the "Main" sheet, You will see 2 cells. What I am trying to do is get a code that is a command or something that I can do to get the info in the many columns of AAFB into cell A2 with carriage returns CHAR(10) between rows and the same for the one below it AAB.

    Hope someone knows how to do this?

    (Also, I need the command to only concatenate cells in the different sheets (ie AAFB & AAB) dynamically. So if the number of values changes, the concatenate feature will only copy over the rows/columns that aren't blank if it is shorter and will grab the new additions if it is longer.)
    Attached Files Attached Files
    Last edited by brolsen; 08-15-2011 at 02:53 AM. Reason: Missing element

  2. #2
    Forum Guru (RIP) Marcol's Avatar
    Join Date
    12-23-2009
    Location
    Fife, Scotland
    MS-Off Ver
    Excel '97 & 2003/7
    Posts
    7,216

    Re: Concatenate Sheet into 1 cell?

    Why would you want to do this?

    However, try this UDF
    In a standard VBa module
    Please Login or Register  to view this content.
    Then in A2
    Please Login or Register  to view this content.
    And in A4
    Please Login or Register  to view this content.

    Remember to wrap the text in A2 & A4

    Hope this might help.
    Attached Files Attached Files
    If you need any more information, please feel free to ask.

    However,If this takes care of your needs, please select Thread Tools from menu above and set this topic to SOLVED. It helps everybody! ....

    Also
    اس کی مدد کرتا ہے اگر
    شکریہ کہنے کے لئے سٹار کلک کریں
    If you are satisfied by any members response to your problem please consider using the small Star icon bottom left of their post to show your appreciation.

+ 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