+ Reply to Thread
Results 1 to 15 of 15

Sort a word wrap cell and paste into another cell

  1. #1
    Forum Contributor
    Join Date
    03-05-2009
    Location
    usa
    MS-Off Ver
    Excel 2016 32Bit
    Posts
    1,173

    Sort a word wrap cell and paste into another cell

    Is there a way to sort a lot of names in word wrap cell and paste the names into multiple cells one name at a time?
    Attached Files Attached Files
    Last edited by zplugger; 09-25-2012 at 09:29 AM.

  2. #2
    Registered User
    Join Date
    08-17-2012
    Location
    New York, New York
    MS-Off Ver
    Excel 2010
    Posts
    97

    Re: Sort a word wrap cell and paste into another cell

    There sure is. Use the Text-to-Columns feature and chose delimited and select commas as your divider. That should do it.

  3. #3
    Forum Contributor
    Join Date
    03-05-2009
    Location
    usa
    MS-Off Ver
    Excel 2016 32Bit
    Posts
    1,173

    Re: Sort a word wrap cell and paste into another cell

    Getting Destination Reference is not valid

  4. #4
    Registered User
    Join Date
    08-17-2012
    Location
    New York, New York
    MS-Off Ver
    Excel 2010
    Posts
    97

    Re: Sort a word wrap cell and paste into another cell

    My best guess is that Excel will not let you use text to columns to a different sheet. Try it again but select the active sheet as the destination. Then you can copy that over to a new sheet, only way to work around it.

  5. #5
    Forum Contributor
    Join Date
    03-05-2009
    Location
    usa
    MS-Off Ver
    Excel 2016 32Bit
    Posts
    1,173

    Re: Sort a word wrap cell and paste into another cell

    Not sure this can be done, I want all the names in one column?

  6. #6
    Forum Expert mike7952's Avatar
    Join Date
    12-17-2011
    Location
    Florida
    MS-Off Ver
    Excel 2007, Excel 2016
    Posts
    3,551

    Re: Sort a word wrap cell and paste into another cell

    Here's a macro that will work

    Please Login or Register  to view this content.
    Thanks,
    Mike

    If you are satisfied with the solution(s) provided, please mark your thread as Solved.
    Select Thread Tools-> Mark thread as Solved.

  7. #7
    Forum Contributor
    Join Date
    03-05-2009
    Location
    usa
    MS-Off Ver
    Excel 2016 32Bit
    Posts
    1,173

    Re: Sort a word wrap cell and paste into another cell

    WoW that is close, but it add a sheet everytime I run it. Can I keep it on a single sheet. When I add it will just go to the next empty cell in row a?

  8. #8
    Forum Expert mike7952's Avatar
    Join Date
    12-17-2011
    Location
    Florida
    MS-Off Ver
    Excel 2007, Excel 2016
    Posts
    3,551

    Re: Sort a word wrap cell and paste into another cell

    Try this

    Please Login or Register  to view this content.

  9. #9
    Forum Contributor
    Join Date
    03-05-2009
    Location
    usa
    MS-Off Ver
    Excel 2016 32Bit
    Posts
    1,173

    Re: Sort a word wrap cell and paste into another cell

    Thank You, that is outstanding code work.

  10. #10
    Forum Expert mike7952's Avatar
    Join Date
    12-17-2011
    Location
    Florida
    MS-Off Ver
    Excel 2007, Excel 2016
    Posts
    3,551

    Re: Sort a word wrap cell and paste into another cell

    Update to post#8 added trim function. If names had leading or trailing spaces, sort would not work correctly.

    Please Login or Register  to view this content.

  11. #11
    Forum Contributor
    Join Date
    03-05-2009
    Location
    usa
    MS-Off Ver
    Excel 2016 32Bit
    Posts
    1,173

    Re: Sort a word wrap cell and paste into another cell

    Ran into a small problem, on sheet 2 some of the names in yellow will not sort? Remove Diplicates does not see them at all?
    Z
    Attached Files Attached Files

  12. #12
    Forum Expert mike7952's Avatar
    Join Date
    12-17-2011
    Location
    Florida
    MS-Off Ver
    Excel 2007, Excel 2016
    Posts
    3,551

    Re: Sort a word wrap cell and paste into another cell

    Try this

    Please Login or Register  to view this content.
    Last edited by mike7952; 09-25-2012 at 09:13 AM.

  13. #13
    Forum Contributor
    Join Date
    03-05-2009
    Location
    usa
    MS-Off Ver
    Excel 2016 32Bit
    Posts
    1,173

    Re: Sort a word wrap cell and paste into another cell

    Thanks Mike, now I'm getting Cast: again. Is this right?

    Please Login or Register  to view this content.

  14. #14
    Forum Expert mike7952's Avatar
    Join Date
    12-17-2011
    Location
    Florida
    MS-Off Ver
    Excel 2007, Excel 2016
    Posts
    3,551

    Re: Sort a word wrap cell and paste into another cell

    Try the code in post #12

  15. #15
    Forum Contributor
    Join Date
    03-05-2009
    Location
    usa
    MS-Off Ver
    Excel 2016 32Bit
    Posts
    1,173

    Re: Sort a word wrap cell and paste into another cell

    That did it, works like a champ. Speaking of champs that macro you wrote make you a Champ in my book.
    Z

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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