+ Reply to Thread
Results 1 to 17 of 17

Dear all, multiple cell data to single cell

  1. #1
    Forum Contributor
    Join Date
    06-08-2012
    Location
    BD
    MS-Off Ver
    Microsoft Office 2016
    Posts
    633

    Dear all, multiple cell data to single cell

    Dear all, I need to copy multiple line content to single cell form “before” sheet to “after” sheet. Here data should be kept vertically in the single cell . Please don’t use warp text as it will be difficult for me to recognize the cell contents . Please check the attachments
    Please Login or Register  to view this content.
    sheet "after"
    Please Login or Register  to view this content.
    Attached Files Attached Files

  2. #2
    Forum Expert mrice's Avatar
    Join Date
    06-22-2004
    Location
    Surrey, England
    MS-Off Ver
    Excel 2013
    Posts
    4,967

    Re: Dear all, multiple cell data to single cell

    Try this

    Please Login or Register  to view this content.
    Open up the VBA editor by hitting ALT F11

    Insert a new module by hitting Insert - Module

    Paste the macro into the empty sheet

    Hit ALT F11 to get back to the worksheet.

    Run the macro by going to tools-macro in Excel 2003 or the view ribbon in Excel 2007/2010.
    Martin

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

    Re: Dear all, multiple cell data to single cell

    Try the attached.
    Attached Files Attached Files

  4. #4
    Forum Contributor
    Join Date
    06-08-2012
    Location
    BD
    MS-Off Ver
    Microsoft Office 2016
    Posts
    633

    Re: Dear all, multiple cell data to single cell

    Hi Martin , yes it works perfectly , i appreciate your nice job . it is helping me . thanks for your valuable time..i am really happy.

  5. #5
    Forum Contributor
    Join Date
    06-08-2012
    Location
    BD
    MS-Off Ver
    Microsoft Office 2016
    Posts
    633

    Re: Dear all, multiple cell data to single cell

    Hi AB33 , Thanks for your macro , i have tested your macro , here i am getting an error in the line(green color mark) , i think it happened due to cell B data as its data does not contains few character , it is something like
    Temporary Issue/ Persistent issue : Persistent
    Cust alternative/other number/MS : 733819
    Please Login or Register  to view this content.
    Run-time error'13':
    Type mismatch

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

    Re: Dear all, multiple cell data to single cell

    Try this and if you get any error, post back.
    Please Login or Register  to view this content.

  7. #7
    Forum Contributor
    Join Date
    06-08-2012
    Location
    BD
    MS-Off Ver
    Microsoft Office 2016
    Posts
    633

    Re: Dear all, multiple cell data to single cell

    Hi Jindon , Yes It works perfectly ! macro speed is awesome ! words are powerless to express my gratitude ! just thanks for your helping mind to others ..you are great ….

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

    Re: Dear all, multiple cell data to single cell

    You are welcome and thanks for the feedback/rep point.

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

    Re: Dear all, multiple cell data to single cell

    nur,
    I know you have closed the thread as solved, but I do not see an error on my code with out seeing the error.

  10. #10
    Forum Contributor
    Join Date
    06-08-2012
    Location
    BD
    MS-Off Ver
    Microsoft Office 2016
    Posts
    633

    Re: Dear all, multiple cell data to single cell

    Hi AB33, Sorry for late response, still I am getting error really , is it problem for Windos XP ? , but I am not sure why it happened , but here I observed on things that is : if I keep smaller range of data then it gives the results as well without having any error . but if I increase the data range like for example A2:B10000 , then it gives error as I said before in the post # 5 .
    However , actually I have closed the issue as I thought that you will not work for my issue once again that is why I closed the issue , please I am sorry for that . but remember I always appreciate different type solution form others friend also as I am student of macro . thanks for understanding me .

  11. #11
    Forum Contributor
    Join Date
    06-08-2012
    Location
    BD
    MS-Off Ver
    Microsoft Office 2016
    Posts
    633

    Re: Dear all, multiple cell data to single cell

    Hi Jindon , if you have time ! would you please explain the whole code in simple way , it is required for learning purpose . thanks

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

    Re: Dear all, multiple cell data to single cell

    Okay!
    It is your choice!
    If you want me to adjust my code, I need to see in a sample why you are getting an error.

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

    Re: Dear all, multiple cell data to single cell

    Nur,
    Use Jindon's code.

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

    Re: Dear all, multiple cell data to single cell

    Step through the code
    Please Login or Register  to view this content.

  15. #15
    Forum Contributor
    Join Date
    06-08-2012
    Location
    BD
    MS-Off Ver
    Microsoft Office 2016
    Posts
    633

    Multiple cell data to single cell

    Hi AB33, Please check the attachments..my actual data range till 65536++
    Attached Files Attached Files
    Last edited by nur2544; 01-29-2015 at 10:06 AM.

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

    Re: Dear all, multiple cell data to single cell

    Nur,
    I have done the test with 20k.
    Yes, you are right. My code will not work. It is either the application.transpose can only accept up to certain size characters, or most likely the chr(10) can only take up to 1024 characters. I am not sure which one is, but I will do the research.
    Last edited by AB33; 01-27-2015 at 10:20 AM.

  17. #17
    Forum Contributor
    Join Date
    06-08-2012
    Location
    BD
    MS-Off Ver
    Microsoft Office 2016
    Posts
    633

    Re: Dear all, multiple cell data to single cell

    Hi AB33, thanks you got my point..

+ 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. Display data from multiple cell in a single cell, based on criteria
    By Mothman in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 12-08-2012, 07:24 AM
  2. [SOLVED] Move data from row to cell, but single cel to multiple cell.
    By puckaveli in forum Excel General
    Replies: 2
    Last Post: 11-20-2012, 08:51 AM
  3. Replies: 4
    Last Post: 09-02-2012, 07:49 AM
  4. Excel 2007 : multiple cell text data entry to a single cell
    By sticktoexecute in forum Excel General
    Replies: 2
    Last Post: 03-27-2009, 01:35 PM
  5. Linking multiple cell data to a single cell
    By matt92 in forum Excel General
    Replies: 5
    Last Post: 03-14-2007, 01:54 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